Cognitive Load & Hick's Law — UI/UX

Cognitive load is the brain work a page takes to use. Working memory (where the brain keeps what it is thinking about right now) holds only about 4 chunks of…

Ever opened a food delivery app, scrolled for 15 minutes, and in the end ordered the same thing as always? The tiredness isn't in your thumb, it's in your head.

That tiredness is called cognitive load: how much brain work a page takes to use, that is, reading, remembering, comparing and deciding. Hick's Law measures part of that work: the time to choose grows with the number of choices, but it grows slowly. Picture a food stall with three dishes and a restaurant with a twenty-page menu. At the stall you say "fried rice" right away. At the restaurant the waiter waits a long time, and often you order the usual in the end.

Why the brain fills up fast

John Sweller (1988) gave this load the name cognitive load. The brain fills up fast because human working memory is small. Working memory is where the brain keeps, for a short time, what it is thinking about right now, such as a price you have just read. Nelson Cowan (2001) concluded that adults can hold only about 4 chunks of information at once. Every option, label and number that has to be read and then compared uses space in that working memory.

You have already learned the ways to cut this load on Mrs. Sri's page:

Hick's formula

W. E. Hick (1952) ran an experiment with 1 to 10 lamps, each with its own matching key. One lamp lit, and people had to press its matching key as fast as they could. Their reaction time rose with the logarithm of the number of lamps:

T = a + b · log₂(n + 1)

Ray Hyman (1953) showed that what really sets the time is the amount of information (bits). A choice picked far more often is decided faster. That's why a sensible default helps.

Now guess first. Mrs. Sri wants to add options. Right now a guest picks 1 of 3 rooms. If each room is sold in 4 packages (with or without breakfast, cancellable or not), there are 12 options. By this formula, does deciding take 4 times as long?

Here is the calculation for Mrs. Sri's room choice:

Choices on the page n log₂(n + 1)
3 rooms 3 log₂ 4 = 2 bits
3 rooms × 4 packages 12 log₂ 13 = 3.70 bits
3 rooms × 4 packages × 2 bed types 24 log₂ 25 = 4.64 bits

From 3 to 12 choices, the decision part rises from 2 to 3.70 bits: about 1.85 times, not 4 times. From 12 to 24, it rises by only about 1 bit. So the answer to the guess: no, not 4 times. That is how a logarithm grows: each time the choices double, the decision part adds only about 1 bit.

When the formula misses

The people in Hick's experiment already knew which lamp went with which key. Mrs. Sri's guests don't. They have to read each package first, such as "With breakfast, non-refundable, $36", and then compare. Reading and comparing take more time with every package, and that time is usually far bigger than the decision part in Hick's formula. In the Lab, your own time is measured: with 12 packages it often rises by more than 1.85 times, because you're reading too.

So Hick's Law is right about the direction: more choices, more time. But the biggest cost is often in cognitive load: how much has to be read and remembered.

What grouping does

Grouping means putting choices into groups, for example splitting the 12 packages into two steps: pick a room (3 choices), then pick a package (4 choices). By Hick's formula: log₂(3 + 1) + log₂(4 + 1) = 2 + 2.32 = 4.32 bits. That is more than the 3.70 bits for 12 choices at once. So by the formula, grouping doesn't make the decision faster. What grouping does:

Lighter still is progressive disclosure (showing information in stages): show first what everyone needs, and keep the rest behind one step for those who need it (Jakob Nielsen, 2006). On Mrs. Sri's page, the 12 packages don't need to exist at all. In the code below, <fieldset> wraps one group of choices, and <legend> is its title. <input type="radio"> is a round button (in one group, only one can be selected), <input type="checkbox"> a tick box, and <label> the text beside it.

<fieldset class="rooms">
  <legend>Choose a room</legend>
  <label><input type="radio" name="room" value="terrace" checked> Terrace Room · $35</label>
  <label><input type="radio" name="room" value="attic"> Attic Room · $27.50</label>
  <label><input type="radio" name="room" value="garden"> Garden Room · $42.50</label>
</fieldset>

<details class="extras">
  <summary>Extras (optional)</summary>
  <label><input type="checkbox" name="breakfast"> Breakfast · $2.50 per guest per night</label>
</details>

⚠️ Misreading Hick's Law, cutting the wrong things

TL;DR: Cognitive load is the brain work a page takes to use. Working memory (where the brain keeps what it is thinking about right now) holds only about 4 chunks of information (Cowan 2001). Hick's Law (Hick 1952, Hyman 1953): deciding (T) takes longer as the number of choices (n) grows, T = a + b · log₂(n + 1), with a and b measured, not guessed. The decision part, log₂(n + 1), is counted in bits (one decision between two possibilities) and grows slowly: 3 rooms = 2 bits, 12 packages = 3.70 bits (about 1.85 times, not 4 times), 24 choices = 4.64 bits. When options must be read first, reading and comparing usually cost more than the decision part. Grouping (splitting the choices into several steps) isn't faster by the formula (2 + 2.32 = 4.32 bits, more than 3.70), but keeps each step small and skippable. Progressive disclosure: show what everyone needs, hide the rest behind one step (<details>, which opens only when pressed), and have the most common choice selected from the start (the default).

⚡ Working memory is small

Meaning: Cognitive load is the brain work a page takes to use: reading, remembering, comparing and deciding. Working memory, where the brain keeps what it is thinking about right now, is small: adults can hold only about 4 chunks of information at once (Cowan 2001). So every option and number to compare uses space there.

⚡ Hick's Law: it grows slowly

Guess first: Hick's Law calculates the time to choose from the number of choices, n. Its decision part is log₂(n + 1). The choices grow from 3 rooms to 12 packages. Does deciding take 4 times as long?

No. log₂(3 + 1) = 2 bits, log₂(12 + 1) = 3.70 bits, so about 1.85 times. One bit is one decision between two possibilities, and doubling the choices adds only about 1 bit.

Meaning: The full formula is T = a + b · log₂(n + 1). T is the time to decide, n the number of choices, and a and b are measured, not guessed. But guests also have to read every package first, and reading and comparing usually cost more than the decision part.

⚡ Progressive disclosure

Write:

<fieldset class="rooms">
  <legend>Choose a room</legend>
  <label><input type="radio" name="room" value="terrace" checked> Terrace Room · $35</label>
  <label><input type="radio" name="room" value="attic"> Attic Room · $27.50</label>
</fieldset>

<details class="extras">
  <summary>Extras (optional)</summary>
  <label><input type="checkbox" name="breakfast"> Breakfast · $2.50 per guest per night</label>
</details>

Meaning: Progressive disclosure: show first what everyone needs, and keep the rest behind one step. In this code, breakfast is kept inside <details>, which opens only when the text in its <summary> is pressed. checked makes the most common choice selected from the start, so it is the fastest to decide. Never hide the total and the cancellation rule.

What you will learn