Skip to main content

Proximity

UI Design

What is Proximity

Proximity is a Gestalt principle stating that elements close to each other are seen as related, while elements far apart are seen as separate groups. In UI design, spacing alone can show which items belong together.

How Proximity works

  • Small gaps: Items inside a group sit close together
  • Larger gaps: Groups are separated by more space
  • Strong cue: Proximity can overpower color or shape similarity

How to use Proximity

Place labels close to their own field in forms and group related fields. In cards, keep a title, image and actions together. Use more space between groups than inside them. This makes extra borders and dividers less necessary.

Why Proximity matters

Wrong spacing makes users connect the wrong items, such as a label with the wrong field.

Frequently asked questions

How does proximity apply to forms?

Place each label close to its own field, with more space between field groups than inside them. If a label sits halfway between two fields, users cannot tell which field it belongs to.

Which is stronger, proximity or similarity?

Proximity is one of the strongest grouping cues. NN/g notes it can overpower other cues such as similar color or shape, so spacing often decides what users see as a group.

Where does the proximity principle come from?

It is one of the Gestalt principles, described by Gestalt psychologists in the first half of the 20th century to explain how people group what they see.