Typography Scale and Line Height Calculator

Choose a named type-scale ratio and download the generated CSS variables.

On-device No sign-up Free to use

Calculate type scale controls

Showing an example. Edit to see your own.

?

Divides each pixel step by the entered root size to produce rem. This input starts at 16px; use the actual root size for your page and visitor settings.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Use a 16px base and 1.25 ratio for steps -2 through 4.

Generated a 7-step type scale from -2 to 4 on a 16px base at a 1.25 ratio. Smallest 10.24px, largest 39.06px.

https://usefreetools.net/typography-scale-calculator · 20 November 2026

Was this helpful?

How to use Typography Scale and Line Height Calculator

  1. Enter a base font size and choose one of the eight named ratios.
  2. Enter the root font size used on the page where you will apply rem values.
  3. Compare the seven steps, their pixel/rem equivalents and suggested line-height multipliers. Adjust the choices for the actual font and narrow-screen layout.
  4. Copy the :root variables or download typography-scale.css, then apply and test them in your stylesheet.

Example: Typography Scale and Line Height Calculator

Use a 16px base and 1.25 ratio for steps -2 through 4.

You add
Base size (px): 16; Scale ratio: 1.25; Root font size (px): 16
You get
Generated a 7-step type scale from -2 to 4 on a 16px base at a 1.25 ratio. Smallest 10.24px, largest 39.06px.

Options

Base and ratio
Step zero is the entered base. Each positive step multiplies by the ratio and each negative step divides by it. A larger ratio widens the gap between neighboring sizes; the named ratios are the fixed choices shown in the selector.
Suggested line heights
Multipliers use size bands: 1.5 below 14px, 1.4 from 14px to below 20px, 1.3 from 20px to below 28px, 1.2 from 28px to below 40px, and 1.15 at 40px or larger. These suggestions do not measure your font or container.
Root size and CSS
The root-size input defaults to 16px. Rem values divide each unrounded pixel size by the entered root size; the consuming page uses its actual root size, including CSS and visitor settings. CSS variables contain rem sizes and unitless line-height multipliers.

Supported inputs and limits

  • Seven fixed steps from -2 through 4, an 8 to 48px base, one of eight listed ratios and an entered root size of 8 to 24px.
  • Displayed pixel sizes are rounded to two decimal places and rem values to four.
  • The tool does not load or measure fonts, apply styles automatically, generate fluid clamp() rules or guarantee readability.
  • Review headings and body text in their actual font, container and viewport.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

The ratio is a starting rhythm

A mathematical scale gives repeatable size relationships. Actual headings can need adjustment for long words, font metrics and narrow columns. Keep the scale useful rather than forcing every text role onto it.

Questions about Typography Scale and Line Height Calculator

What does step zero mean?

It is the entered base size. Positive steps multiply by the ratio; negative steps divide by it.

Why do rem sizes change on another page?

A rem depends on that page’s root font size. The conversion uses the root size you enter here.

Is one line height suitable for every size?

Not necessarily. Inspect body text and large headings in your actual font and container.

Page updated · Project managed by Tony Hines · Report a problem with Typography Scale and Line Height Calculator