Underleaf Logo
Underleaf
PricingBlogInstall for OverleafStart for free

Learn LaTeX

Text Formatting

  • Bold Text in LaTeX
  • Italics in LaTeX
  • Subscript and Superscript
  • Greek Letters and Symbols

How to Use Superscripts and Subscripts in LaTeX

Subscripts and superscripts are essential for mathematical notation, chemical formulas, and academic writing. This guide covers all the methods for creating sub and superscripts in LaTeX, both in math mode and text mode.

Basic Math Mode Usage

In math mode, use _ for subscripts and ^ for superscripts:

x_i^2

Common Applications

  1. Mathematical sequences:

    a_1, a_2, \ldots, a_n

  2. Chemical formulas:

    H_2O, CO_2

  3. Powers and exponents:

    e^{x^2}

Text Mode Options

For subscripts and superscripts in regular text, use the \textsuperscript and \textsubscript commands.

Command Reference

CommandUse CaseMode
_SubscriptsMath mode
^SuperscriptsMath mode
\textsuperscriptSuperscriptsText mode
\textsubscriptSubscriptsText mode

Advanced Techniques

Multiple levels of subscripts and superscripts:

x_{i_{j}}^{2^n}

Side-by-side sub/superscripts:

{}_{b}^{a}X

Best Practices

  1. Always use curly braces for multi-character sub/superscripts
  2. Use math mode for mathematical expressions, even within text
  3. Consider readability when nesting multiple levels
  4. Use \textsubscript and \textsuperscript for non-mathematical content
  5. Be consistent with spacing around operators and relations
Underleaf Logo
Underleaf

Empowering students and researchers with AI-powered tools for academic writing.

Company

PricingGuideBlogLearn

© 2025 Underleaf. All rights reserved.