Quick start: Use
_ for subscripts and ^ for superscripts. For multiple characters, enclose in braces: x_{12} and x^{2n}.Prerequisites: Basic LaTeX knowledge. For math mode basics, see Mathematical Expressions.Last updated: January 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?
In LaTeX, subscripts are notations placed below the baseline using the underscore character (
_), 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?
Always use braces Wrong syntax:This is one of the most common subscript errors in LaTeX.
{} to group multiple characters in a LaTeX subscript or superscript. Without braces, only the first character becomes a subscript.Correct subscript syntax:Why do I get a 'Double subscript' error in LaTeX?
Why do I get a 'Double subscript' error in LaTeX?
The “Double subscript” error occurs when you try to apply two subscripts to the same variable without proper grouping:Solutions:
- 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?
For chemical formula subscript notation, enclose the formula in For better chemistry support, use the
\mathrm{} and use subscripts for atom counts:mhchem package:What's the correct syntax for tensor notation subscripts?
What's the correct syntax for tensor notation subscripts?
Tensor notation typically places superscripts before subscripts for contravariant and covariant indices:The
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)?
Yes! Use Alternatively, use math mode notation within text:
\textsubscript{} and \textsuperscript{} commands for text mode subscript notation:How do I avoid deeply nested subscript errors?
How do I avoid deeply nested subscript errors?
Avoid excessive subscript nesting beyond 2-3 levels, as it becomes hard to read:Acceptable nesting:Problematic nesting:Best practice: For complex notation, break expressions into parts for clarity.
What's the best practice for mathematical indices in research papers?
What's the best practice for mathematical indices in research papers?
Consistency guidelines for academic subscript notation:
- 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)
Rendered Output
Single character: , , Multiple characters: , , Variables: , , Greek letters: , ,
Superscripts (Exponents)
Rendered Output
Single character: , , Multiple characters: , , Common exponents: , , Special notations: , ,
Important Rule: Braces for Multiple Characters
Combined Subscripts and Superscripts
Basic Combinations
Rendered Output
Both subscript and superscript: , , Order doesn’t matter: Complex combinations: , With operators: , Tensor notation:
Nested Subscripts and Superscripts
Rendered Output
Nested superscripts: , , Nested subscripts: , Mixed nesting: , With braces: Tower notation:
Special Use Cases
Limits and Operators
Rendered Output
Inline limit: Display style limit: Summation: Product: Integration: Multiple limits:
Chemical Formulas
Rendered Output
Basic chemical formulas: , , Isotopes: , , Ions: , , Chemical equation:
Physics and Engineering Notation
Rendered Output
Vector components: Derivatives: , Tensors: , Four-vectors: Christoffel symbols: Units: ,
Advanced Techniques
Primes and Multiple Primes
Rendered Output
Single prime: , Multiple primes: , Alternative notation: , With subscripts: , Prime on subscript: ,
Positioning and Spacing
Accents with Sub/Superscripts
Rendered Output
Accents with subscripts: , , Accents with superscripts: , , Combined: , Wide accents: ,
Text Mode Subscripts and Superscripts
Rendered Output
In text mode: HO is water. E = mc is Einstein’s equation.Ordinals: 1, 2, 3Footnote markers: Text, Reference
Common Errors and Solutions
Error: Double subscript
Error: Double subscript
Problem:
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
Problem:
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
Problem: Limits appear cramped in inline math.Solution: Use display style or
\limits:Prime notation conflicts
Prime notation conflicts
Problem:
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
| Command | Result | Description |
|---|---|---|
x_1 | Single subscript | |
x^2 | Single superscript | |
x_{12} | Multiple character subscript | |
x^{2n} | Multiple character superscript | |
x_i^j | Combined sub/superscript | |
\sum_{i=1}^n | Summation limits | |
\lim_{x \to 0} | Limit notation | |
f'(x) | Prime notation | |
{}_{a}^{b}X_{c}^{d} | Pre-superscript/subscript | |
\textsubscript{2} | HO | Text mode subscript |
^{14}\mathrm{C} | Isotope notation | |
T^{\mu\nu}_{\rho} | Tensor notation |
Related Topics
Mathematical Expressions
Basic math mode and LaTeX subscript expressions
Equations Guide
Multi-line and numbered equations
Matrices & Arrays
Matrix notation with subscript indices
LaTeX Symbols Reference
Complete symbol reference for subscripts
Chemistry Notation
Chemical formula subscript notation
Physics Notation
Physics symbols and tensor 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
