Typing Exponents on Keyboard: Windows, Mac, Android & iOS

Nothing turns a simple math problem into a tiny technology crisis quite like needing to type x² and realizing your keyboard is offering you every symbol except the one you need. Suddenly, the exponent looks less like “squared” and more like a boss battle.

Whether you are writing a homework assignment, preparing a science report, entering formulas in a spreadsheet, messaging a classmate, or publishing math content online, knowing how to type exponents can save time and prevent formatting disasters. This guide explains how to type superscript numbers and exponents on Windows, Mac, Android, and iPhone or iPad, plus when to use a real math equation tool instead of a Unicode shortcut.

First: What Is an Exponent on a Keyboard?

An exponent is the small raised number or letter that tells you how many times a base is multiplied by itself. For example, 2² means 2 × 2, while 10³ means 10 × 10 × 10.

On a screen, exponents are usually shown as superscripts, meaning the characters sit slightly above the normal text line. That is why people often search for phrases such as “how to type squared,” “keyboard shortcut for exponent,” “superscript number,” or “how to make a small 2.” All roads lead to the same little elevated neighborhood.

There are three main ways to write an exponent:

  • Formatted superscript: x2
  • Unicode superscript character: x²
  • Plain-text notation: x^2

The best option depends on where you are typing. A Word document can use proper superscript formatting. A text message may be easier with Unicode characters. A spreadsheet formula or programming language may require a caret or double asterisk instead.

Quick Exponent Cheat Sheet

Device or App Fastest Method Example Result
Windows Word Ctrl + Shift + + x2
Windows with numeric keypad Alt + 0178 ²
Mac Word Command + Shift + + x2
Mac Character Viewer Fn/Globe + E, then search ² ³ ⁴
Android keyboard Long-press a number key ² ³ ⁴
iPhone or iPad Text replacement, copy/paste, or app formatting x²
Plain text or coding Use a caret x^2

How to Type Exponents on Windows

Use the Superscript Shortcut in Microsoft Word

If you are typing in Microsoft Word, the cleanest method is usually the superscript formatting shortcut. Type the base number first, then turn on superscript before typing the exponent.

  1. Type the base, such as x.
  2. Press Ctrl + Shift + +. On many keyboards, this means pressing Ctrl + Shift + =.
  3. Type the exponent, such as 2.
  4. Press the shortcut again to return to regular text.

You can also type the entire expression, select the exponent, and then use the shortcut. For example, type x2, highlight the 2, and press the shortcut. Microsoft Word supports superscript formatting through this keyboard command, which is ideal for reports, essays, lab notes, and documents that should not look like they escaped from a calculator screen.

Use Alt Codes for Common Superscript Numbers

Windows users with a physical numeric keypad can type a few common exponent symbols with Alt codes. Make sure Num Lock is enabled, hold down Alt, type the code on the numeric keypad, then release Alt.

  • Alt + 0178 = ²
  • Alt + 0179 = ³

These are handy for quick phrases such as m², cm³, or 2². The catch is that Alt codes need the numeric keypad, not the number row above the letters. This is why laptop users sometimes press Alt combinations with tremendous confidence and get absolutely nothing except emotional damage.

Use Unicode Codes in Microsoft Word

Word also supports a useful Unicode conversion trick. Type a Unicode code, then press Alt + X. For example:

  • Type 00B2, then press Alt + X to create ².
  • Type 00B3, then press Alt + X to create ³.
  • Type 2074, then press Alt + X to create ⁴.
  • Type 2075, then press Alt + X to create ⁵.

This works especially well when you need superscript digits beyond 2 and 3. Unicode includes superscript zero through nine, plus superscript plus, minus, equals, and parentheses.

Use the Windows Symbol Panel or Character Map

When shortcuts fail, Windows has a less glamorous but reliable backup plan. Press Windows + . to open the emoji and symbols panel, then browse symbols. You can also search for Character Map from the Start menu and copy the character you need.

