Skip to content
ToolInstant

Spacing Scale & Grid Calculator

Local

Create a 4px or 8px spacing scale with rem values and export it as CSS variables, SCSS, Tailwind or JSON. Snap any value to the grid and work out column widths.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Design tools · Free · No upload · No sign-up

How to use the spacing scale & grid calculator for free

  1. 1Choose a base unit (4px or 8px) and how many steps you need.
  2. 2Copy the scale as CSS variables, SCSS, Tailwind config or JSON.
  3. 3Snap odd values to the grid and plan your column layout.

Also useful for: 8px grid, spacing scale generator, 4px grid system, design tokens spacing, column grid calculator, spacing system css.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this spacing calculator free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Should I use a 4px or 8px grid?+

8px is the most common for layouts and works well on all screen densities. 4px gives finer steps for small things like icon padding and dense UIs. Many systems use 8px with a 4px half step.