All UX laws

Law of Proximity

Things placed close together look related. Spacing shows what belongs with what.

Objects near each other are perceived as a group. Spacing communicates relationship.

By Rohit Sonawane, product designer · Last reviewed 16 November 2026

What is the law of proximity?

The law of proximity is a Gestalt principle: things placed close together are seen as a group, and things far apart are seen as separate. Max Wertheimer described the Gestalt grouping principles in 1923. In UI design, spacing is the main way to show what belongs with what.

Group a form with nothing but space

A sign-up form mixes account and delivery fields, all evenly spaced, with no boxes, lines or headings. Drag the fields into order and open the space between them until the eye sees two clear groups.

How do you apply the Law of Proximity?

Keep the space inside a group clearly smaller than the space between groups, for example 8px inside and 24–32px between.

How to apply the Law of Proximity, step by step

  1. Decide which items belong together.
  2. Put less space inside each group than between groups.
  3. Place labels closer to the field or content they describe.
  4. Remove extra borders where spacing already shows the grouping.

What does the Law of Proximity look like in a real product?

Pricing cards that read themselves

Put a price too far from its plan name and it drifts toward the neighbouring plan. Is that $29 for “Pro” or for “Team”? Tighten the spacing so each plan's name, price, feature list, and button hug each other, and the grouping is obvious without a single divider line. The whitespace does the work borders used to.

What are common mistakes with the Law of Proximity?

  • Drawing boxes and lines to create groups that spacing alone would make. That's clutter where whitespace would be cleaner.
  • Uniform spacing everywhere, so nothing groups: a field label ends up the same distance from its own input and the next one.
  • Placing a label closer to the field above it than to the field it actually describes.

When does the Law of Proximity not apply?

Proximity can fight other signals. A legal disclaimer tucked right under a “Buy” button gets read as part of the button, so sometimes you deliberately want separation. And in dense data tables, tight grouping can merge rows; alternating background bands often group better than spacing alone.

How do you know you applied the Law of Proximity well?

Someone seeing the screen for the first time can point out the groups without any lines or boxes to guide them.

Law of Proximity: frequently asked questions

What is an example of the law of proximity in UI design?

A form where each label sits close to its own input and further from the next field, so it is obvious which label belongs to which box.

Is proximity stronger than boxes and lines?

Often, yes. Spacing alone can group items cleanly, and extra borders add visual noise. Use boxes when spacing is not enough, for example in very dense layouts.

How is proximity different from common region?

Proximity groups items by the space between them. Common region groups items by putting them inside the same container, such as a card or a shaded area.

Practise it on a real challenge

Signup Form — 14 fields, 31% finish

A signup form lists 14 fields with equal spacing. Completion is 31%.

Related reading

  • UX audit: what it is and how to run one, with a checklist
  • UX case study: how to write one that shows your thinking
  • Gestalt principles: the laws of grouping, with UX examples
  • UX basics: what UX design is, how it works, and where to start

More UX laws

  • Law of Common Region
  • Law of Continuity
  • Law of Similarity
  • Law of Pragnanz
  • Von Restorff Effect
  • Law of Closure
UX QuestUX Laws and PrinciplesUI UX PracticeUX Design Challenge GeneratorNotion TemplatesBlogPricingAboutContactPrivacy PolicyTerms of ServiceRefund PolicySitemapChangelogPopular UX laws:60-30-10 RuleDesign every stateStatistical PowerFunnel TriageAccessible contrastDensity Matches ContextHick's LawFitts's LawAll UX laws