Human Factors · Experiment ·

Working memory

We hold about four things in mind at once, not seven.

Take the experiment

Look at the code, answer one small question, then type the code back. It grows one character longer each round.

Round 1 of 6 · 4 characters

Here is your code. Take as long as you like, then move on.

····

ORDER CONFIRMATIONOrder 48213Ships Nov 21To AlvarezCode 4821 7730Total $64.00 HOLDS 4 ShipsNov 211ToAlvarez2Code4821 77303Total$64.004 Order48213 5TH IN, 1ST OUT
Working memory holds about four chunks: an order confirmation, where a fifth item pushes one out.

Why should I care?

Ask people to remember a code or a step from another screen and many will lose it: keep what they need in front of them.

  • About 4things we can hold in mind at once, not seven.
  • 4 in 5children with ADHD struggle to hold things in mind.
  • 51 studiesshow that stress leaves us holding less.
BEST DAY AN EXAMPLE Nov 21Alvarez4821 7730$64.00 BAD DAY Nov 21Alvarez ACUTE STRESS · LOST SLEEP · AGE SHIELDS ET AL., 51 STUDIES
The same four chunks on a best day and on a bad day (Shields et al., 51 studies).

What it means for your website

  1. Let people paste codes, never retype them.
  2. Keep what they need on the screen.
  3. Show long numbers in short groups.
Copy A CodeA CODE TO CARRYPASTED, NOT RETYPED
The copied code: every code you make someone copy spends their working memory. Let it be pasted or filled in automatically, and none of it is dropped.

More, if you want it

Why this matters

Picture a customer reading a code off their phone and typing it into your website. We can only hold a few things in mind at once, and one interruption is enough to lose them.

Working memory is what you hold on to for a moment while you use it, like carrying things from one room to the next. You’ll see a code, answer a small question, then type the code back. It grows by one character each round, like a reference number or a text-message code.

Not seven things at once, but four

In 1956 the psychologist George Miller wrote one of the most quoted papers in psychology, “The magical number seven, plus or minus two”.

It is often read as a rule that people can remember seven things. Miller was careful to say something subtler1: that memory is limited by the number of meaningful chunks, not the number of letters or digits, and that the sevens turning up in his data were probably “a pernicious, Pythagorean coincidence”. In 2001 Nelson Cowan reviewed the evidence and put the real limit, when people cannot repeat or group what they are holding, at about four chunks2.

Chunking is why a phone number is written in groups. “4821 7730 2291” is three things to hold; “482177302291” is twelve.

Everyone holds less on a bad day

What you can carry at your best is not what you can carry when it matters.

Acute stress reduces working memory, according to a review of 51 studies3, and so does losing a night’s sleep. It declines steadily with age from our twenties, even as what we know keeps growing. An estimated four in five children with ADHD show a significant working-memory difficulty.

Researchers have also argued that money worries take up mental room: in a much-discussed 2013 study, poorer shoppers did worse on reasoning tests after thinking about a large bill. Later attempts to repeat it had mixed results, so treat it as a question. Either way, the person filling in your form may be anxious, tired or interrupted, often all three.

Every code you ask a customer to copy

Each time a site makes someone carry something from one screen to another, it is spending their working memory.

A verification code sent by text, an order number from an email, a price from the page before, a choice made three steps ago: some people will drop them, and blame themselves. The web’s accessibility guidelines (WCAG) now say so plainly. A sign-in that makes people retype a code by hand, with no way to paste it, does not comply8, and a process must not ask for the same information twice9.

Menus are the opposite case. People do not memorize a menu they can see; they recognize what they want in it. That is why Miller’s number says nothing about how long a menu may be.

