Law of proximity in ecommerce
Next principle →Things placed close together are seen as belonging together.
A shopper assumes a price or button belongs to the product nearest to it. Put a button closer to the next product than to its own, and shoppers can buy the wrong thing without noticing.
The law of proximity, also called the proximity principle, is a Gestalt rule about how we group what we see: things placed close together seem related, and things far apart seem separate.
Spacing is how you control this, and it is usually cheap to change. Keep a product's photo, name, price and button tight together, then leave a bigger gap before the next product.
Law of proximity example: a Buy $34 button touching a $68 bowl
Someone scrolling a pottery list on their phone wants the bowl. The list runs: mug, Buy $34 button, bowl, Buy $68 button. Each button sits far below its own item and right on top of the next, so Buy $34 touches the bowl. Most shoppers who want the bowl tap it and get the mug. The owner moves each button right under its own item and leaves the photos where they were. In our made-up store, most shoppers who want the bowl now get the bowl, so those orders are $68 instead of $34. Keep every button closer to its own product than to anything else.
How the law of proximity works with other principles: 4 store examples
Spacing carries meaning, so it touches a lot of other rules. These pairs show two it gets mixed up with, one it helps and one it can get in the way of. Every store below is made up to show the idea.
Law of proximity vs the law of similarity
Often confused with: Both are Gestalt rules for grouping, but the law of proximity groups by distance, and the law of similarity groups by matching looks.
Illustrative store example: A sock store lists twelve colors in one tight row, and shoppers see one range because the pairs sit close, which is proximity. Put a thin gold outline on the wool pairs and the eye also sorts them by look, which is similarity, even though nothing moved.
Law of similarity: why products that look alike seem related →Law of proximity vs Fitts's law
Often confused with: The law of proximity is about what a button seems to belong to, while Fitts's law is about how quickly a finger can reach it.
Illustrative store example: A camera store moves Add to cart up against the price, so shoppers can tell what they are buying, and that is proximity. Making the button bigger and easy to reach with a thumb is Fitts's law, and one page can need both fixes.
Fitts's law: why closer, bigger buttons are easier to tap →Law of proximity and chunking
Works with: Chunking splits information into small groups, and proximity shows those groups at a glance through tight spacing inside each group and bigger gaps between them.
Illustrative store example: A vitamin store's checkout lists eleven fields with equal gaps, so it looks like one long chore. Tighten the name, address and payment fields into three groups with wider gaps between, and the same form reads as three short steps.
Chunking: how small groups make long forms feel shorter →Law of proximity vs juxtaposition
Clashes with: Closeness tells shoppers two things belong together, so two products placed side by side to show their differences can still read as a matched pair.
Illustrative store example: A lamp store sets a floor lamp and a table lamp close together to compare them, with one price line under both. Shoppers wonder whether that price buys the pair, so give each lamp its own name and price with a clear gap between.
Juxtaposition: how side-by-side placement reveals differences →Put it into practice
How should I space a product card?
Use three sizes of gap. The smallest goes between things on one card, such as photo, name and price. A bigger one separates cards in a row, and the biggest separates rows and sections. On a phone, try about 8 pixels inside a card and 24 or more between rows. The exact numbers matter less than keeping the gaps inside clearly smaller than the gaps between.
When does extra space hurt?
Huge gaps make shoppers scroll more and can split things that belong together, such as a size chart pushed far from the size picker. Closeness can also say something untrue. A review score sitting nearer to a different product will look like that product's score, so check that every rating and discount line sits with the right item.
How is spacing different from putting a border around things?
A border groups things by enclosing them, while proximity groups them with gaps alone. Clean gaps are often enough on a product grid. A border or thin line helps when things have to sit close but belong apart, as in a dense comparison table. If your grid only makes sense with borders, fix the gaps first.
How can I spot proximity mistakes in my store?
Open a collection page on your phone and point at each price and button in turn. If you have to stop and think which product it belongs to, the gaps are wrong. You can also ask a friend to buy a named product while you watch. Customer emails saying “I ordered the wrong one” are another clue.
How does proximity help on checkout forms?
Put each label closer to its own box than to the box above it. When a label floats halfway between two boxes, people can type in the wrong one. Keep related boxes, such as city, state and zip, tight together and leave a bigger gap before the next group. Error messages belong directly under the box they refer to.