🔠 Type scale calculator

Create a matching set of font sizes for headings and body text from one base size and ratio, in px and rem.

Largest heading

48.8 px

3.052 rem

Heading 1
48.8 px, 3.052 rem
Heading 2
39.1 px, 2.441 rem
Heading 3
31.3 px, 1.953 rem
Heading 4
25 px, 1.563 rem
Lead text
20 px, 1.25 rem
Body
16 px, 1 rem
Small
12.8 px, 0.8 rem

Heading 1

Heading 2

Heading 3

Heading 4

Lead text

Body

Small

How it is worked out

  • Size = body size × ratio to the power of the step.
  • Body text is step 0, the largest heading is step 5 and small text is step −1.
  • rem = px ÷ 16, with the usual browser setting.

Example

Body text size: 16 px; Ratio: 1.25 (major third).

Largest heading: 48.8 px (3.052 rem). Heading 1: 48.8 px, 3.052 rem; Heading 2: 39.1 px, 2.441 rem; Heading 3: 31.3 px, 1.953 rem; Heading 4: 25 px, 1.563 rem.

Useful next

Frequently asked questions

Which ratio should I choose?

1.2 or 1.25 suits apps and dashboards. 1.333 and above suits articles and landing pages with fewer, larger headings.

What size should body text be?

At least 16 px on the web. Long articles often read better at 18 px.

Should headings shrink on phones?

Yes. Use a smaller ratio on small screens, such as 1.2, and keep the body size the same.

More calculators like this