Modular Scale Generator

Build a harmonious type scale from a base size and ratio.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

A modular scale is a sequence of font sizes built by repeatedly multiplying a base size by a fixed ratio, so every step shares the same proportion and the typography feels coherent. This generator outputs the full scale in both px and rem, for designers and front-end developers setting up a type system.

How it works

Step 0 is the base size; each step is the base multiplied by the ratio raised to the step number:

size at step n = base × ration

Positive steps grow larger, negative steps shrink below the base. The rem value is each size divided by the base. Pick a base, choose a named ratio (minor second 1.067 through the golden ratio 1.618), and set how many steps up and down you need.

Example

With a 16px base and the major third ratio (1.25):

  • Step 0: 16 × 1.25⁰ = 16px (1rem)
  • Step 1: 16 × 1.25¹ = 20px (1.25rem)
  • Step 2: 16 × 1.25² = 25px (1.5625rem)
Steppxrem
2251.5625
1201.25
0161
-112.80.8

The full scale is generated instantly, all in your browser.

Ad placeholder (rectangle)