# Superscript and Subscript

> Small text set a bit above or below the line, like the 2 in H2O.

**Field:** Design  
**Category:** Typography  
**Also known as:** Superscript, Subscript, Raised Text, Lowered Text

## Think of it like

It is like a hat on top of a word, or shoes under it.

## Definition

Superscript is small text raised above the line, and subscript is small text dropped below it. Superscript is used for powers, like the 2 in x squared, and for footnote numbers. Subscript is used in science, like the 2 in H2O. Good fonts have special small numbers drawn for this. Fake ones made by shrinking normal numbers look too thin.

## Example

In a science report, Ben types H2O. He makes the 2 a subscript, so it sits small and low, the way chemists write it.

## Example code

```html
<p>Water is H<sub>2</sub>O and the area is 9 m<sup>2</sup>.</p>
```

The page shows a small 2 below the line in H2O, and a raised 2 after the m.

## Why it matters

Without them, formulas and footnotes are wrong or hard to read.

## Common mistake

Shrinking normal numbers by hand. They look thin and light; use the font's own superscript and subscript numbers.

## Three principles

- **Above or below.** Raised or lowered.
- **Smaller.** Out of the way of the text.
- **Use the font's own.** Drawn to match the weight.

## Related terms

- [OpenType Features](https://learn.benibix.com/term/design/opentype-features)
- [Point Size](https://learn.benibix.com/term/design/point-size)
- [Baseline](https://learn.benibix.com/term/design/baseline)
- [Small Caps](https://learn.benibix.com/term/design/small-caps)
- [Glyph](https://learn.benibix.com/term/design/glyph)

## Taught in

- [Variable Fonts and OpenType](https://learn.benibix.com/learn/design-typography/variable-fonts-and-opentype): Typography, 13/17

![Three panels. Calligraphy: a broad pen nib at a fixed angle making a zigzag stroke, thick going down and thin going across. Lettering: the same word shown three times, as a pencil sketch, as a cleaned outline, and as a filled final. Superscript and subscript: x with a small raised 2, and H2O with a small lowered 2.](https://learn.benibix.com/diagrams/des7-hand-letters.svg)

---

Source: https://learn.benibix.com/term/design/superscript-and-subscript
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
