Skip to content
  1. Home
  2. Games
  3. Logic & Puzzle Games
  4. Tower of Hanoi

Tower of Hanoi · Logic & Puzzles game for kids

Tower of Hanoi

Drag the top disk of a peg to a new peg, or tap the peg you want to take from and then the peg you want to drop on. Get every disk onto the peg with the flag, and never rest a larger disk on a smaller one.

Ages 6+16 levels🔊 Sound🗣️ Voice
👶 Ages 6+ 🏁 16 levels 🔊 Sound effects 🗣️ Read aloud 📱 Works on tablets 🆓 Free, no sign-up

Shift a stack of disks to the flag peg without ever setting a big disk on a small one. Free puzzle for ages 6–13 with 3 to 8 disks, hints and stars.

Playing the game

The board has three pegs, and one of them carries a 🚩 flag. That is where the disks must end up. Drag the top disk from one peg to another, or tap a peg to lift its top disk and tap again to set it down. Keyboard players can press 1, 2 or 3 to choose a peg.

The one rule is that a larger disk may not rest on a smaller one. Try it and the peg gives a little wobble and says “Too big!” A move counter runs along the way, next to the best possible score for that level.

Levels What to expect
1 3 disks, with every move shown so the pattern can be learned
2–3 3 disks sent to the middle peg, then 4 disks
4, 6, 8, 11, 14 Mixed-up starts: disks sit on all three pegs and must be gathered onto the flag
5, 7, 10, 13, 16 Full towers of 5, 6, 7 and 8 disks
9, 12, 15 Move limits: finish near the best possible count

Scoring. Solve it in the minimum number of moves for three stars. Stay within about 1.5 times that for two. Anything else that finishes still gets one. On limited levels, running out of moves means a fresh try.

Skills it builds

Thinking ahead. The biggest disk cannot move until everything above it has been cleared, and cleared to a place that will not get in the way later. Children practice “first this, then that, and only then the big one”, which is planning in its plainest form.

Cutting a big problem into smaller ones. Every tall tower is a shorter tower plus one disk. Moving 5 disks means moving 4, then 1, then 4 again. Many children spot this by themselves around the 4- and 5-disk levels. The idea reappears in math and in programming, where it is called recursion.

Pattern spotting. The smallest disk moves every second turn and always circles the same way. Once a child sees that, a daunting puzzle turns routine.

Patience. Mixed-up starts and move limits reward stopping to think before each move rather than poking at random.

Ideas for parents and teachers

  1. Begin with level 1, whatever the age. It demonstrates the classic 7-move solution, and watching it once makes the later levels easier to read.
  2. Ask for the plan aloud. “Which disk has to go first? Where can it sit without blocking anything?” Describing a plan builds the habit of making one.
  3. Lean on what is already known. A child stuck on 4 disks can already move 3. Suggest: “Put the small tower aside, move the big disk, then rebuild the small tower on top.”
  4. Be relaxed about stars. One star on a 7- or 8-disk tower is a real achievement. Improving can wait for another day.
  5. Use hints sparingly. One well-timed hint is often enough to bring the pattern back.

Away from the screen

  • Coins, lids or paper pancakes. Stack things of different sizes on three plates.
  • Nesting cups. Three cups and the “nothing big on small” rule give even preschoolers a fun version.
  • Move counting. Solve 1, 2, 3 and 4 disks and record the fewest moves: 1, 3, 7, 15. Ask your child to guess what comes next. Double the last number and add one.

Common slips

A frequent error is starting with the smallest disk on the wrong peg. On a full tower with an odd disk count, the opening move should go directly to the target peg. An even count sends it to the spare peg instead. Another is shuffling one disk back and forth and losing progress. If a child is truly stuck, a hint reveals one good move without solving the whole puzzle.

Frequently asked questions

What are the Tower of Hanoi rules?
The goal is to rebuild the stack on a different peg. Lift only one disk per move, take it from the top of a pile, and never lay a larger disk over a smaller one.
How many moves does the puzzle need at minimum?
A tower of n disks can be solved in 2ⁿ − 1 moves. So 3 disks take 7, 4 disks take 15, 5 disks take 31 and 8 disks take 255. Each level in the game displays its own best count, mixed-up starts included.
Is there a shortcut for solving it?
There is a pattern. To shift 4 disks, park the top 3 on the spare peg, carry the largest disk over, then bring the 3 back on top. The same idea works for each smaller stack. The smallest disk also keeps circling the pegs in one direction.
What does the hint button do?
Press 💡 and the best next move lights up, with a glowing disk and an arrow. You can ask as often as you like, but a level finished with a hint earns two stars at most. Level 1 walks through every move for free, so beginners can see the pattern.

More games like Tower of Hanoi

All logic & puzzle games →