Marcus Andrey Study
Ler em português Library

UX Foundations · Step 6 · 6 min read

Gestalt principles

People see groups before they see details. Six Gestalt principles (proximity, similarity, common region, continuity, closure, figure and ground) explain which things look related on a screen, and how to use them on purpose instead of by accident.

Before people read a screen, they group it. In a fraction of a second, the eye decides which things belong together: this label goes with that field, these icons are a menu, that box is separate. Nobody thinks about it; it just happens. The Gestalt principles describe how that grouping works, so you can make the groups people see match the groups you meant.

What you'll be able to do after reading:

  • Name six Gestalt principles and spot each one in an interface
  • Use spacing and containers to show what belongs together
  • Explain why proximity usually beats colour
  • Fix layouts where things look related but aren't

1. Where the principles come from

"Gestalt" is German for "form" or "shape"; the Interaction Design Foundation glosses it as "unified whole". In the early 20th century, psychologists such as Max Wertheimer studied how people perceive groups rather than separate dots and lines; his best-known paper on grouping appeared in 1923 (Wertheimer, Untersuchungen zur Lehre von der Gestalt II, Psychologische Forschung). As NN/g puts it, the original set "includes proximity, similarity, and closure", and later research "at the end of the twentieth century" added more, such as common region (Palmer, 1992) (NN/g, Harley, The Principle of Common Region, 2020).

You don't need the history to use them. You need to recognise them, because they work whether you plan for them or not.


2. Six principles

ProximityClose means related

Things near each other look like one group.

A label sits next to its field
SimilarityAlike means related

Same colour, shape or size looks like one kind.

All links share one colour
RegionCommon region

Things inside one border or background belong together.

A card groups a photo and its text
LineContinuity

The eye follows lines and rows.

A step bar leads to the next step
GapClosure

We complete shapes that have gaps.

A cut-off card says "scroll for more"
LayerFigure and ground

We split what we see into object and background.

A dimmed page behind a dialog
Six Gestalt principles and where you meet them in an interface. Diagram: Marcus Andrey, CC BY 4.0.
Principle What people perceive In an interface
Proximity "Items close together are likely to be perceived as part of the same group" (NN/g, Proximity) A label sits closer to its own field than to the next one
Similarity "Items which share a visual characteristic are perceived as more related" (NN/g, Similarity) All links share one colour; all destructive buttons look alike
Common region "Items within a boundary are perceived as a group" (NN/g, Common Region) Cards, panels, a shaded header
Continuity Elements on a line or curve are seen as one path (IxDF, Gestalt Principles) A row of tabs, a progress bar with steps, aligned columns
Closure We complete shapes that have gaps (IxDF) An icon drawn with a few strokes; a card cut off at the screen edge that hints "scroll for more"
Figure and ground We split a view into an object and its background; Rubin's vase is the classic example (IxDF) A dialog over a dimmed page; text on a photo with a dark overlay

3. Proximity: the strongest everyday tool

NN/g calls proximity "one of the most important grouping principles" and says it "can overpower competing visual cues such as similarity of color or shape". In practice, space is your first grouping tool. Before adding a line, a box or a colour, try moving things closer together or further apart.

Two spacing rules follow:

  • Inside a group, less space; between groups, more space. A heading should sit closer to the text it introduces than to the section above.
  • Equal spacing means "no groups". If every element is 16 px apart, people can't see the structure.

Worked example: a sign-up form. In the "before" version, each label sits exactly halfway between two fields, so "Email" could belong to the field above or below. People type their email into the name field. In the "after" version, each label is 4 px above its own field, and fields are 24 px apart. Same content, same colours; only the spacing changed, and the ambiguity is gone. This is the same idea as the field groups in Forms.


4. Similarity and common region

Similarity is what makes consistency matter. NN/g notes that similarity "could be considered the most resilient" principle because it groups things even when they're far apart: every blue underlined word on a page reads as "a link". The risk is false similarity: if a plain heading uses the same blue as your links, people will try to tap it.

Common region is the strongest explicit grouping. NN/g's article on it is titled "Containers Create Groupings", and it also warns about overuse: too many boxes create clutter. A good order is: try spacing first, then alignment, then a container if the group still isn't clear.


5. Continuity, closure, figure and ground

  • Continuity: the eye follows lines. Aligned left edges make a column feel like one list; a stepped progress bar pulls people to the next step. Misaligned items break the line and look like a mistake.
  • Closure: people fill gaps. That's why simple outline icons work, and why a card partly cut off at the edge of a carousel tells people there's more to swipe.
  • Figure and ground: people need to know what is "in front". A modal dialog works because the page behind it is dimmed into ground. Text placed straight on a busy photo fails because figure and ground fight.

6. Common mistakes

  • Equal spacing everywhere, so no groups are visible.
  • Labels halfway between two fields.
  • A box around everything, until the boxes themselves become clutter.
  • Using the link colour for things that aren't links.
  • Text on photos without an overlay, so figure and ground compete.

7. Vocabulary

Term Meaning
Gestalt German for "form"; here, how we perceive wholes and groups
Proximity Close things look related
Similarity Things that look alike seem related
Common region Things inside one boundary seem to belong together
Continuity The eye follows lines and curves
Closure We complete shapes with gaps
Figure and ground Seeing an object in front of a background

8. Try it (no tools needed)

  1. Take a form or settings page you use. Draw a box on paper around every group you see.
  2. Now draw the groups that should exist (by meaning: personal details, payment, preferences).
  3. Where the two drawings differ, write which principle is misleading people, and how you'd fix it with spacing alone.

Reflection questions: Where did proximity and colour disagree? Which won? Could you remove one container and keep the grouping with space?


9. If you already practise

  • Make your spacing scale encode grouping: small steps inside components, larger ones between groups and sections (see Layout, grids and spacing).
  • In critique, name the principle: "the label is closer to the wrong field" is easier to act on than "it feels off".
  • Check grouping in responsive layouts: NN/g notes that proximity "may shift in responsive designs" when space shrinks.

Checklist

Learn more

Books, courses and videos to go deeper

Book links go to Amazon. As an Amazon Associate I earn from qualifying purchases, at no extra cost to you.

Visual hierarchy · Layout, grids and spacing · Forms · How people think

Saved only on this device.

↑ ↓ to move · Enter to open · Esc to close