What Is a LaTeX Subscript and How Do You Use It?

A subscript in LaTeX is a character or group of characters that appears smaller and positioned below the baseline of regular text. It's commonly used in mathematics, chemistry, physics, and scientific writing to denote indices, chemical formulas, variable names with qualifiers, and other notations where a smaller, lowered element clarifies meaning.

If you're new to LaTeX—a document preparation system widely used in academia and technical fields—understanding subscripts (and their counterparts, superscripts) is essential for producing professional scientific documents.

Why Subscripts Matter in Technical Writing

Subscripts serve a specific communication function: they distinguish between related but different variables or elements. In mathematics, the difference between x and x₁ is clear visually and semantically. In chemistry, H₂O and H₂O₂ are entirely different substances. Without proper subscript notation, scientific writing becomes ambiguous and loses precision.

LaTeX handles subscripts automatically, scaling them appropriately and positioning them correctly—something that's harder to control in regular word processors. This is one reason LaTeX is the standard in fields where mathematical and chemical notation must be consistent and precise across long documents.

The Basic Syntax: The Underscore Character

In LaTeX, you create a subscript using the underscore character (_), followed by the character or characters you want to subscript.

Basic structure:

This produces: x₁

For multiple characters in a subscript, use curly braces:

This produces: x₁₂

Without the braces, LaTeX will only subscript the first character immediately following the underscore. So x_12 would produce x₁2 (only the 1 is subscripted), which is usually not what you want.

Common Use Cases and Examples

Mathematics and Variables

Subscripts are standard when you have multiple related variables:

  • a_1, a_2, a_3 for a sequence
  • x_{min} and x_{max} for minimum and maximum values
  • \mu_0 for the permeability of free space in physics

Chemistry

Chemical notation relies heavily on subscripts:

  • H_2O for water
  • CO_2 for carbon dioxide
  • CaCO_3 for calcium carbonate

Physics and Engineering

  • v_0 for initial velocity
  • F_{net} for net force
  • R_{total} for total resistance

Statistics

  • \mu_1, \mu_2 for different means
  • \sigma_x for standard deviation of x
  • n_{sample} for sample size

Subscripts in Different LaTeX Environments

In Inline Math Mode

When you're writing a subscript within text (inline), you use single dollar signs:

In Display Math Mode

For centered, standalone equations, use double dollar signs or the equation environment:

Or:

Both approaches handle subscripts the same way—the LaTeX engine manages sizing and positioning automatically based on context.

Combining Subscripts with Superscripts

You can use both subscripts and superscripts on the same character. The order doesn't matter; LaTeX positions them correctly:

Both produce: x₁²

For complex combinations, clarity through braces helps:

Subscripts with Special Formatting

Greek Letters

Subscripts work seamlessly with Greek letters:

Styled Text (Roman vs. Italic)

By default, subscript content in math mode is italicized. For non-variable text in subscripts, use \mathrm or \text:

This produces clearly readable subscripts where the text is upright rather than slanted.

Subscripts with Operators

This produces a summation where the limits appear properly positioned above and below the summation symbol.

Common Mistakes and How to Avoid Them

IssueWrongRight
Multiple subscript characters without bracesx_12 (produces x₁2)x_{12} (produces x₁₂)
Forgetting braces for long subscriptsx_maximumx_{maximum}
Subscripting non-math content$x_max$ (italicizes "max")$x_{\mathrm{max}}$
Nested subscripts (rare, but possible)x_{y_1} works finex_{y_1} is correct

Readability and Best Practices

Use subscripts purposefully. While LaTeX makes them easy to create, clarity should drive your choice. A variable named x_1 is clear; a variable named x_{very_long_descriptor} might be better expressed as a separate term or definition.

Define your notation. In academic writing, introduce subscript conventions early: "Let x_i denote the i-th observation" or "where subscript 0 indicates initial conditions." This helps readers understand your system at a glance.

Keep subscripts readable. Avoid extremely long or complex subscripts. If you find yourself writing x_{i,j,k,\ell}, consider whether a clearer notation—like x_{ijkℓ} or a matrix representation—might serve your reader better.

Be consistent. If you use x_1, x_2, x_3 for a sequence, don't switch to x₁, x₂, x₃ in formatted text. Consistency reinforces meaning.

When to Use Alternatives

In some cases, other notations might be clearer than subscripts. For example:

  • Parentheses: f(x) instead of f_x for a function of x
  • Prime notation: x' instead of x_1 for a transformed variable (context-dependent)
  • Vector notation: \mathbf{x} or \vec{x} instead of subscripted components, when referring to the whole object

Choose based on disciplinary convention and what your audience expects.

Moving Forward

Now that you understand how subscripts work in LaTeX, you're ready to format mathematical and scientific notation correctly. The underscore and braces are simple tools, but they're essential for anyone writing equations, chemical formulas, or technical documentation that requires precision and clarity. 📐

The key is practicing with your own documents and noticing how professional publications in your field use subscripts—that's often your best guide to what's standard in your discipline.