Perception

Law of Proximity

Objects that are close to each other are perceived as belonging together, so spacing alone can communicate structure.

Experience · UX & Design Science2 research sources
Share
Identical dots drift apart and read as two groups purely because of spacing — an illustration of Law of Proximity.

See it in action

The same screen without and with Law of Proximity. Watch both sides play out, then compare the outcome.

Even spacing everywhereCreate accountFull nameEmailPassword?

Labels float halfway between fields, so people pair them with the wrong input and type into the wrong box.

Label close to its fieldCreate accountFull nameEmailPassword

4px between label and field, 28px between pairs: each pair reads as one unit before anyone thinks about it.

What to watch: the spacing alone decides which label belongs to which field — no lines or boxes needed.

Do

Keep related items closer to each other than to anything else (label → field, price → product).

Don’t

Space every element evenly; uniform gaps make relationships ambiguous.

Key takeaways

  • Put related items close together and separate unrelated groups with clear space.
  • Place labels nearer to their own field than to the next one.
  • Consistent spacing rules make layouts readable without extra lines or boxes.

Quick facts

Also known as
—
Described by
Max Wertheimer
Year
1923
Category
Perception

Law of Proximity explained

The Law of Proximity is a Gestalt principle stating that objects that are near each other tend to be perceived as a group. Spacing alone, without any lines or boxes, can communicate structure.

This makes whitespace one of the most powerful tools in interface design. Tighter spacing within a group and larger spacing between groups tells users what belongs together before they read a single word.

Inconsistent spacing does the opposite: a label that sits closer to the wrong input or a button that floats between sections creates confusion and errors.

Where it comes from

One of the original Gestalt principles of perceptual organization described by Max Wertheimer in 1923 and developed by Kurt Koffka and Wolfgang Köhler.

How it shows up in apps

Ambiguous spacing in forms and lists makes users guess which label, price or button belongs to what — a quiet but common source of errors.

Law of Proximity examples

In a sign-up form, reducing the gap between each label and its input (and increasing the gap between fields) removes confusion about which label belongs to which box.

  • Form labels

    Placing each label directly above its input with a small gap, and leaving a larger gap before the next label, makes it obvious which label belongs to which field.

  • Navigation groups

    Footers group links into columns separated by generous spacing, so visitors can scan by topic without needing borders.

  • Article layout

    Headings that sit closer to the paragraph below than the one above clearly introduce the next section rather than ending the previous one.

How to apply Law of Proximity

  1. Use a consistent spacing scale and apply smaller gaps within groups and larger gaps between them.
  2. Place labels, helper text and error messages close to the element they describe.
  3. Keep related actions (such as Save and Cancel) together and separate destructive actions.
  4. Rely on whitespace before adding borders or dividers to show grouping.
  5. Check layouts at every breakpoint, as spacing relationships can break on small screens.

Want Law of Proximity checked in your own product? Our mobile app ux audit evaluates it alongside the other principles that shape how users decide, onboard and stay.

Common mistakes

  • Equal spacing between everything, which makes it impossible to see structure.
  • Headings placed equidistant between sections, so it is unclear which content they introduce.
  • Error messages displayed far from the field they refer to.

How to measure it

Test form completion and error rates, and use first-click tests to see whether users associate labels and actions with the right elements. Heatmaps and session recordings reveal when people click the wrong control because of misleading spacing.

Frequently asked questions

What is Law of Proximity?

Objects that are close to each other are perceived as belonging together, so spacing alone can communicate structure.

Where does Law of Proximity come from?

One of the original Gestalt principles of perceptual organization described by Max Wertheimer in 1923 and developed by Kurt Koffka and Wolfgang Köhler.

How does Law of Proximity apply to app design?

Ambiguous spacing in forms and lists makes users guess which label, price or button belongs to what — a quiet but common source of errors.

Why does proximity matter in UI design?

Because people perceive nearby items as related, spacing communicates structure instantly. Good spacing reduces the need for borders, labels and instructions.

Is the Law of Proximity a Gestalt principle?

Yes. It is one of the original Gestalt principles of perceptual grouping described by Max Wertheimer and colleagues in the early 20th century.

How do you measure Law of Proximity in a product?

Test form completion and error rates, and use first-click tests to see whether users associate labels and actions with the right elements. Heatmaps and session recordings reveal when people click the wrong control because of misleading spacing.

Sources

  1. Wertheimer, M. (1923). Untersuchungen zur Lehre von der Gestalt II. Psychologische Forschung, 4. Find on Google Scholar ↗
  2. Koffka, K. (1935). Principles of Gestalt Psychology. Harcourt, Brace. Find on Google Scholar ↗

View all 60 laws of UX

Keep exploring

Law of Proximity in practice

Keep exploring

Certifications that test it

Pass it on

Teach this to your team

Share it before your next design review — a shared vocabulary makes product decisions faster.

Join free

Get the ideas, not the noise.

Sign up with Google and we’ll send you short UX psychology tips by email — why people tap, stall and leave, and what to do about it. Unsubscribe anytime. Prefer something to keep? Get the free Laws of UX guide as a PDF.

Get the free Laws of UX PDFFree · no spam · unsubscribe anytime
Free certification

Can you apply Law of Proximity under pressure?

Test it in 18 real product scenarios in the free Product Design Science test. Score 70% and earn a founder-signed certificate anyone can verify.

  • Credential ID
  • QR verification
  • LinkedIn-ready
Free PDF · 74 pages · 2 editions

The Laws of UX, in one field guide

60 research-backed principles in 6 categories — what each one means, why it works on the human brain and how to use it on your own screens. Written by Sushant Singh, founder of Science of Apps, who has scaled consumer apps to lacs of users and spent 10+ years leading product across startups and digital businesses in the US, EU & India.

Pick your edition
Free. No card, no paywall — just your email.
Free PDF · 74 pages

Get Laws of UX by email

Choose your edition

You’ll also get occasional UX psychology tips. Unsubscribe anytime. Privacy policy

Free PDF · 90 pages · 2 editions

100+ Subscription Paywalls, decoded

110 real paywalls from top apps, taken apart, rated out of 5 and decoded with the Laws of UX — plus the frameworks, copy and checklists to ship your own. By Sushant Singh, founder of Science of Apps.

  • 110 paywalls rated
  • 34 Laws of UX
  • 12 frameworks

Which paywall scored 4.8 out of 5, and which scored 2.6? It’s all inside.

Pick your edition
Free. No card, no paywall — just your email.
Free PDF · 90 pages

Get 100+ Paywalls, Decoded by email

Choose your edition

You’ll also get occasional UX psychology tips. Unsubscribe anytime. Privacy policy