_ in math mode: x_1. To write a superscript, use ^: x^2. When the subscript or superscript contains more than one character, wrap it in braces, as in x_{12} or x^{2n}. This guide starts with the basic subscript syntax most people search for, then covers superscripts, chemistry notation, tensors, and the errors that usually break equations.
_ 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: 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: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: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: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)
Rendered Output
Superscripts (Exponents)
Rendered Output
Important Rule: Braces for Multiple Characters
Combined Subscripts and Superscripts
Basic Combinations
Rendered Output
Nested Subscripts and Superscripts
Rendered Output
Special Use Cases
Limits and Operators
Rendered Output
Chemical Formulas
Rendered Output
Physics and Engineering Notation
Rendered Output
Advanced Techniques
Primes and Multiple Primes
Rendered Output
Positioning and Spacing
Accents with Sub/Superscripts
Rendered Output
Text Mode Subscripts and Superscripts
Rendered 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
