← All Games

Tower of Hanoi

Move all disks to peg C, one at a time. You can never place a larger disk on a smaller one — and the required planning depth grows exponentially.

Moves
0
Optimal
Time
0:00
Errors
0

Select a difficulty. Move all disks from peg A to peg C.
Click a peg to pick up its top disk, click another to place it.

Difficulty
Solved!
Moves
0
Optimal
0
Efficiency
0%
Errors
0
Cognitive load index

Cognitive Load & Executive Function

The Tower of Hanoi is one of psychology's most studied tasks for measuring executive function — the set of mental skills used to plan, focus, and juggle multiple pieces of information at once. Solving it requires recursive planning: to move n disks, you must first solve the n−1 sub-problem, which requires solving the n−2 sub-problem, and so on.

DisksMin MovesPlanning DepthWorking Memory Load
231 levelLow
372 levelsModerate
4153 levelsHigh
5314 levelsVery high
6635 levelsExtreme
71276 levelsNear-maximum

John Sweller's Cognitive Load Theory (1988) explains why performance degrades sharply above 4–5 disks: working memory can only hold ~4 items at a time (Cowan, 2001). Once the sub-goal stack exceeds this limit, people must offload to trial-and-error, dramatically increasing move count and errors.


The task is used clinically to assess frontal lobe function, planning deficits in ADHD, and cognitive decline — because it isolates pure planning ability from domain knowledge.