Puzzles

Tower of Hanoi Solving Techniques

The rules of the Tower of Hanoi, the minimum number of moves for any tower, and two reliable methods for solving it without wasted moves.

Team PlaydhamPublished 4 December 2026Updated 4 December 2026

Tower of Hanoi Solving Techniques

The Tower of Hanoi is a classic puzzle from 1883 and one of the purest tests of planning. In Playdham's version you move the whole tower to the destination peg, one disc at a time, and you can never place a larger disc on a smaller one. Illegal moves are not accepted, and extra moves reduce your efficiency.

The rules

  • Only one disc moves at a time.
  • You can only move the top disc of a peg.
  • A disc can never be placed on a smaller disc.

The minimum number of moves

For a tower of n discs, the shortest possible solution takes 2^n − 1 moves:

| Discs | Minimum moves | | --- | --- | | 3 | 7 | | 4 | 15 | | 5 | 31 | | 6 | 63 |

Knowing the minimum helps you judge your own solution. If you used many more moves, there was a shorter path.

Method 1: Think recursively

To move a tower of n discs from peg A to peg C:

  1. Move the top n − 1 discs from A to the spare peg B.
  2. Move the largest disc from A to C.
  3. Move the n − 1 discs from B onto C.

Each smaller step is the same puzzle with one fewer disc. Once you see the puzzle this way, you always know what your next goal is.

Method 2: The simple alternating pattern

There is also a mechanical method that needs no planning:

  • The smallest disc moves on every other turn, always travelling in the same direction around the pegs. With an odd number of discs, move it in the direction of the target peg first. With an even number, move it the other way first.
  • On the turns in between, make the only legal move that does not involve the smallest disc.

Follow this pattern and you will finish in the minimum number of moves.

Common mistakes

  • Moving the smallest disc twice in a row, which always wastes a move.
  • Losing track of which peg is the spare. Say the goal of each phase aloud: "small tower to the middle".
  • Rushing the first moves. The opening decides whether you finish in the minimum.

Why it is a good skill game

The Tower of Hanoi rewards planning, working memory and patience rather than reflexes, which is why it appears in both free play and Prize World levels on Playdham. Practise it in the free game before you meet it in a championship.

Frequently asked questions

What is the minimum number of moves?

2^n − 1 for n discs. For example, 7 moves for 3 discs and 15 moves for 4 discs.

Does the starting direction matter?

Yes. With the alternating method, move the smallest disc towards the target first when the number of discs is odd, and the other way when it is even.