Character Map is not flashy. It does not arrive on a skateboard or play a victory soundtrack. But it lets you locate and copy unusual symbols when your keyboard refuses to cooperate.

Typing Exponents in Google Docs on Windows

In Google Docs, use Ctrl + . to toggle superscript formatting. Type the base, activate superscript, type the exponent, and turn the shortcut off when you are done. For more complicated equations, use the equation editor instead of forcing a paragraph to impersonate a textbook.

Google Docs also provides equation shortcuts. In the equation tool, you can begin a superscript structure with the documented equation command sequence involving a backslash and Shift + 6. That approach is better for expressions with grouped exponents, fractions, roots, and variables.

How to Type Exponents on a Mac

Use Superscript in Microsoft Word for Mac

Mac users can use the same general Word workflow, with a different modifier key:

  1. Type the base number or variable.
  2. Press Command + Shift + +.
  3. Type the exponent.
  4. Press the shortcut again to return to normal text.

For example, type m, use the shortcut, then type 2 to produce m2. You can also select an existing number and apply the formatting afterward. This is useful when you notice your exponent is sitting on the baseline like it missed the elevator.

Use the Mac Character Viewer

The Mac Character Viewer is one of the easiest ways to insert Unicode superscript symbols without memorizing codes.

  1. Click where you want the exponent.
  2. Press Fn + E or Globe + E, depending on your keyboard.
  3. Search for “superscript.”
  4. Choose the symbol you need, such as ², ³, ⁴, or ⁹.

You can also save frequently used characters to Favorites, which is excellent for people who type square meters, cubic centimeters, scientific units, or math exercises often enough to deserve a shortcut. Apple’s Character Viewer can search and insert symbols across compatible Mac apps.

Use Pages or Numbers Formatting

In Apple Pages and Numbers, you can apply superscript formatting to selected text. Pages also supports a keyboard shortcut for superscript in many setups: Control + Shift + Command + +. If your shortcut differs because of your keyboard layout, use the Format panel and choose a baseline option such as Superscript.

This method is better than a Unicode character when you need a long exponent, a variable, or a grouped expression. For instance, (x + y)12 is much easier to format properly than trying to hunt down a magical Unicode version of every letter, number, parenthesis, and emotional support symbol.

How to Type Exponents on Android

Long-Press Number Keys on Gboard

Many Android keyboards, including common Gboard layouts, let you access superscript numbers by pressing and holding a number key. Open the keyboard, stay on the regular letter layout if necessary, then long-press a number to see alternate characters.

Depending on the keyboard version, language layout, and phone manufacturer, you may see options such as ², ³, ⁴, ⁵, ⁶, ⁷, ⁸, and ⁹. Drag your finger to the symbol and release. It is a quick method for a text message, social post, note, or short caption.

Android keyboards can vary considerably, so do not panic if your phone hides the superscript choices in a different place. Check the symbols page, long-press the number keys, or switch to another keyboard layout. Gboard’s long-press behavior can expose alternate characters, but availability may depend on the active layout and settings.

Use Google Docs or Microsoft Word on Android

For schoolwork or professional documents, use the app’s text-formatting controls instead of relying only on Unicode characters. In a document editor, select the exponent and choose superscript from the text formatting menu when available.

This approach matters when the exponent has multiple characters. A Unicode superscript string can work for something like 10², but it becomes less graceful when you need something like 10n+1. At that point, the expression deserves real formatting rather than a collection of tiny symbols held together by optimism.

Keep a Copy-and-Paste Exponent Strip

If you type exponents frequently on Android, save this line in a note:

⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾

You can copy the character you need and paste it into messages, comments, spreadsheets, or captions. It is not glamorous, but neither is digging through symbol menus while someone waits for your answer to “What is 5 cubed?”

How to Type Exponents on iPhone and iPad

Use Text Replacement for Frequent Exponents