All the advice, in full
  1. Working memory Plate: a code, pasted instead of retyped MessagesYour code:482915Sign inCode from your text482915Sign inPASTED WHOLE6 of 6 digits TEXT MESSAGE SIGN-IN PAGE ELEVATION · NOTHING TO HOLD IN MIND
    A code from a text message, pasted whole into the sign-in field instead of retyped.

    Never make people retype a code

    Let one-time codes be pasted and filled in automatically (autocomplete="one-time-code"), and let password managers work (WCAG 3.3.8).

  2. Type It OnceEMAILann@home.comEMAILann@home.com

    Don’t ask twice

    If someone has already given you something in the same process, fill it in or offer it to choose (WCAG 3.3.7 Redundant Entry).

  3. Return an item Enter the order number from your receipt. Look up IN VIEW ORDER A-7731 DATE 11/04 ASK, SHOW BOTH
    The order number stays in view beside the field that asks for it.

    Show it where it’s needed

    Keep the order number, the account details or the question being answered on screen at the moment people need them.

  4. Twelve Digits482177302291RUN TOGETHER482177302291IN FOURS

    Group long strings

    Show long codes and numbers in short groups, and give people a one-click way to copy them.

  5. THE SAME NEXT BUTTON AT 12:47 AM 12:47 am4/5Card number•••• 4242Expires09/28Next 12:47 am4/5Card number•••• 4242Expires09/28Next 44 24 44 PX TALL ENHANCED TARGET 24 PX TALL MINIMUM TARGET
    The same Next button at 12:47 am: 44 pixels tall is the enhanced target, 24 the minimum.

    Design for the tired user

    Plan for someone stressed, short of sleep, older or interrupted, not a rested volunteer in a lab.

  6. Saved Steps LID UP 105°SIDE VIEW FRONT VIEWCHECKOUTSTEP 4 OF 512345SAVEDNOT YET 3 OF 5 SAVED
    Closed and opened again, three of five checkout steps are still saved.

    Save progress

    Let people leave and come back without losing what they entered, and warn them well before anything times out.

An experiment on you

This one runs here, on this page: it measures you, not a design. Use what it shows you when you review a prototype or a live page with the other tools.

What people get wrong
Menus should have seven items, plus or minus two
Miller wrote about remembering and judging, not menus. People recognize items in a menu they can see; they do not memorize it.
Working memory holds seven things
Closer to four chunks when people cannot rehearse or group, and it varies with the person and the moment.
Poverty lowers IQ by thirteen points
That comparison comes from one much-debated study. Several attempts to repeat it found no effect.
Multitasking permanently damages memory
The evidence is weak. Heavy multitaskers may filter distractions less well, but repeat studies largely failed.
Where these numbers come from

Every figure on this page comes from one of these 10 sources. The small numbers in the text point here.

  1. Peer-reviewed study

    The magical number seven, plus or minus two: some limits on our capacity for processing information

    Miller ·

    Psychological Review

    psychclassics.yorku.ca

    Cited in section I

  2. Review

    The magical number 4 in short-term memory: a reconsideration of mental storage capacity

    Cowan ·

    Behavioral and Brain Sciences

    researchgate.net

    Cited in section I

  3. Review

    The effects of acute stress on core executive functions: a meta-analysis and comparison with cortisol

    Shields, Sazma and Yonelinas ·

    Neuroscience & Biobehavioral Reviews

    hmlpubs.faculty.ucdavis.edu

    Cited in section II

  4. Review

    A meta-analysis of the impact of short-term sleep deprivation on cognitive variables

    Lim and Dinges ·

    Psychological Bulletin

    med.upenn.edu

  5. Review

    Moderators of working memory deficits in children with attention-deficit/hyperactivity disorder (ADHD): a meta-analytic review

    Kasper, Alderson and Hudec ·

    Clinical Psychology Review

    sciencedirect.com

  6. Peer-reviewed study

    Poverty impedes cognitive function

    Mani, Mullainathan, Shafir and Zhao ·

    Science

    collaborate.princeton.edu

  7. Peer-reviewed study

    Poverty and economic decision-making: evidence from changes in financial resources at payday

    Carvalho, Meier and Wang ·

    American Economic Review

    aeaweb.org

  8. Standard

    Understanding WCAG 3.3.8: Accessible Authentication (Minimum)

    W3C

    Web Content Accessibility Guidelines 2.2

    w3.org

    Cited in section III

  9. Standard

    Understanding WCAG 3.3.7: Redundant Entry

    W3C

    Web Content Accessibility Guidelines 2.2

    w3.org

    Cited in section III

  10. Guidance

    Memory recognition and recall in user interfaces

    Nielsen Norman Group

    nngroup.com