Modular Scale Calculator
Build a type or spacing scale from a base size and a ratio and see every step in px and rem.
Build a modular scale
How to use the Modular Scale Calculator
- Choose a ratio preset or type your own custom ratio.
- Set the base size, the number of steps and the direction of the scale.
- Read every step in pixels and rem, then check the visual preview.
Features
- Eleven classic musical ratios plus a custom ratio
- Every step listed in pixels and rem
- Scale can run up, down or in both directions
- Live preview of the resulting type sizes
Advertisement
Frequently Asked Questions
Common questions about the free online modular scale calculator.
A modular scale is a sequence of sizes built by repeatedly multiplying one base size by a
fixed ratio, which keeps typography consistent.
Major Third 1.25 and Perfect Fourth 1.333 give clear steps for headings, while Minor Second
1.067 suits dense interfaces.
Each pixel value is divided by 16, the default root font size in browsers, so the result
matches a rem unit in CSS.
Steps below zero are smaller than the base size. They are handy for captions, labels and
other fine print.
Yes. Set the base size to your spacing unit in pixels and the same ratio gives a consistent
set of margins and paddings.
Between two and twenty steps in each direction, which is enough for headings, body text,
captions and fine print.
No. The whole scale is calculated in your browser, so nothing you type is ever sent anywhere.
Yes. The modular scale calculator is completely free with no account, no sign-up and no usage
limits at all.
Last updated: October 10, 2026