All UX laws

8-pt Spacing Scale

Space things in steps of 4 or 8 pixels, and layouts stay consistent.

A multiple-of-8 (or 4) scale gives consistent rhythm and predictable layouts.

By Rohit Sonawane, product designer · Last reviewed 16 November 2026

What is the 8-point spacing scale?

The 8-point spacing scale is a rule for spacing in UI design: every margin, padding and gap is a multiple of 8 pixels (with 4 for tight spots), such as 8, 16, 24, 32 and 48. Using a fixed set of steps makes layouts consistent and quick to build.

8-pt Spacing Scale, side by side

Pick a spacing scale and reuse it. Equal, predictable gaps are what make a layout feel calm.

How do you apply the 8-pt Spacing Scale?

Pick {4, 8, 12, 16, 24, 32, 48} and use only those values, never arbitrary ones.

How to apply the 8-pt Spacing Scale, step by step

  1. Pick your scale, for example 4, 8, 12, 16, 24, 32 and 48.
  2. Save it as spacing tokens in your design tool and code.
  3. Use only those values for margins, padding and gaps.
  4. Use smaller steps inside a group and larger steps between groups.

What does the 8-pt Spacing Scale look like in a real product?

Why design systems pick 8

Choose a fixed set of spacing steps, say 4, 8, 12, 16, 24, 32, 48, and use only those, and a layout snaps into rhythm: gaps repeat, cards line up, and nothing lands on a stray 13px by accident. Most systems, including Material and the token sets behind shared Figma libraries, build on a 4 or 8 base for exactly this reason. Eight also divides cleanly across common screen densities, so edges stay crisp.

What are common mistakes with the 8-pt Spacing Scale?

  • Keeping the scale in the design file but typing arbitrary values (11px, 17px, 25px) in code, which quietly breaks the rhythm.
  • Using one step for unrelated relationships, so the gap between sections and the padding inside a button look identical and the grouping reads wrong.
  • Treating the scale as sacred for optical work. Icons and type sometimes need a 1-2px nudge to look centred even when the maths disagrees.

When does the 8-pt Spacing Scale not apply?

Hairline borders, focus rings, and optical alignment often need sub-scale values like 1px or 2px that no 8-point step covers, and that is fine: the scale governs layout spacing, not every measurement. Dense professional tools may also adopt a tighter 4-point base so more information fits without feeling cramped.

How do you know you applied the 8-pt Spacing Scale well?

Every gap in the design is one of your scale values, and related items sit visibly closer together than unrelated ones.

8-pt Spacing Scale: frequently asked questions

Why do designers use 8 instead of 10?

Eight divides evenly on common screen densities (1x, 1.5x, 2x, 3x), so spacing stays sharp on every device. It also halves cleanly to 4 for small gaps. Google's Material Design uses an 8dp grid for this reason.

Is a 4-point grid better than an 8-point grid?

A 4-point grid gives finer control, which helps dense interfaces and small text. Many teams use 8 as the main step and 4 for small adjustments, such as the gap between an icon and its label.

Does the 8-point grid apply to font sizes?

Not strictly. Font sizes usually follow a type scale, but line heights are often set to multiples of 4 or 8 so text lines up with the rest of the layout.

Practise it on a real challenge

Profile Card — nothing quite lines up

A teammate's profile card uses gaps of 6, 11, and 13px — no scale, just values nudged by eye. It looks subtly broken and no one on the team can say exactly why.

Put 8-pt Spacing Scale into practice

  • UI Design System Manager — Track components, tokens, and brand in one source of truth.

More UX laws

  • Token Layering
  • Modular Type Scale
  • Visual hierarchy
  • 60-30-10 Rule
  • Von Restorff Effect
  • Aesthetic-Usability Effect
UX QuestUX Laws and PrinciplesUI UX PracticeUX Design Challenge GeneratorNotion TemplatesBlogPricingAboutContactPrivacy PolicyTerms of ServiceRefund PolicySitemapChangelogPopular UX laws:60-30-10 RuleDesign every stateStatistical PowerFunnel TriageAccessible contrastDensity Matches ContextHick's LawFitts's LawAll UX laws