How to use Type Scale Calculator
- Enter a base font size and a ratio.
- Read the scale from smallest to largest.
- Copy the sizes into your stylesheet.
The type scale formula
Each step multiplies the previous size by the ratio. With a base of 16 pixels and a ratio of 1.25, the steps are 16, 20, 25, 31.25 and 39.06 pixels.
Common ratios are 1.25 for a gentle scale and 1.5 for a strong one.
| Step | Size (px) |
|---|---|
| Base | 16 |
| Step 1 | 20 |
| Step 2 | 25 |
| Step 3 | 31.25 |
| Step 4 | 39.06 |
FAQ
What is a type scale?
It is a set of font sizes related by a fixed ratio, so headings and body text sit in proportion.
What ratio should I use?
1.25 is gentle and 1.5 is strong. Pick the one that fits your design.
Does it upload anything?
No. It runs entirely in your browser.
Can I use the scale in CSS?
Yes. Copy the sizes as pixels or convert them to REM.