December 27, 2025

Subscripts and superscripts are fundamental to mathematical and scientific writing in LaTeX. This comprehensive guide covers everything from basic syntax to advanced techniques for complex indices, nested scripts, and field-specific notation.
Have equations with subscripts and superscripts from textbooks or notes? Use Underleaf’s Image to LaTeX tool to convert them instantly to clean, properly formatted LaTeX code!
Convert an imageIn LaTeX, subscripts use the underscore _ and superscripts use the caret ^:
The order doesn’t matter: x_i^2 and x^2_i produce the same result.
When your subscript or superscript has multiple characters, wrap them in curly braces { }:
Without braces, only the first character is affected:
Converting complex equations with nested subscripts from PDFs or images? Underleaf’s AI-powered converter handles all types of indices and exponents perfectly. Save hours of manual typing!
Try it nowYou can nest subscripts and superscripts by using additional _ and ^ within braces:
Subscripts and superscripts are crucial for notation involving sums, products, integrals, and limits:
For multi-letter text (not variables), use \text{} or \mathrm{}:
Without \text, letters are treated as separate variables:
Working with textbooks or papers full of complex indexing? Upload a screenshot to Underleaf’s converter and get perfectly formatted LaTeX code instantly. Perfect for homework and research!
Save time with Image → LaTeX toolPrime notation uses the apostrophe ' which is treated as a superscript:
Combining primes with other superscripts:
Tensors often require both upper and lower indices (contravariant and covariant):
Subscripts are essential for chemical notation. Use text mode for the subscripts:
x_{i+1} not x_i+1\text{} for words like x_ ext{max}x_i, don’t switch to y_j without reasonT^a_b is different from T_b^a\, if needed for clarity_ - Subscript^ - Superscript_{ } - Multi-character subscript^{ } - Multi-character superscript\text{} - Text mode in math' - Prime (treated as superscript)\ldots - Ellipsis for sequences\sum_{ }^{ } - Summation with limits\int_{ }^{ } - Integral with limits\lim_{ } - LimitNeed help with equations containing complex subscripts and superscripts? Underleaf’s Image to LaTeX tool can convert screenshots, handwritten notes, or PDFs into perfectly formatted LaTeX code. Try it for free!
Mastering subscripts and superscripts is essential for any technical or scientific writing in LaTeX. Whether you’re working with simple indices, complex tensor notation, or chemical formulas, these techniques will help you create clear and professional documents. Remember to use braces for multi-character scripts, text mode for words, and maintain consistency throughout your work.
Empowering students and researchers with AI-powered tools for academic writing.
Go to appContact us© 2026 Underleaf. All rights reserved.