Skip to content
ZeroServer.tools

Modular Scale Calculator

Calculate a typographic modular scale and generate CSS custom properties for consistent, harmonious font sizes.

Scale

SteppxremPreview
+548.83px3.052remHeading
+439.06px2.441remHeading
+331.25px1.953remHeading
+225px1.563remHeading
+120px1.25remHeading
+016px1remBase
-112.8px0.8remSmall
-210.24px0.64remSmall
-38.19px0.512remSmall
-46.55px0.41remSmall
-55.24px0.328remSmall

CSS Custom Properties

:root {
  --scale--5: 0.328rem;
  --scale--4: 0.41rem;
  --scale--3: 0.512rem;
  --scale--2: 0.64rem;
  --scale--1: 0.8rem;
  --scale-0: 1rem;
  --scale-1: 1.25rem;
  --scale-2: 1.563rem;
  --scale-3: 1.953rem;
  --scale-4: 2.441rem;
  --scale-5: 3.052rem;
}

About Modular Scale Calculator

A modular scale is a sequence of numbers related by a consistent ratio, used to create harmonious typographic hierarchies. Each step is calculated as base × ratio^n. The Golden Ratio (1.618) is the classic typographic ratio; the Perfect Fourth (1.333) and Major Third (1.250) are popular modern choices. Rem values assume a 16px root font size.

Private & free — this tool runs entirely in your browser.

Related Calculators tools