_ in math mode: x_1. Use ^ for a superscript: x^2. Braces are required when more than one character belongs in the lower or upper position, as in x_{12} or x^{2n}.
$x_1$, $x_{n+1}$, $x^2$, and $x^{2n}$. Put the expression in math mode and group multi-character subscripts or superscripts with {...}.Prerequisites: Basic LaTeX knowledge. For math mode basics, see Mathematical Expressions.Last updated: April 2026 | Reading time: 12 min | Difficulty: Beginner to IntermediateWhat You’ll Learn
- ✅ Basic LaTeX subscript and superscript syntax for mathematical notation
- ✅ Multiple character subscripts and compound superscript expressions
- ✅ Special cases (limits, operators, tensor notation)
- ✅ Chemical formula subscript notation and isotopes
- ✅ Advanced subscript positioning and formatting techniques
- ✅ Common subscript errors and how to fix them
- ✅ Best practices for readable mathematical notation
Frequently Asked Questions
What is the difference between subscripts and superscripts in LaTeX?
What is the difference between subscripts and superscripts in LaTeX?
_), commonly used for indices and chemical formulas. Superscripts are placed above the baseline using the caret character (^), typically for exponents and powers. Both are essential for mathematical and scientific notation in professional documents.Quick Example:- Subscript:
x_1renders as x₁ - Superscript:
x^2renders as x²
How do I write multiple character subscripts in LaTeX?
How do I write multiple character subscripts in LaTeX?
{} to group multiple characters in a LaTeX subscript or superscript. Without braces, only the first character becomes a subscript.Correct subscript syntax:Wrong syntax:This is one of the most common subscript errors in LaTeX.Why do I get a 'Double subscript' error in LaTeX?
Why do I get a 'Double subscript' error in LaTeX?
- Use nested braces if one subscript depends on another:
- Or separate them with an empty group:
How do I use subscripts in chemical formulas?
How do I use subscripts in chemical formulas?
\mathrm{} and use subscripts for atom counts:For better chemistry support, use the mhchem package:What's the correct syntax for tensor notation subscripts?
What's the correct syntax for tensor notation subscripts?
tensor package can simplify pre-superscripts and pre-subscripts in tensor notation.Can I use subscripts in LaTeX text mode (outside of equations)?
Can I use subscripts in LaTeX text mode (outside of equations)?
\textsubscript{} and \textsuperscript{} commands for text mode subscript notation:Alternatively, use math mode notation within text:How do I avoid deeply nested subscript errors?
How do I avoid deeply nested subscript errors?
What's the best practice for mathematical indices in research papers?
What's the best practice for mathematical indices in research papers?
- Index naming: Use consistent single letters (i, j, k) throughout
- Coordinate systems: Stick to one notation style consistently
- Vector notation: Use either subscripts or superscripts consistently
- Summation indices: Follow Einstein summation convention in physics
- Semantic meaning: Choose meaningful indices:
v_xinstead ofv_1for x-component
Basic Syntax
Subscripts (Indices)
Expected output
Superscripts (Exponents)
Expected output
Important Rule: Braces for Multiple Characters
Combined Subscripts and Superscripts
Basic Combinations
Expected output
Nested Subscripts and Superscripts
The preview demonstrates every nesting pattern from the source in one compiled page. Prefer the shallowest notation that communicates the structure, and add braces explicitly at each level so the grouping remains readable and maintainable.Special Use Cases
Limits and Operators
The compiled result above shows the important layout difference: inline limits keep their condition beside the operator, while display-style limits, sums, products, integrals, and multi-line conditions place their scripts in the conventional display positions. Use the source and preview together to compare the exact input with the typeset result.Chemical Formulas
Expected output
Physics and Engineering Notation
Expected output
Advanced Techniques
Primes and Multiple Primes
Expected output
Positioning and Spacing
Accents with Sub/Superscripts
Expected output
Text Mode Subscripts and Superscripts
Expected output
Common Errors and Solutions
Error: Double subscript
Error: Double subscript
x_a_b causes “Double subscript” error.Solution: Use braces to clarify structure:Only first character is sub/superscript
Only first character is sub/superscript
x_12 shows as x₁2 instead of x₁₂.Solution: Always use braces for multiple characters:Subscripts in limit are inline
Subscripts in limit are inline
\limits:Prime notation conflicts
Prime notation conflicts
x'^2 doesn’t work as expected.Solution: Use proper grouping:Best Practices
1. Readability Guidelines
2. Consistency Rules
- Indices: Use consistent letters (i, j, k or m, n, p)
- Coordinates: Be consistent (x, y, z or r, θ, φ)
- Time derivatives: Choose notation and stick to it (ẋ or dx/dt)
- Vector components: Consistent notation (subscripts or superscripts)
3. Special Notation Standards
4. Accessibility Considerations
- Avoid excessive nesting that’s hard to read
- Use
\text{}for words in subscripts:x_{\text{max}} - Consider alternative notations for complex expressions
- Break very complex expressions into parts
Quick Reference Card
Related Topics
Mathematical Expressions
Equations Guide
Matrices & Arrays
LaTeX Symbols Reference
Chemistry Notation
Physics Notation
Further Reading & References
For authoritative documentation on LaTeX subscript and superscript handling:- amsmath Package Documentation - The standard package for advanced mathematical notation, including enhanced subscript positioning
- The LaTeX Companion (3rd Edition) - Comprehensive reference for mathematical typesetting best practices
- ISO 80000-2 - International standard for mathematical notation in scientific documents
