Superscript in LaTeX uses the caret symbol (^) in math mode
To write superscript in LaTeX, you place a caret (^) before the character or group of characters you want to raise. The caret tells LaTeX to make whatever comes next smaller and higher on the line. This works inside math mode — the parts of your document where LaTeX knows you are writing mathematical notation.
The most common way to enter math mode is with dollar signs. A single dollar sign on each side ($...$) creates inline math, which sits within your paragraph. Double dollar signs ($$...$$) create a separate math block on its own line. Inside either one, the caret works the same way.
If you want superscript outside of math mode — for example, in regular text for a footnote marker or ordinal number — you need a different approach, which this guide covers below.
Key Takeaways
- Use the caret symbol (^) inside dollar signs to create superscript: $x^2$ produces x squared.
- Wrap multiple characters in curly braces so they all go up together: $x^{10}$ raises both the 1 and 0, not just the 1.
- For superscript in regular text outside math mode, use the \textsuperscript{} command.
- Nested superscript (superscript on top of superscript) works but looks cramped; use it only when necessary.
Single characters and the caret symbol
When you write $x^2$, LaTeX raises only the 2. The caret grabs the single character immediately after it. This is fine for exponents like squares and cubes, or for single-letter variables in scientific notation.
Type this into your LaTeX document:
The area of a circle is $A = \pi r^2$.
LaTeX will display "The area of a circle is A = πr²." with the 2 raised as a superscript. The caret works because you are inside the dollar signs, which tell LaTeX you are writing math.
Multiple characters need curly braces
If you want to raise more than one character, you must wrap them in curly braces {}. Without braces, the caret only affects the first character, and the rest stay on the baseline.
Compare these two:
$x^10$ produces x¹0 (only the 1 is raised).
$x^{10}$ produces x¹⁰ (both digits are raised).
The braces group the characters together so LaTeX treats them as a single unit to raise. This is essential for exponents with two or more digits, for multi-letter variables, or for any expression you want to keep together in superscript.
Another example: $2^{n+1}$ raises the entire expression n+1, not just the n.
Superscript in regular text using \textsuperscript
Sometimes you need superscript outside of math mode — for instance, in a footnote reference, an ordinal number, or a trademark symbol. The \textsuperscript{} command handles this.
Type this:
This is the 1\textsuperscript{st} edition of the manual.
LaTeX will display "This is the 1st edition of the manual." with the st raised. The command works in regular text without dollar signs.
You can also use it for footnote markers if your document style requires it, or for chemical formulas that are not in a math block. The text inside the braces will be smaller and raised, just like superscript in math mode.
Stacking superscript on superscript
You can write superscript of superscript by nesting carets, but the result is usually hard to read. LaTeX will make each level smaller and raise it higher, which quickly becomes cramped.
$x^{y^2}$ produces x with y² as the superscript. The y is already small because it is a superscript, and the 2 is even smaller because it is a superscript of a superscript.
Use nested superscript only when the mathematics genuinely requires it — for example, in a tower of exponents. For most documents, a single level of superscript is clearer and more readable.
Common mistakes and how to fix them
The most frequent error is forgetting the dollar signs. If you write x^2 without dollars, LaTeX treats the ^ as a regular character and either displays it literally or produces an error. Always wrap math notation in $...$ or $$...$$.
The second mistake is forgetting braces for multi-character superscripts. $x^10$ looks wrong because only the 1 rises. Add braces: $x^{10}$.
A third issue is mixing math mode and text mode. If you write $x^{2nd}$, the letters nd will be in math font, which looks different from regular text. For ordinal numbers and text in superscript, use \textsuperscript{} instead: 2\textsuperscript{nd}.
If your superscript does not appear, check that you closed the dollar signs. An unclosed $ will cause LaTeX to ignore everything after it until it finds another $, which breaks the rest of your document.
Subscript uses the underscore, not the caret
While you are working with exponents and notation, you may also need subscript — text that is smaller and lowered. LaTeX uses the underscore _ for subscript, with the same rules as superscript.
$x_1$ produces x₁. $x_{12}$ produces x₁₂. The underscore works inside dollar signs, and you need braces for multiple characters, just like the caret.
You can combine superscript and subscript on the same character: $x_1^2$ produces x₁² (the 1 is subscript, the 2 is superscript). The order does not matter — $x^2_1$ produces the same result.
Frequently Asked Questions
Do I need to load a special package to use superscript?
No. The caret symbol (^) for superscript in math mode is built into LaTeX by default. You do not need to add anything to your preamble. The \textsuperscript{} command for text-mode superscript is also standard and requires no package.
Why does my superscript look wrong or not appear at all?
The most common cause is missing dollar signs. LaTeX only recognizes the caret as a superscript command inside math mode, which is marked by $...$ or $$...$$. If you write x^2 without dollars, LaTeX treats ^ as a literal character. Check that your math notation is wrapped in dollar signs on both sides.
Can I use superscript in section headings or titles?
Yes. Use $x^2$ for math superscript or \textsuperscript{} for text superscript in headings just as you would in body text. LaTeX will handle the formatting automatically.
What is the difference between $ and $$?
$...$ creates inline math, which sits within your paragraph and does not break the line. $$...$$ creates display math, which appears on its own line and is centered. Use $...$ for short expressions in text, and $$...$$ for equations you want to stand out.
Can I make superscript even smaller or larger?
LaTeX automatically sizes superscript smaller than the base text. You can manually control the size with commands like \tiny or \large inside the braces, but this breaks the standard mathematical typesetting and is rarely necessary. Let LaTeX handle the sizing — it is designed to look right.