The standard iPhone keyboard does not always make a full set of superscript numbers easy to access directly. A highly practical workaround is Text Replacement.

  1. Open Settings.
  2. Go to General > Keyboard > Text Replacement.
  3. Tap the plus button.
  4. Enter a phrase such as ².
  5. Create a shortcut such as sq2.

Now, when you type sq2, your iPhone can suggest or replace it with ². You can create shortcuts such as cube3 for ³, pow4 for ⁴, or metersq for m². Apple’s text replacement feature is designed specifically to turn short typed phrases into longer text or symbols.

Use Superscript Formatting in Pages, Numbers, or Keynote

If you are working in Apple’s document apps, you can select text and apply a superscript baseline option. In Pages on iPhone or iPad, select the exponent, open the formatting controls, find additional text options, and choose Superscript.

This is the best choice for essays, worksheets, presentations, and documents where the math needs to look polished. It also works better for letters and long exponents than relying on individual Unicode characters.

Use an External Keyboard with iPad

If you use an iPad with a physical keyboard, many apps support desktop-style shortcuts. Google Docs for iPhone and iPad, for example, lists Command + . for superscript. That can make an iPad feel much closer to a compact laptop, minus the moment when you forget where you placed the charging cable.

Unicode Superscript Versus Real Superscript Formatting

This distinction matters more than it first appears. Unicode superscript characters such as ² and ³ are real characters that can be copied and pasted. They are excellent for short expressions, units, labels, usernames, and messages.

However, Unicode superscripts are limited. There are superscript digits, a few symbols, and some letters, but not every character you might need for advanced algebra. Formatting tools, equation editors, and mathematical markup can create almost any exponent cleanly.

Use Unicode when you need something quick and portable:

  • m²
  • cm³
  • H₂O and CO₂ labels
  • 2² or 3³ in a text message
  • Short social media captions

Use real superscript formatting or equation tools when you need:

  • Variables such as xn
  • Grouped expressions such as (a + b)2
  • Negative exponents such as 10-6
  • Fractions, roots, matrices, or scientific notation
  • Professional academic or technical documents

Unicode defines a dedicated superscripts and subscripts block, including the standard superscript digits and several related mathematical symbols. That is why these characters can travel between many apps and devices, although their appearance may vary slightly by font.

When to Use a Caret Instead of a Superscript

Sometimes you should not use a raised exponent at all. In plain text, email, coding, spreadsheets, and calculator-style input, the caret symbol is often clearer:

  • x^2 means x squared.
  • 2^10 means 2 to the tenth power.
  • 10^-3 means ten to the negative third power.

For example, Microsoft Excel uses the caret as the exponent operator in formulas. Typing =2^8 returns 256. In JavaScript, the exponentiation operator is **, so 2 ** 8 returns 256. The symbols may look less elegant than typography, but computers care more about correct instructions than whether your formula arrived wearing a tuxedo.

Typing Exponents for Websites and HTML

If you are writing for a website, use the HTML <sup> element for ordinary superscript text:

That displays as x2. For example, write m<sup>2</sup> for m2, or 10<sup>-6</sup> for 10-6.

The <sup> element is appropriate when raising characters changes the meaning, such as with exponents, ordinal indicators, or footnote markers. For more advanced mathematical expressions, consider MathML, LaTeX rendering, or an equation plugin rather than building a complicated formula from tiny HTML tags and pure determination.

Common Exponent Typing Problems and Fixes

My Alt Code Does Not Work

Check whether Num Lock is enabled and make sure you are using the numeric keypad. The top row of number keys usually will not work for Windows Alt codes. On a laptop without a keypad, use Character Map, the Windows symbol panel, Word’s Unicode conversion, or copy and paste the character.

My Superscript Is Too Small or Looks Strange

Unicode symbols depend on the font and app. Try a more common font, such as Arial, Calibri, Times New Roman, or a system font. For formal documents, use the app’s actual superscript formatting instead of Unicode characters.

