Cosy web games

Tower of Hanoi

Move three to six discs from rod A to rod C. Use the spare rod to make space, and see how close you can get to the minimum move count.

Controls: Tap a rod, then tap its destination. Tap the selected rod again to cancel.

Tower of Hanoi
Open game ↗ Playable

Regional page

Play Tower of Hanoi in the UK

This UK page keeps Tower of Hanoi on the same no download PCder shelf. Move the whole stack without covering a smaller disc. Use the region switcher if you want the US, Canadian, or Australian page.

Quick answer

Tower of Hanoi online

Tower of Hanoi is a puzzle with three rods and a stack of discs. Move the stack from A to C, one top disc at a time. You cannot place a larger disc on a smaller one. This version has three to six discs, a move counter, and Undo.

Best for
A disc puzzle with selectable size and a minimum-move target.
Related searches
tower of hanoi online, hanoi puzzle, disc stacking game

How to play

How to play Tower of Hanoi

  1. Choose a size Start with three discs, or select four, five, or six. Changing the size resets the puzzle.
  2. Select the source rod Tap or click a rod with discs on it. Only its top disc can move.
  3. Choose a destination Tap another rod. It must be empty or have a larger disc on top. Use B as temporary space while moving the stack to C.
  4. Complete the stack Move every disc to C. The counter shows your moves and the minimum for that size. Undo reverses one move.

Player guide

Make room for the largest disc

To move the largest disc to C, first move every smaller disc to B. Then move the largest disc and rebuild the smaller stack on top of it.

Common questions

Tower of Hanoi FAQ

What is the minimum number of moves?

For n discs, the minimum is 2 to the power of n, minus 1. Three discs take 7 moves, four take 15, five take 31, and six take 63.

Can I play on my phone?

Yes. Tap the source rod and then the destination. You do not need to drag small discs.

Why will a disc not move?

The source rod must contain a disc, and its top disc must be smaller than the top disc on the destination. An empty destination is also allowed.

Is this game open source?

Yes. This is an original PCder game under the MIT license. Links to the source files and license appear below the puzzle.

Does it save progress or have a timer?

There is no timer or saved progress. Reloading starts a new three-disc puzzle.

Can I play Tower of Hanoi on PCder from the UK?

Yes. This UK page uses the same browser build for Tower of Hanoi, with UK spelling, regional links, and source notes kept nearby. A school, college, or workplace network may still block game sites.