Safe starting point
4 / 8 px base
A working spacing scale
Applies to All viewports
A practical starting scale used in many product interfaces. It is a convention, not a rule: what matters is that you pick a scale and stay on it.
- 4 px
- 8 px
- 12 px
- 16 px
- 24 px
- 32 px
- 48 px
- 64 px
Common range 4, 8, 12, 16, 24, 32, 40, 48, 64
- 4
- Very small internal relationship. Icon and label, closely related metadata, small alignment nudges.
- 8
- Strongly related elements. Label to its field, items in a tight group.
- 12–16
- Inside compact product UI. Rows in a list, controls in a toolbar, compact card padding.
- 16–24
- Card and container padding. The inside edge of most cards, panels and dialogs.
- 24–32
- Between groups. Separating one group of fields or one card from the next.
- 32–48
- Between sections. Section breaks within a page.
- 48–64+
- Major page sections. The largest breaks, mostly on content and marketing pages.
Why?
A short scale turns hundreds of small spacing decisions into a handful, and makes spacing differences large enough to read as intentional.
When to deviate. Follow your design system's scale if you have one. Dense tools often add 2 and 6; editorial pages often need steps above 64.
Common mistakes (3)
- Everything 16 px apart, so nothing reads as grouped.
- Off-scale values such as 13 or 18 that crept in while nudging.
- The same gap inside a group as between groups.
Senior designer note“If everything is 16px apart, your UI has spacing but no hierarchy.”
Official guidanceSGDSGOV.UK
- SGDS
A 4-point system, with sizes 4, 8, 12, 16, 20, 24, 32, 48, 64, 96 and 128 px.
SGDS, Spacing(opens in a new tab)Design-system convention
- GOV.UK
A 5 px based scale: 5, 10, 15, 20, 25, 30, 40, 50, 60. Larger steps shrink on small screens.
GOV.UK Design System, Spacing(opens in a new tab)Design-system convention