Meet Mistry
All UX laws

UX Law 13 of 30 · Memory & attention

Miller’s Law

People can hold only about 7 (plus or minus 2) things in short-term memory.

Also called 7 plus or minus 2, Magical number seven.

Miller’s Law illustrated: A 6-digit code auto-filled from SMS. The app carries the code, so your memory does not have to.

An OTP arrives. You open the message, read the six digits, switch back to the app and start typing. Four digits in, the last two are gone. You switch back again to look.

That is Miller’s Law. Short-term memory is small, and the moment you look away it starts to empty.

What is Miller’s Law?

Miller’s Law says that the average person can hold only about 7 (plus or minus 2) items in short-term memory at once.

The useful lesson isn’t the number. It’s that memory is a scarce resource, and every time your interface asks someone to remember something, a code, a price, a step, a choice from the previous screen, you spend some of it. Spend too much and people make mistakes or have to go back.

It is often misread as “menus should have seven items”. But a menu is on the screen. Nobody has to remember it, because they can see it. Miller’s Law matters when information disappears: when people switch apps, move to the next step or have to carry something in their head.

Why it happens

Short-term memory, often called working memory, is where you hold what you are using right now. It is quick but tiny, and it fades within seconds unless you keep repeating things to yourself. Anything new, like a notification, or a question from someone nearby, pushes older items out.

George Miller pointed this out in his 1956 paper “The Magical Number Seven, Plus or Minus Two”. Later research, especially by Nelson Cowan in 2001, suggests the real limit for unrelated items is closer to four. Either way, the space is small and you should design as if it were already full.

Miller’s Law examples in real life

You have seen this many times already. A few places it shows up:

Ordering at a chai tapri

Your group wants three cutting chai, one without sugar, two bun maska and a samosa. By the time you reach the counter you are not sure about the sugar. A good tapri owner just repeats the order back, or shouts it to the person making it.

OTPs that fill themselves

On most phones today, when an OTP arrives by SMS, the keyboard offers it as a suggestion, and you can enter it with one tap. You never have to read or remember the code at all.

Paying with UPI

Sending money used to mean an account number and an IFSC code, often fifteen or more characters. With UPI, a phone number or a QR code is enough. The app remembers the rest.

The ride PIN in cab apps

Cab apps show a ride PIN or OTP on the trip screen until the ride starts. You don’t need to memorise it; you just show or read it to the driver when they arrive.

The problem

What goes wrong when you ignore Miller’s Law

Imagine a bill payment app that shows a 12-character reference number on one screen and asks you to type it on the next. There is no copy button and no way to go back without losing your progress. People squint, try to hold it in their head, get one character wrong and see an error. Some take a screenshot. Many just pay at the counter instead.

The common mistake

Using it as a rule to cut every list to exactly seven items.

The solution

How to use Miller’s Law in UI/UX design

  1. 1

    Auto-fill codes and saved details

    Let the phone fill OTPs for people: on the web, set the code field’s autocomplete attribute to one-time-code. Save addresses, cards and past choices, so people pick from what they used before instead of retyping it.

  2. 2

    Keep needed info visible on screen

    If a step depends on something from an earlier step, show it again: the train and date on the passenger form, the order total on the payment screen. Put error messages next to the field, not in a list at the top.

  3. 3

    Never make people memorise

    Don’t ask people to carry a number, code or instruction from one screen to another. Add a copy button, pass the value forward automatically, or let them return without losing their place.

Rule to remember

Do not make people remember. Let the app remember.

Try it yourself

Ask a friend to read you a 10-digit phone number once, out loud, without pauses. Wait ten seconds, then try to write it down. Now try again with a new number read as 98765 43210. Notice how much the second one helps, and how little room your memory had to begin with.

Where Miller’s Law comes from

Psychologist George A. Miller described it in his 1956 paper “The Magical Number Seven, Plus or Minus Two”. Later research suggests the real limit is closer to four chunks.

Sources and further reading

  • George A. Miller, “The Magical Number Seven, Plus or Minus Two: Some Limits on Our Capacity for Processing Information”, Psychological Review, 1956.
  • Nelson Cowan, “The magical number 4 in short-term memory: A reconsideration of mental storage capacity”, Behavioral and Brain Sciences, 2001.
  • Jon Yablonski, Laws of UX, O’Reilly Media, 2020.

Miller’s Law: questions people ask

Is Miller’s Law still true?

The idea is still true: short-term memory is very limited. The exact number has been revised. Miller himself called seven a rough figure, and later work by Nelson Cowan and others places the limit at around four chunks of information for most people.

How long does short-term memory last?

Not long. In a classic 1959 experiment, Lloyd and Margaret Peterson stopped people from repeating a short string of letters and found that most of it was forgotten within about 20 seconds. In an app, that is about the time it takes to switch to SMS and back.

Does Miller’s Law apply to older users or people under stress?

Even more so. Tiredness, distraction, stress and age can all reduce how much people can hold in mind. Someone paying a bill on a crowded train has less spare memory than someone at a quiet desk, so design for the busy moment.

Prefer video? Miller’s Law in a minute, in Hindi.

Found this useful? Share it with your team.

ShareWhatsAppLinkedInX

Free PDF

Miller’s Law and 29 more laws, in one free guide.

Every law in easy words, with everyday examples and one rule to remember. PDF · 33 pages · 13 MB.

Keep reading