laws & principles
Gestalt: proximity
What is the Gestalt law of proximity?
Things close together are seen as a group; things spaced apart are seen as separate. Proximity is one of the strongest cues for grouping - it usually overrides shape or colour, though a shared boundary or visible connection can override it.
Also known as: law of proximity, proximity principle
Prefer to watch?
Watch the recap 0:33
The demo
Drag the sliders to change horizontal and vertical spacing. Watch how the dots group together in your mind.
Your brain sees: A single grid of 16 dots
Toggle between equidistant and proximity spacing. Notice how easy it is to pair each label with its input under proximity.
Under equidistant spacing, the label is placed exactly halfway between inputs. Under proximity spacing, the label is grouped tightly with its target input, making the relationship clear.
What this demo shows (text version)
An interactive demonstration of Gestalt proximity. The concept tab features 16 dots in a grid. Adjusting the horizontal and vertical gaps shows how changing the spatial balance alters your perception of columns, rows, or a single grid.
The practical tab shows a form layout. Toggling 'Equidistant' separates labels and inputs equally, creating confusion about which label belongs to which field. Toggling 'Proximity' anchors labels closely to their inputs.
Things near each other form a group; things apart remain separate - and proximity is so strong the eye groups by distance before evaluating shape or colour. Control spacing deliberately, and you control what belongs together - often without needing a single line or box.
You didn't decide the dots formed rows - the spacing decided it for you. Move a label nearer its field and the pairing just happens; strand it between two and the form turns into a guessing game.
Proximity generally beats similarity: cluster items with plain space and people read them as separate categories, no boxes or dividing lines required, even when those items share a shape or colour. Where it loses is to a shared boundary or a visible connector - draw a box around two distant items, or join them with a line, and that grouping overrides the spacing.
The classic own goal is the equidistant label, sat exactly halfway between the field above and the field below, so it is anyone's guess which it belongs to. Pull it tight to its own input and the ambiguity vanishes.