Puzzle Den

Tower of Hanoi: Move the Tower

Move the whole stack of disks to the right-hand peg, one disk at a time. A disk can never sit on a smaller one.

About Tower of Hanoi

The Tower of Hanoi is a famous mathematical puzzle used in classrooms and programming courses around the world. It is simple to learn and beautifully logical.

Each game has three towers: 3, 4 and 5 disks. Solving in the fewest possible moves earns a gold medal.

Tower of Hanoi at a glance

GenrePuzzle game
PriceFree, no download or sign-up
ControlsTap
Typical game length5 to 10 minutes for 3 towers
LivesNone
Works onPhones, tablets and computers, in any modern browser
Daily challengeYes, the same puzzle for everyone each day

How to play Tower of Hanoi

  1. Tap a peg. Its top disk lifts.
  2. Tap another peg. The disk drops there if the move is allowed.
  3. Move the tower. Rebuild the stack on the right-hand peg.

Rules

Levels and difficulty

Three towers: 3, 4 and 5 disks.

Scoring

Each tower scores more with more disks, minus a penalty for moves beyond the minimum. Daily challenge scores can be shared with friends.

Tips and strategy for Tower of Hanoi

History of the game

The puzzle was invented by French mathematician Édouard Lucas in 1883.

How we built and tested Tower of Hanoi

We solved every tower in the minimum number of moves in automated tests to confirm scoring and the gold medal logic.

Frequently asked questions

What is the minimum number of moves?

7 for 3 disks, 15 for 4 and 31 for 5.

Can I restart a tower?

Yes, use the Restart button.

More games you might like

Snake EscapePuzzle
Merge 2048Puzzle
Block BurstPuzzle
Slide PuzzlePuzzle
Candy PopMatch
SudokuLogic
Written and tested by Puzzle Den Editorial Team

Game design and testing. The Puzzle Den team designs, builds and play-tests every game on the site, and writes and reviews each guide. We check every level generator for solvability before a game goes live.

Published 30 September 2026 · Last updated 30 September 2026 · How we build and test games