Enter subscripts and superscripts directly from the keyboard or using menu commands.

In Input (Superscripts)...

Type a superscript with (Insert Typesetting Superscript). Exit from a superscript with (Insert Typesetting End Subexpression):

  • is a mnemonic for power, as in x^2.

In Input (Subscripts)...

Type a subscript with (Insert Typesetting Subscript). Exit from a subscript with (Insert Typesetting End Subexpression):

  • is a mnemonic for the common ASCII notation for subscripts, as in .

In Text (Superscripts)...

Type a superscript with (Insert Typesetting Superscript). Exit from typing math with :

Exit from a superscript but continue typing math with (Insert Typesetting End Subexpression):

  • Typing a superscript in text automatically enters math mode. You can enter math mode explicitly with . See Insert Inline Math In Text for details.

In Text (Subscripts)...

Type a subscript with (Insert Typesetting Subscript). Exit from typing math with :

Exit from a subscript but continue typing math with (Insert Typesetting End Subexpression):

  • Typing a subscript in text automatically enters math mode. You can enter math mode explicitly with . See Insert Inline Math In Text for details.

Programmatically...

On output, Subscript, Superscript and Subsuperscript format respectively as subscripts, superscripts and subsuperscripts:

In[1]:=
Click for copyable input
Out[1]=
Notes
To enter both a subscript and superscript, start with one or the other and then switch to the other position with :