# Type Scale

> A set list of text sizes that grow by one ratio. Every heading uses one of them.

**Field:** Design  
**Category:** Typography  
**Also known as:** Modular Scale, Typographic Scale

## Think of it like

It is like the steps of a staircase. Each step goes up by the same amount.

## Definition

A type scale is a fixed set of text sizes that grow by the same ratio. You pick a base size, like 16px, and a ratio, like 1.25. Each step up is the last size times the ratio: 16, 20, 25, 31 and so on. Every heading and label uses a size from the scale. That keeps sizes clearly different and in harmony.

## Formula

```
size(n) = base × ratio^n
```

## Example

Jack uses a base of 16px and a ratio of 1.25. His sizes are 16, 20, 25, 31 and 39px, and nothing else.

## Example code

```css
:root {
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5625rem; /* 25px */
  --text-2xl:  1.953rem;  /* 31px */
}
```

A scale with a ratio of 1.25, saved once and used everywhere.

## Why it matters

A scale stops sizes like 15, 16 and 17 that are too close to tell apart.

## Common mistake

Picking each size by eye on each page. Over time you get a dozen sizes that do not fit together.

## Three principles

- **Base and ratio.** 16px times 1.25, and so on.
- **A fixed menu.** Only sizes from the scale.
- **Clear steps.** Each size looks plainly different.

## Related terms

- [Point Size](https://learn.benibix.com/term/design/point-size)
- [Scale and Proportion](https://learn.benibix.com/term/design/proportion)
- [Visual Hierarchy](https://learn.benibix.com/term/design/visual-hierarchy)
- [Golden Ratio](https://learn.benibix.com/term/design/golden-ratio)

## Taught in

- [Type Sizes and Weights](https://learn.benibix.com/learn/design-typography/type-sizes-and-weights): Typography, 11/17

![The letters Aa shown five times, growing left to right at 16, 20, 25, 31 and 39 pixels, with an arrow marking times 1.25 between each step.](https://learn.benibix.com/diagrams/type-scale.svg)

---

Source: https://learn.benibix.com/term/design/type-scale
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.
