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.What You’ll Learn
- ✅ Basic subscript and superscript syntax
- ✅ Multiple levels and combined notation
- ✅ Special cases (limits, operators, tensors)
- ✅ Chemical formulas and isotopes
- ✅ Advanced positioning and formatting
- ✅ Common errors and how to fix them
- ✅ Best practices for readability
Basic Syntax
Subscripts (Indices)
x₁, x₂, xₙ
x₁₂, xₙ₊₁, xₘₐₓ
aᵢ, bⱼ, cᵢⱼ
α₁, βₙ, γᵢ,ⱼ
Superscripts (Exponents)
x², xⁿ, x*
x¹⁰, x²ⁿ, xⁿ⁺¹
eˣ, 2ⁿ, 10⁻³
x′, x†, x*
Important Rule: Braces for Multiple Characters
Critical: Without braces, only the first character after
_
or ^
becomes sub/superscript:x_12
renders as x₁2 (only 1 is subscript)x_{12}
renders as x₁₂ (both 1 and 2 are subscript)
Combined Subscripts and Superscripts
Basic Combinations
x₁², aₙᵐ, xᵢʲ⁺¹
x₁² = x₁²
xₙ₊₁²ᵐ, aᵢⱼᵏˡ
∑i=1n,
∫0∞
Tμνρσ
Nested Subscripts and Superscripts
x2n, ex2, 2222
xij, ank+1
xijk, amnpq
(x²)³ = x⁶
222···
Special Use Cases
Limits and Operators
limx→0 f(x)
lim
x→∞
∑n
i=1i =n(n+1)2
i=1i =n(n+1)2
Chemical Formulas
H₂O, CO₂, H₂SO₄
14C, 235U, 2H
Na⁺, Cl⁻, SO₄²⁻
H₂O, CO₂, H₂SO₄
14C, Na⁺, SO₄²⁻
2H₂ + O₂ → 2H₂O
Physics and Engineering Notation
v⃗ = vₓî + vᵧĵ + vᵤk̂
d²ydx², ∂²f∂x²
gμν, Rαβγδ
xμ = (ct, x, y, z)
Γλμν
10⁻⁹ m, 3.0 × 10⁸ m/s
Advanced Techniques
Primes and Multiple Primes
f′(x), y′
f″(x), f‴(x)
f′(x), f″(x)
x′₁, x″ₙ
xₙ′, xₙ″
Positioning and Spacing
Accents with Sub/Superscripts
x̂ᵢ, ỹₙ, z̄ₖ
x̂², v⃗ᵀ, ẋⁿ
x̂ᵢ², φ̃ₙₘᵏˡ
^xyz₁², ~ABCᵢⱼ
Text Mode Subscripts and Superscripts
H2O is water.
E = mc2 is Einstein’s equation.
H₂O is water.
E = mc² is Einstein’s equation.
1st, 2nd, 3rd
Texta, Reference1
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
✅ Good Practices
- Use meaningful subscripts:
v_x
notv_1
for x-component - Avoid deep nesting:
x_
is okay, deeper is confusing - Be consistent: If using
i,j,k
for indices, stick to it - Use semantic notation:
\max
notmax
❌ Poor Practices
- Overusing sub/superscripts:
x_{a_{b_{c_{d}}}}
- Mixing notation styles in same document
- Using subscripts for non-mathematical text
- Forgetting braces:
x_min
instead ofx_{min}
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
Subscripts & Superscripts Quick Reference
Related Topics
Mathematical Expressions
Basic math mode and expressions
Equations Guide
Multi-line and numbered equations
Chemistry Notation
Chemical formulas and equations
Physics Notation
Physics symbols and notation
LaTeX Cloud Studio tip: Use our equation preview feature to instantly see how your subscripts and superscripts render. No compilation needed!