An exponent is a small raised number that shows a power, as in x² or 10³. There are two very different ways to produce one: formatting the digit as superscript, which works for any number, or typing a Unicode superscript character such as ², which survives copy and paste into places that do not support formatting. This guide covers both in every app people ask about.
Quick answer
| Where | Fastest method |
|---|---|
| Word (Windows) | Select the exponent, press Ctrl+Shift+= |
| Word (Mac) | Select the exponent, press Cmd+Shift+= |
| Google Docs | Select the exponent, press Ctrl+. (Cmd+. on Mac) |
| Excel calculation | Type the caret: =5^2 |
| Excel display | Format Cells → Font → Superscript |
| Any plain-text field | Copy ² or ³ from the top of this page, or Alt+0178 / Alt+0179 on Windows |
Superscript formatting in Word
Formatting is the right choice for documents: the exponent can be any number or letter, it stays aligned with the font, and it prints correctly.
- Type the base and the exponent normally, for example
x2. - Select the
2. - Press Ctrl+Shift+= (Windows) or Cmd+Shift+= (Mac). The 2 rises to become x².
You can also press the shortcut first, type the exponent, and press it again to turn superscript off. The same option is on the ribbon: Home → Font → Superscript (the x² button). To adjust how high the exponent sits, open the Font dialog with Ctrl+D, choose Advanced, and change Position to Raised.
Word’s equation editor
For anything beyond a single exponent, such as (a+b)² or e^(x²), use the equation editor. Press Alt+= to insert an equation, then type with the caret: x^2 followed by a space becomes x². Fractions, roots and subscripts work the same way (a/b, \sqrt(x), x_1). The result is a real math object that reflows and can be converted to LaTeX or professional layout from the Equation tab.
Superscript in Google Docs
- Select the exponent.
- Press Ctrl+. on Windows or Chromebook, Cmd+. on Mac.
Or use Format → Text → Superscript. Docs also has an equation toolbar under Insert → Equation, where typing x^2 and pressing the right arrow produces the exponent. In Google Sheets, superscript formatting is only available through Format → Text → Superscript since 2023 and applies to the whole cell content, so for mixed text most people use the Unicode characters instead.
Exponents in Excel
Excel separates calculation from appearance.
To calculate a power
Use the caret operator or the POWER function:
=2^10returns 1024=POWER(2,10)returns the same=EXP(1)returns e, and=EXP(2)returns e²
Negative and fractional exponents work: =27^(1/3) returns 3.
To display an exponent
If the cell holds text such as a unit or a label, format part of it as superscript:
- Double-click the cell or click in the formula bar.
- Select only the exponent digits.
- Press Ctrl+1 to open Format Cells and tick Superscript under Effects.
This only works on text, not on the result of a formula. For a numeric result that should look like a power, use a custom number format that adds a Unicode character: Format Cells → Custom with a format such as 0" m²" displays 25 as 25 m² while keeping the value numeric.
Unicode superscript characters
Unicode includes ready-made raised digits. They are real characters, so they work in file names, email subjects, chat, social posts, spreadsheets and anywhere else formatting is stripped. Copy them from the tiles at the top of this page, or type them:
| Character | Name | Windows Alt code | Word Alt+X | HTML |
|---|---|---|---|---|
| ² | Superscript two | Alt+0178 | 00B2 then Alt+X | ² |
| ³ | Superscript three | Alt+0179 | 00B3 then Alt+X | ³ |
| ¹ | Superscript one | Alt+0185 | 00B9 then Alt+X | ¹ |
| ⁰ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ | Superscript zero and four to nine | none (Unicode only) | 2070, 2074 to 2079 then Alt+X | ⁰ ⁴ … |
| ⁿ | Superscript n | Alt+252 | 207F then Alt+X | ⁿ |
| ⁺ ⁻ ⁼ ⁽ ⁾ | Superscript plus, minus, equals, parentheses | none | 207A to 207E then Alt+X | ⁺ … |
On a Mac there is no Option shortcut for these; use the Character Viewer (Control+Cmd+Space, search “superscript”) or a text replacement. On iPhone and Android, copy them or add a text replacement. The superscript generator converts a whole string, including letters, into these characters.
Limits of the Unicode approach
Only digits, a few operators and a partial set of letters exist as superscripts. There is no superscript for many letters, and the characters render slightly differently from formatted superscript because they come from the font’s own design rather than a scaled digit. For a formal document, format the exponent; for plain text, use the characters.
Typing the caret (^)
In plain text and in programming, the caret stands in for “to the power of”: 2^10. It is Shift+6 on US keyboards. Excel, Sheets, Python and most calculators read it as exponentiation. Note that in JavaScript ^ is XOR, and ** is the power operator.
Troubleshooting
- The shortcut does nothing in Word. Another add-in may have taken Ctrl+Shift+=; use the ribbon button or reset the shortcut under File → Options → Customize Ribbon → Keyboard shortcuts.
- Superscript looks too small in print. Reduce the offset in Font → Advanced → Position, or use the equation editor, which sizes exponents properly.
- The Alt code inserts a different character. Type the leading zero: Alt+0178 is ², Alt+178 is a block character from the old CP437 table.
- The exponent turned into a footnote number. In Word, a superscript digit at the end of a sentence is just formatting, but if you inserted a footnote by mistake (Ctrl+Alt+F), delete the reference mark and the note disappears.
Frequently asked questions
What is the shortcut for superscript in Word? +
Ctrl+Shift+= on Windows and Cmd+Shift+= on Mac. Press it once to start superscript, type the exponent, and press it again to return to normal text.
How do I type x squared on a keyboard? +
Type x, then hold Alt and type 0178 on the numeric keypad for ². On a Mac use the Character Viewer or copy ² from this page. For any other power, use superscript formatting instead.
How do I write an exponent in Excel? +
For a calculation, use the caret: =2^10. For display only, select the exponent digits in the formula bar and apply superscript from Format Cells, or use the Unicode characters ² and ³.
Why does my exponent disappear when I copy the text? +
Superscript is formatting, and plain-text fields such as chat, subject lines and file names strip it. Use the Unicode superscript characters (² ³ ⁴) when the text has to survive as plain text.