X squared symbol x²

Click x² to copy x squared, or grab a ready-made power such as x³, xⁿ or y². Every item pastes as plain text, so the small 2 stays raised in chats, documents and bios.

37 symbols on this page

X squared and other powers of x8

Other squared letters7

Superscript digits and signs16

Signs for equations6

Codes for every x squared symbol

SymbolNameUnicodeHTMLAlt code
superscript two U+00B2 ² Alt 253
superscript three U+00B3 ³ Alt 0179
superscript one U+00B9 ¹ Alt 0185
superscript zero U+2070 ⁰ –
superscript four U+2074 ⁴ –
superscript five U+2075 ⁵ –
superscript six U+2076 ⁶ –
superscript seven U+2077 ⁷ –
superscript eight U+2078 ⁸ –
superscript nine U+2079 ⁹ –
superscript small n U+207F ⁿ Alt 252
superscript plus sign U+207A ⁺ –
superscript minus U+207B ⁻ –
superscript equals sign U+207C ⁼ –
superscript left parenthesis U+207D ⁽ –
superscript right parenthesis U+207E ⁾ –
square root U+221A √ Alt 251
multiplication U+00D7 × Alt 0215
division U+00F7 ÷ Alt 246
plus minus U+00B1 ± Alt 241
not equal U+2260 ≠ –
approximately equal U+2248 ≈ Alt 247

What x squared means

x² (read "x squared") means x multiplied by itself: x × x. If x = 5, then x² = 25. The small raised 2 is the exponent, and the name comes from geometry: a square with sides of length x has an area of x².

You will see x² all over math and science: in the quadratic ax² + bx + c, in the area of a circle πr², in the Pythagorean theorem a² + b² = c², and in E = mc². The pattern works for any power, so x³ is x cubed and xⁿ is x to the nth power.

x² as text vs x^2

The x² on this page is two plain characters: the letter x and the superscript two ² (U+00B2). Because ² is a real character and not formatting, it keeps its raised look when you paste it into a text message, a comment, a spreadsheet cell or a social bio.

Calculators, spreadsheets and programming languages do not read ² as a power. In Excel and Google Sheets you write =A1^2, on most graphing calculators x^2, and in code a function such as pow(x, 2). Use x² when people will read it and x^2 when a program has to calculate it.

Do not confuse the variable x with the multiplication sign ×. In 3 × 2 the × means times; in x² the x is a number you do not know yet. For a textbook look, use the italic math letter 𝑥².

How to type x²

Type x, then add the ². On Windows, hold Alt and type 0178 on the number pad (or Alt + 253). A Mac has no default key for ², so open the Character Viewer with Control + Command + Space and search for "superscript two", or set up a text replacement such as "xsq" for x².

In Word you can also type a normal 2, select it and press Ctrl + Shift + = to make it superscript; in Google Docs press Ctrl + . (Command + . on a Mac). That formatting disappears in plain-text fields, so copy x² from this page when it has to survive pasting. In HTML, write x², and in LaTeX x^2.

On Android, Gboard shows ² when you long-press the 2 key on the symbols keyboard. iPhone keyboards have no ² key, so save x² as a text replacement in Settings > General > Keyboard > Text Replacement. More raised characters are on the superscript symbols page.

Frequently asked questions

How do you write x squared on a keyboard?

Type x, then insert the superscript two ²: Alt + 0178 on Windows, the Character Viewer on a Mac, or copy x² from this page. In calculators and spreadsheets, type x^2 instead.

What is the difference between x² and 2x?

x² means x times x, while 2x means 2 times x. For x = 3, x² is 9 but 2x is 6.

Is x² the same as x^2?

They mean the same thing. x² is the printed form, and x^2 is the keyboard form that calculators, spreadsheets and programming languages understand.