Skip to content
Calculator Tools
CSS & Design Calculators

Spacing Scale Calculator

Generate a consistent spacing scale from a base unit, linear or multiplied.

Enter values

Results update as you type.

Result

Base unit

4 px

A 4px base with a linear scale is the most common system — it gives enough steps without offering too many near-identical choices.

Steps generated
9
Smallest step
4px
Largest step
96px
Scale type
Linear multiples of the base
Grid alignment
Aligns to a 4px grid

Spacing tokens

TokenPixelsREM
space-14px0.25rem
space-28px0.5rem
space-312px0.75rem
space-416px1rem
space-524px1.5rem
space-632px2rem
space-748px3rem
space-864px4rem
space-996px6rem

About the Spacing Scale Calculator

Generate a consistent spacing scale from a base unit, linear or multiplied.

Also known as: spacing system calculator, margin padding scale, design token spacing, 8pt grid.

How to use this calculator

  1. Enter base unit, scale type, number of steps, root font size and the other fields.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

linear: base × multiplier · doubling: base × 2^step

Worked example

Using the values pre-filled in the calculator above:

  • Base unit = 4 px
  • Scale type: Linear multiples
  • Number of steps = 9
  • Root font size = 16 px

the calculator returns:

  • Base unit: 4 px
  • Steps generated: 9
  • Smallest step: 4px
  • Largest step: 96px