Modular Scale Calculator

Work out a modular type or spacing scale from a base size and a ratio. Each step up or down multiplies or divides the base by the ratio, which gives a consistent set of sizes for font sizes, headings and spacing.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the Modular Scale Calculator

  1. Enter the base size in px, for example the body font size.
  2. Choose a ratio from the list, or pick Custom ratio and type your own.
  3. Set how many steps above the base you want. The table also shows two steps below.

Frequently asked questions

What is a modular scale?

A modular scale is a series of sizes made by multiplying a base value by a fixed ratio at each step. It gives a consistent rhythm for font sizes, headings and spacing.

What is the formula for a modular scale?

Size = base × ratio^n, where n is the step. Positive steps give larger sizes, negative steps give smaller ones, and step 0 is the base itself.

Which ratio should I use?

Common choices are 1.200 (minor third) for dense layouts, 1.250 (major third) for general web text, and 1.618 (golden ratio) for a more dramatic size difference between levels.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.