Spacing Scale Calculator

Build a spacing scale from a base unit and see each step in px and rem.

How it works

Enter a base unit and the root font size. The tool builds a spacing scale and shows each step in px and rem.

Worked example

A base of 4 px with a 16 px root gives 10 steps, like 2 px (0.125rem) up to 96 px (6rem).

Good to know

Common questions

What is rem?
A unit relative to the root font size.
Which base is best?
4 and 8 are common.
Can I change the steps?
Yes, edit the list of multipliers.

More in Utilities.