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 to another peg, or tap one peg and then another. Move every disk to the flag peg. A bigger disk can never sit 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

Move the whole tower to the flag, one disk at a time! A free Tower of Hanoi puzzle for kids ages 6–13, from 3 to 8 disks, with hints and star ratings.

How to play Tower of Hanoi

Three pegs stand on the board, and one has a 🚩 flag. Your job is to move every disk onto the flag peg. Drag the top disk of any peg and drop it on another. Or tap a peg to lift its top disk, then tap where it should go. On a keyboard, press 1, 2 or 3 to pick a peg and again to drop.

There is just one rule to remember: a bigger disk can never go on a smaller one. If your child tries, the peg wobbles and says “Too big!”. Moves are counted, and the game shows the smallest possible number for that level.

Levels Challenge
1 3 disks with every move shown, to learn the pattern
2–3 3 disks to the middle peg, then 4 disks
4, 6, 8, 11, 14 Mixed-up starts: disks are spread over all three pegs and must be stacked on the flag
5, 7, 10, 13, 16 Full towers of 5, 6, 7 and 8 disks
9, 12, 15 Move limits: finish close to the best number of moves

Stars: finishing in the fewest possible moves earns three stars, finishing within about one and a half times that earns two, and any finish earns one. On move-limit levels, running out of moves means trying again.

What your child learns

Planning several steps ahead. You can’t just grab the biggest disk and move it. Everything on top of it has to be cleared away first, and to somewhere it won’t block you later. Children learn to think “first this, then that, and only then…” which is the heart of planning.

Breaking problems into smaller ones. The secret of the Tower of Hanoi is that every big tower is made of smaller towers. To move 5 disks, you move 4, then one, then 4 again. Many children discover this on their own around the 4- or 5-disk levels. Recognizing that a big problem is made of small, familiar ones is a powerful idea in math and in computer programming, where it is called recursion.

Patterns. With practice, kids notice that the smallest disk moves every other turn, always circling in the same direction. Spotting patterns like this turns a hard puzzle into an easy one.

Patience and self-checking. Mixed-up starts and move limits encourage children to stop and think before every move instead of trying things at random.

Tips for parents

  1. Start at level 1, even with older kids. The guided level shows the classic 7-move solution. Watching the pattern once makes later levels click.
  2. Say the plan out loud. Ask “Which disk needs to move first? Where should it go so it isn’t in the way?” Talking through a plan is the best way to build the habit.
  3. Use the tower trick. When your child gets stuck on 4 disks, remind them that they already know how to move 3. “Move the little tower out of the way, move the big disk, then put the little tower back.”
  4. Don’t chase three stars too early. One star is an achievement on 7 or 8 disks. Come back later to improve.
  5. Hints are a learning tool. One hint at the right moment is often all it takes to see the pattern again.

Offline activities and variations

  • Coins or pancakes. Stack different-sized coins, plastic lids or toy pancakes and play on three plates.
  • Stacking cups. Use nested cups as disks. Even preschoolers enjoy moving three of them with the “no big on small” rule.
  • Count the moves. Have your child solve 1, 2, 3 and 4 disks and write down the fewest moves: 1, 3, 7, 15. Can they guess the next number? Each one is double the last, plus one.

Common mistakes

The most common mistake is putting the smallest disk on the wrong peg at the very start. With an odd number of disks, the first move of a full tower goes straight to the target peg. With an even number, it goes to the spare peg. Another mistake is undoing progress by moving the same disk back and forth. If your child feels stuck, a hint shows the next good move without solving the whole puzzle for them.

Frequently asked questions

What are the rules of the Tower of Hanoi?
Move the whole stack to another peg. You can move only one disk at a time, only the top disk of a stack, and you can never put a bigger disk on top of a smaller one.
What is the fewest number of moves?
For a full tower of n disks it is 2ⁿ − 1. That means 7 moves for 3 disks, 15 for 4, 31 for 5, and 255 for 8. The game shows the best possible number for every level, including the mixed-up starts.
Is there a trick to solving it?
Yes. To move a tower of 4, first move the top 3 out of the way, then move the biggest disk, then move the 3 back on top. Each smaller tower is solved the same way. Another trick is that the smallest disk always moves in the same direction around the pegs.
How do hints work?
The 💡 button shows the next best move with a glowing disk and an arrow. Hints are unlimited, but using one means the level gives at most two stars. Level 1 shows every move for free so beginners can learn the pattern.

More games like Tower of Hanoi

All logic & puzzle games →