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
- Enter base unit, scale type, number of steps, root font size and the other fields.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- 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