How to Insert the Squared Symbol ² on Linux

by Heinz Tschabitscher | Aug 14, 2026 | Useful Tech

Need the squared symbol (²) on your Linux machine (for a formula, say, or area measure), and the keyboard lacks just that vital key? Copy-paste works once or twice, but turns tedious quickly. Find out here how to insert the squared sign (²) on Linux ⤓ (using a key combination, the “Compose” key or a character picker).

On This Page

How to Insert the Squared Sign ( ² ) on Linux

⚡ Quick Fix

US-English International keyboard layout: Press AltGr 2.
Unicode input: Press Ctrl Shift U, type 00B2 and press Enter.
Copy and paste: or .
You can also use a character picker such as Gnome Characters or KDE KCharSelect.

Using a Key Combination

Time needed: 1 minute

To type the symbol for “squared” ( ² ) on Linux using the keyboard alone:

  1. Add and turn on the US-English International keyboard layout.

    Here’s which: Choose the English (US, intl., with dead keys) layout.
    Other layouts: You can also switch to the English (US, Symbolic) keyboard layout for squared and other superscripted numbers.

  2. Place the text cursor where you want to insert the squared symbol (²).

    Here’s where: The sign for squared appears immediately after the number or symbol that is squared; If you use the raised number for a footnote, let it follow the passage in the text immediately as well; the footnote itself is also not separated from the raised number by any whitespace.

  3. Press AltGr 2.

    No “AltGr”: On many keyboards, AltGr is the right Alt key.
    Example: The gateway arch can be approximated with the equation y = 630 - 0.0635 x².
    The symbol for “squared” on the Linux US-English International keyboard

Exponential improvement achieved?

⇆ Buy La De Du a tea

Tips help fuel these email and tech how-tos.

Using a Character Picker

To find and copy the character for the squared symbol using a character picker on Linux:

  1. Open KDE KCharSelect or the Characters app on Gnome.
  2. Search for superscript two.
    Other superscripted characters: Search for superscript alone, of course, to discover additional superscripted characters.
  3. Highlight and copy the squared symbol ².
    Copying the superscript 2 in Gnome Characters

More superscript characters: How to Insert Superscript Letters on Linux

Using the “Compose” Key

To input the squared symbol using the “Compose” key on Linux:

  1. Define and enable the “Compose” key.
  2. Place the text cursor where the superscripted ‘2’ is to appear.
  3. Press Compose.
  4. Type 2.
  5. Now press Shift 6 (for ^, caret).

On a Mac? Type “Squared” ( ² ) on a Mac

How to Insert the Squared Sign ( ² ) on Linux: FAQ

Can I insert other raised numbers as well?

Yes.

You can input raised numbers using direct key combinations, the “Compose” key and Unicode.

Keyboard Layouts

Using the US-English International keyboard layout, you can insert the following superscripted numbers:

CharacterEnglish InternationalSymbolic
²AltGr 2AltGr 2
³AltGr 3AltGr 3
¹AltGr Shift 1AltGr 1
⁴AltGr 4
⁵AltGr 5
⁶AltGr 6
⁷AltGr 7
⁸AltGr 8
⁹AltGr 9
⁰AltGr 0

“Compose” Key

The Compose key allows for inserting the following additional raised numbers:

CharacterKey Sequence
²Compose  2  Shift 6
³Compose  3  Shift 6
¹Compose  1  Shift 6

Can I enter the squared symbol using its Unicode code point?

Yes.

To insert the superscript 2 using Unicode on Linux:

  1. Press Ctrl Shift U.
  2. Type 00B2 for ‘²’.
    Other numbers: Find the codes for other superscripted numbers below.
  3. Press Enter.
    Inserting the superscript number 2 using its Unicode code point on Linux

Unicode Code Points for Superscripted Numbers

CharacterUnicode code point
²00B2
³00B3
¹00B9
⁴2074
⁵2075
⁶2076
⁷2077
⁸2078
⁹2079
⁰2070

Can I copy and paste superscripted numbers, including ‘²’.

Yes.

Use the tables below to copy the symbol for squared as well as all other superscripted digits as Unicode characters for pasting anywhere on Linux:

superscript two ²
superscript one ¹
superscript three ³
superscript four ⁴
superscript five ⁵
superscript six ⁶
superscript seven ⁷
superscript eight ⁸
superscript nine ⁹
superscript zero ⁰

(Tested with Gnome 46–49 and KDE Plasma 6.2, first published January 2025, last updated August 2026)