I Need Letters in the Exponent, Not Just Numbers

Use superscript formatting or an equation editor. Unicode has some superscript letters, but it does not offer a perfect, complete alphabet for every mathematical situation. A full equation editor is much less likely to make your formula look like it was assembled from spare keyboard parts.

I Need to Type Exponents in a Spreadsheet

For a calculation, use the spreadsheet’s exponent operator. In Excel, that is usually the caret symbol, as in =5^3. For a label or title, use formatted superscript text if the app supports it.

Real-World Experiences: What Typing Exponents Is Actually Like

Typing exponents sounds like one of those tiny digital tasks that should take two seconds. In real life, it often takes two seconds only after you have already spent twenty minutes learning why the shortcut works in one app, fails in another, and transforms into a completely different creature on a phone.

A common experience starts in school. Someone is writing a science assignment about area, volume, or chemical formulas. They need m², cm³, or 10-4. They type the expression normally, see that the 2 is sitting on the same line as everything else, and begin clicking random buttons in the toolbar. Eventually, they discover superscript formatting. From that point on, every exponent looks wonderfully professional, and every previous document suddenly feels like an archaeological artifact.

Windows users often have a different journey. They learn that Alt + 0178 creates ² and feel unstoppable for approximately six minutes. Then they need ⁴, discover that their laptop has no numeric keypad, and realize that the internet has been overselling the simplicity of Alt codes. The practical lesson is that Windows offers several routes: Word shortcuts for formatted documents, Unicode conversion for special characters, and the symbol panel or Character Map when the keyboard is being stubborn.

Mac users usually have a smoother backup option because the Character Viewer is easy to search. The first time you use it, it may feel slightly slow. By the third time, it becomes a dependable little symbol pantry. Search “superscript,” pick the character, and keep moving. For someone writing measurements, chemistry notes, or product descriptions, saving commonly used symbols to Favorites can be a surprisingly useful quality-of-life upgrade.

Android users often discover superscript symbols by accident. A long press on a key reveals a menu, and suddenly there is a tiny raised 2 hiding behind the normal number. That can feel like finding an extra pocket in a jacket. The downside is that keyboard behavior varies. One Android phone may show superscript digits immediately, while another keyboard app places them behind a different symbols menu. The safest habit is to keep a copy-and-paste exponent strip in a note for the moments when hidden characters decide to play hide-and-seek.

On iPhone, text replacement is one of the most practical long-term solutions. It may seem excessive to create a shortcut for a single symbol, but it becomes worthwhile when you type the same notation regularly. A student can set sq2 to become ². A construction writer can set sqm to become m². A science teacher can create shortcuts for common measurements. After a few setups, the keyboard begins to feel customized rather than limited.

The biggest lesson from real-world exponent typing is that there is no universal “best” method. A Unicode character is excellent for a message. A keyboard shortcut is ideal in Word. A caret is correct in a spreadsheet formula. An equation editor is best for serious math. The goal is not to memorize every shortcut known to humanity. The goal is to recognize which tool fits the place where you are typing.

Once that becomes a habit, typing exponents stops being a frustrating interruption. You type 2² in a message, xn in a report, =2^10 in a spreadsheet, and <sup> tags on a website without thinking twice. The exponent may be small, but the confidence boost is surprisingly large.

Final Thoughts

Typing exponents on a keyboard is easier once you separate the job into the right category. Use a superscript shortcut in Word or Google Docs. Use Unicode characters for quick messages and measurements. Use text replacement on iPhone when you type the same symbols often. Use a caret in spreadsheets, calculators, plain text, and code. Use equation tools when the math gets complicated.

The next time you need to write x², 10³, m², or 216, you will not need to hunt through menus like a digital treasure explorer. You will know exactly which method gets the exponent where it belongs: slightly above the line, proudly doing its tiny but important job.