What is Proximity in Web Design?
Proximity is a web design principle, drawn from Gestalt psychology’s law of proximity, stating that elements placed close together are perceived as related, while elements spaced apart are perceived as separate. Designers group related items, such as a form’s fields and its submit button, so visitors understand a page’s structure at a glance.
More About Proximity
Great web design shows users how a page works and how to interact with it using only visual cues. One of those cues is proximity: placing related elements close together. Spacing tells users what belongs together before they’ve read a single word.
The law of proximity
The law of proximity is one of the Gestalt principles of perceptual grouping, identified by Gestalt psychologists in the first half of the 20th century. The original set includes proximity, similarity, and closure; common region joined the list later. The law itself is simple: items close together are perceived as part of the same group, sharing a function or traits. In an interface, white space does the grouping work. Varying the empty space between elements is how you unite them into one cluster or separate them into several, as Nielsen Norman Group’s research summary explains (Aurora Harley, August 2, 2020).
Proximity in practice: grouping form fields
Consider a checkout form with 12 fields. Presented as one long column, it looks daunting. Chunk the same 12 fields into 3 groups of 4 (say, shipping, billing, and contact details) and it scans as three small tasks instead of one big one. Spacing matters inside each group, too: keep the gap between a label and its own field smaller than the gap before the next label-field pair, so every label reads as belonging to its input. That proximity and their visual similarity tell users that they’re dealing with a single group. The same logic applies to a submit button or any Call to Action (CTA): place it next to the content it acts on.
How to use proximity in web design
Start with one rule: keep the spacing within a group smaller than the spacing between groups. White space is the primary grouping tool, so adjust margins before you reach for borders or background colors. Headings are an everyday application. Place a heading closer to its own section’s text than to the paragraph above it, and readers can tell where each new section starts while scanning. Finally, re-check every grouping on small screens: responsive design compresses spacing, and groups that were distinct on a desktop can merge on a phone.
Proximity vs. similarity vs. common region
Proximity is one of several grouping cues, and they don’t always agree. The three you’ll use most:

- Proximity groups by closeness. Elements near each other read as one unit, and the cue is strong enough to overpower similarity of color or shape when the two conflict.
- Similarity groups by appearance. Matching color, shape, or size marks elements as the same kind of thing, even when they sit apart.
- Common region groups by enclosure. A border, card, or background panel wraps elements into one set.
When spacing alone can’t hold, as on a cramped layout, add a common region: a card or panel keeps the group readable without demanding more room.
Common proximity mistakes
Proximity fails in two directions. Spread related elements too far apart and the proximity effect is lost: users perceive them as separate, unrelated groups, and far-away elements are easily overlooked. Users are much less likely to connect them unless another cue, like matching styling, a shared container, or a connecting line, links them.
Cram unrelated elements together and you get the opposite failure: users mis-group them. In one government form Nielsen Norman Group reviewed, the Add button sat in a row of unrelated Next, Save as Draft, and Cancel buttons. People often judge every item in a perceived group by the one item they actually read, so a button buried in the wrong group goes unnoticed.
The fix is a simple audit: check that the space inside every group is smaller than the space around it. Proximity works together with white space: the empty area between groups is what makes each grouping visible, and clear groups are the first step toward a readable visual hierarchy.
Frequently Asked Questions
Is proximity the same as white space?
No. White space is the tool and proximity is the effect. You adjust the empty space between elements to control which ones read as a group: less space inside a group, more space between groups. Proximity is the perceived relationship that spacing creates.
Why is proximity important in UX?
Users decide what a control does partly from the group it sits in, so mis-grouped buttons and links get overlooked or misread. Grouping related elements correctly is critical to interacting with an interface at all, and chunked layouts scan faster and feel easier to complete.
Does proximity change on mobile screens?
Yes. Responsive layouts compress spacing, so groups that were clearly separated on desktop can merge on a small screen. Sometimes preserving a grouping means moving an element to a different part of the layout, not just shrinking the gaps between groups.