CamteX
All guides

Superscript and subscript in LaTeX

A superscript (power) is written with ^ and a subscript with _. If the index has more than one character, wrap it in braces; otherwise only the first character ends up in the index.

Power and index

x_1^2 + x_2^2
x12+x22x_1^2 + x_2^2

Multi-character index

a_{n+1} = 2^{10}
an+1=210a_{n+1} = 2^{10}

Text subscript

E_{\text{kin}}
EkinE_{\text{kin}}

Common mistakes

See also

Don't want to memorize commands?

Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.

Try it free