TypographyApril 2026 ยท 6 min read

How to Build a Typography Scale for Web Design

A type scale is a set of font sizes that follow a mathematical ratio, creating visual harmony and clear hierarchy. Instead of picking arbitrary sizes, a scale ensures every heading, body text, and caption size relates proportionally to the others โ€” just like notes in a musical scale.

๐Ÿ“
Try the Typography Scale
Free, no signup
โ†’
DG
Derek Giordano
Designer & Developer
In this guide
01What Is a Type Scale?02Common Scale Ratios03Implementing with CSS Custom Properties04Choosing the Right Ratio
โšก Key Takeaways
  • Create a harmonious type scale with mathematical ratios.
  • What Is a Type Scale?.
  • Covers common scale ratios.
  • Covers implementing with css custom properties.
  • Covers choosing the right ratio.

What Is a Type Scale?

A type scale multiplies a base font size by a consistent ratio to generate larger and smaller sizes. With a 16px base and a 1.25 (Major Third) ratio: 16 ร— 1.25 = 20px, 20 ร— 1.25 = 25px, 25 ร— 1.25 = 31.25px. Going smaller: 16 / 1.25 = 12.8px. The resulting scale is: 12.8, 16, 20, 25, 31.25, 39px. Each size has a clear proportional relationship to every other size.

Common Scale Ratios

Minor Second (1.067) โ€” very subtle differences, almost monoscale. Major Second (1.125) โ€” gentle hierarchy, good for dense UI. Minor Third (1.2) โ€” moderate contrast, versatile default. Major Third (1.25) โ€” clear hierarchy, good for blogs and marketing. Perfect Fourth (1.333) โ€” strong contrast, good for editorial. Golden Ratio (1.618) โ€” dramatic differences, striking headlines. The Typography Scale tool lets you preview all ratios with your chosen fonts.

๐Ÿ’ก Tip
Use 3+ color stops instead of 2 to avoid the muddy gray band that appears in the center of complementary-color gradients.

Implementing with CSS Custom Properties

Export your scale as CSS custom properties for consistent use:

โš  Warning
CSS gradients used as backgrounds cannot be animated with standard transitions. Use background-size animation or @property registered custom properties instead.

:root {

--text-xs: 0.75rem;

--text-sm: 0.875rem;

--text-base: 1rem;

--text-lg: 1.25rem;

--text-xl: 1.563rem;

--text-2xl: 1.953rem;

--text-3xl: 2.441rem;

}

Reference these variables throughout your stylesheet for guaranteed consistency. Changing the scale only requires updating the root variables.

Choosing the Right Ratio

For content-heavy sites (blogs, documentation): use 1.2 (Minor Third) or 1.25 (Major Third) โ€” clear hierarchy without extreme size jumps. For marketing and landing pages: use 1.333 (Perfect Fourth) or higher โ€” dramatic headlines grab attention. For dense UIs (dashboards, admin panels): use 1.125 (Major Second) โ€” subtle differences keep the interface compact.

Frequently Asked Questions

What is a type scale ratio?+
A type scale ratio is a multiplier applied to a base font size to generate a harmonious set of sizes. A 1.25 ratio with a 16px base produces: 12.8, 16, 20, 25, 31.25px โ€” each size is 1.25ร— the previous.
What ratio should I use for my website?+
1.2-1.25 for content-heavy sites, 1.333+ for marketing pages, 1.125 for dense UIs. The Typography Scale tool lets you preview each ratio with your fonts before committing.
How many sizes should a type scale have?+
6-8 sizes cover most design needs: 2 below the base (small text, captions), the base (body text), and 3-5 above (subheadings through large headings).
Try it yourself

Use the Typography Scale โ€” free, no signup required.

โšก Open Typography Scale
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.
โšก Try the free Responsive Type Calculator โ†’