[Home](https://helqu.com/) / [Insights](https://helqu.com/insights) / Spacing, Rhythm, and the 8-Point Grid
# Spacing, Rhythm, and the 8-Point Grid
Spacing is the most underrated tool in interface design: invisible when right, glaring when wrong. A shared scale turns a hundred tiny judgment calls into a handful of decisions. This guide shows you how to build that scale and apply it by relationship, not by eye.

## Why a spacing scale matters
Open any polished product and the thing you cannot name is usually spacing. It is the connective tissue between every element, and when it is inconsistent the whole interface reads as amateur even if the typography and color are immaculate. The problem is that spacing invites endless micro-decisions: is this gap 14px or 16px? Should this card have 20px of padding or 24px? Made one element at a time, by eye, these choices drift. Three designers and six screens later you have eleven values that all mean roughly the same thing, and nobody can say why.

A spacing scale fixes this by removing the decision. Instead of asking how much space, you ask which tier. The scale is a small, fixed set of values, and you may only ever pick from that set. This is a constraint, and constraints are what make systems feel coherent. The payoff is twofold: visual consistency across every screen, and faster work, because a question with four valid answers is far easier than one with forty.

Treat the scale as a closed vocabulary. If a design needs a value that is not on the scale, that is a signal to question the design, not to add the value. Arbitrary one-off numbers are how scales quietly die.

## Why 8 points is the base unit
The convention is to build the scale on a base unit of 8 points, and the reason is practical rather than aesthetic. Screen densities are multiples: a 1x display renders a point as 1 physical pixel, 1.5x as 1.5, 2x as 2, 3x as 3. A base of 8 divides cleanly across all of these. 8 at 1.5x is 12 real pixels, at 2x is 16, at 3x is 24 — all whole numbers, so nothing lands on a half-pixel and gets anti-aliased into a blur. A base of 10, by contrast, gives you 15 pixels at 1.5x, which is fine, but odd bases tend to produce fractional values somewhere down the line.

Eight is also big enough to create visible steps without a scale that runs forever, and small enough that you rarely need anything finer. When you do — tight gaps between an icon and its label, or a caption under a line of text — 4px serves as a half-step. Use 4px sparingly and deliberately; it is the exception that keeps the 8-point rhythm honest, not a licence to return to arbitrary spacing.

## The full scale and when to use each tier
A workable scale runs 4, 8, 12, 16, 24, 32, 48, 64, 80, 96, 128. Note that it is not a pure doubling — the lower end is denser (4, 8, 12, 16) because small adjustments matter most at close range, and the upper end spreads out (64, 80, 96, 128) because once gaps are large, the eye stops counting pixels. Each tier has a job, and the job is defined by what kind of relationship the space sits between.

- 4px (half-step): intra-component. Space between an icon and its label, between a checkbox and its text, between two tightly bound pieces that read as one unit.
- 8px and 12px: inside a component. Padding between the items of a list, the gap between a label and its input, spacing within a button group.
- 16px and 24px: standard component padding. The inner padding of a card, a modal, or a content block. 16px is the everyday default; 24px for roomier, higher-emphasis surfaces.
- 32px and 48px: between components. The gap between two cards, between a heading and the block it introduces, between distinct groups on a page.
- 64px, 80px, 96px, 128px: section breaks. The vertical space that separates the major regions of a layout — hero to features, features to pricing — where you want a clear breath between chapters.
## Space by relationship, not by eye
This is the single idea that separates spacing that works from spacing that merely exists. Space is not decoration between things; it is a statement about how related those things are. The Gestalt law of proximity says we perceive elements that are close together as a group, and elements that are far apart as separate. Your spacing scale is the mechanism you use to say, deliberately, what belongs with what.

The practical rule: the space inside a group must be tighter than the space to the next group. Consider a form field — label, input, and helper text. If the label sits 8px above its input but there is 24px to the next field, the eye instantly reads each label-input-helper cluster as one unit and the clusters as separate. Reverse those numbers and the labels float between fields, orphaned, and the form becomes a puzzle. You added no elements; you only changed which gaps were bigger. That is the entire game.

When a layout feels confusing but you cannot say why, check the gaps before anything else. Usually two things that belong together have been pushed apart, or two separate groups have been squeezed together, and proximity is lying about the structure.

## Padding, margins, and optical adjustments
Keep the roles of inner padding and outer margin distinct. Padding is the breathing room a component reserves for itself — the space between a card's border and its content. Margin is the space a component pushes away from its neighbours. A common mistake is to add margin to achieve what should be padding, which leaves content touching the edge of its container while the container floats in a sea of margin. Give the component its own internal padding first, then set margins to control the relationships between components.

Mathematical spacing is the starting point, not the final word. The eye measures by mass and center of gravity, not by the bounding box. A thin arrow icon that is technically 16px wide looks like it has too much space around it; a chunky glyph looks cramped at the same value. Capital letters sit slightly above the typographic baseline and leave optical space below them, so a mathematically centered heading can look low. Circular shapes next to square ones must overshoot their bounds to appear the same size. In all these cases, trust your eye over the ruler and nudge — by a pixel or two — until it looks right, even if the number is no longer round.

## Touch targets and spacing between them
Spacing is not only visual; it is physical the moment a finger is involved. The platform guidelines are firm: iOS recommends a minimum touch target of 44x44pt, and Android recommends 48x48dp. The visible element can be smaller — a 24px icon is fine — but its tappable area must meet the minimum, which you achieve with padding, not by inflating the graphic. Crucially, targets also need space between them: keep roughly 8px of clear gap so a thumb aimed at one control does not catch its neighbour.

- Make the hit area, not the icon, meet 44x44pt / 48x48dp — pad a small glyph up to size rather than enlarging it.
- Keep at least ~8px between adjacent targets so adjacent taps do not collide.
- In dense toolbars, if you cannot fit both the minimum size and the minimum gap, remove a control — do not shrink the targets.
- Test with a real thumb, not a mouse cursor; the cursor is pixel-perfect and will hide every problem a finger reveals.
## Vertical rhythm and density modes
Vertical rhythm is spacing applied to text down the page, driven by line-height. Body text reads best at a line-height of roughly 1.5, which for 16px text is 24px — conveniently a value already on the scale. Draw paragraph and heading spacing from that same scale: perhaps 16px between paragraphs, 48px above a major heading and 16px below it, so the heading binds to the content it introduces rather than floating equidistant between two blocks. When text spacing lines up with component spacing, the page feels like one system rather than two.

Density is the deliberate choice of how tight that rhythm is, and good products often offer more than one mode. A comfortable table might give rows 48px of height and 16px of cell padding; a compact mode for a data-heavy admin screen might drop to 32px rows and 8px padding so a power user sees more at once. The key is that both modes still draw from the same scale — you are stepping down a tier, not inventing new values. Density is a dial on the system, not an escape from it.

## Responsive spacing
Spacing that is generous on a 1440px desktop is wasteful on a 375px phone. A 96px section break looks like a considered pause on a wide screen and like a bug — a screen of emptiness — on mobile. So spacing should scale with the viewport: shrink the large section gaps aggressively on small screens while leaving the small, intra-component gaps mostly alone, since an 8px gap means the same thing at every size.

You can handle this with breakpoints — swapping tiers at each — but CSS clamp() lets spacing scale fluidly without a cascade of media queries. A declaration like clamp(32px, 8vw, 96px) gives you a section gap that is never smaller than 32px, never larger than 96px, and glides smoothly between the two as the viewport changes. Reserve fluid scaling for the large tiers where it pays off; the 4px and 8px steps should stay fixed.

- Pick a base unit. Use 8px. Confirm it divides cleanly across your target densities (8, 12, 16, 24 at 1.5x, 2x, 3x) before committing.
- Define a half-step of 4px for the rare intra-component case, and agree as a team that it is the exception, not a general-purpose value.
- Lay out the full scale: 4, 8, 12, 16, 24, 32, 48, 64, 80, 96, 128. Keep the low end dense and let the high end spread.
- Name each tier by its job — intra-component, inside-component, component padding, between-components, section break — so picking a value becomes picking a relationship.
- Encode the scale as design tokens (space-1, space-2, and so on) so design and code share one source of truth and no raw pixel values leak into either.
- Apply the proximity rule everywhere: for any two gaps, make the one inside a group smaller than the one between groups. Audit your densest screen specifically for this.
- Set vertical rhythm from the same scale — line-height, paragraph gaps, and heading spacing — so text and components agree.
- Define density modes and responsive behaviour by stepping through tiers and using clamp() on large gaps, never by inventing off-scale numbers.
## Common mistakes

- Arbitrary values. Reaching for 14px, 18px, 22px because it looked right in the moment. Each off-scale number is a future inconsistency.
- Equal spacing everywhere. When every gap is identical, proximity carries no information and grouping disappears — the layout becomes a flat, unreadable grid of elements.
- Dividers where space would do. A line between two groups is a crutch for spacing that is too tight; widen the gap first and remove the rule — the line is visual noise you often do not need.
- Margin standing in for padding. Content touches its container's edge while margin floats around the outside; give the component real internal padding instead.
- Cramped tap targets. Visually tidy controls under 44x44pt with no gap between them look clean in a mockup and fail the first time a real thumb tries to use them.
- Trusting the ruler over the eye. Refusing to make optical nudges for icons, caps, and circles leaves things that are mathematically correct but visibly off.
## Keep reading

- [Visual Hierarchy: How to Guide the Eye](https://helqu.com/insights/visual-hierarchy-in-ui)[All articles](https://helqu.com/insights)

---
Source: https://helqu.com/insights/spacing-rhythm-and-the-8pt-grid
Title: Spacing, Rhythm, and the 8-Point Grid | Helqu
Description: Consistent spacing is the quiet reason an interface feels professional. Learn the 8-point system and how to space by relationship, not by eye.
Language: en
Alternates: tr=https://helqu.com/tr/yazilar/bosluk-ritim-ve-8pt-izgara.md
