You can play the Tower of Hanoi right here on this page, at no cost. No install or sign-up is needed. On a computer or a phone, you can start just by tapping the board below.

Play Right Away in Your Browser

When you have moved the tower on the left entirely to the right pole, you are done. Tap a pole to lift its top disk, and tap another pole to put it there. You can choose from 3 to 8 disks.

321
Moves: 0 (fewest 7)

Move the whole tower from the left pole to the right pole. Tap a pole to pick up its top disk.

There are only three rules.

  1. You can move only one disk at a time.
  2. You can move only the top disk on each pole.
  3. You must not put a large disk on a small disk.

If you are a beginner, start with 3 disks, and when you can finish in 7 moves, try 4 and then 5. If you get stuck, the article on how to solve it will give you a clue. The board on this page does not keep a record of your play. When you close the page, it starts over.

To Play on a Phone: The Tower of Hanoi App

If you want to keep playing at your own pace on your phone, we recommend the Tower of Hanoi app. You can download it at no cost for iPhone, iPad and Android (ads are shown).

The app has three ways to play, which you can choose under “Mode” in Settings.

  • Puzzles: Match scattered disks to the target shape shown at the top. There are 5 difficulty levels, from 1 star to 5 stars, with 5 to 9 disks. A different puzzle comes up each time, so you can play as many times as you like.
  • Classic: The traditional way to play, moving a tower of 7 disks from the left pole to the middle pole. The fewest moves is 127.
  • Color Sort: Sort red, blue and gold disks so that each pole holds one color.

Differences Between the Browser Version and the App

This pageApp
How to startJust open itDownload
How to playMove the tower3 modes
Disks3 to 85 to 9
HintsNoneHint
RecordsNot keptTime and moves
AppearanceCannot be changedCan be changed

The app’s “Hint” is a feature that shows, with the disks moving, the next move toward solving from the current arrangement in the fewest moves. It gives an answer from any arrangement, so it helps when you have forgotten the method. You start with 3 hints, and when you use them up, you can watch an ad to get 3 more.

When you clear a puzzle you get coins, and in the Shop you can change the look of the disks, stands and backgrounds. If you finish in exactly the fewest moves, the result shows “fewest moves”, and you get more coins.

Recommended Order

  1. Solve 3 and 4 disks on this page to get used to the rules and the method.
  2. In the app, start with 1 star (5 disks) in Puzzles, and raise the stars little by little.
  3. When you are used to it, aim for exactly 127 moves with the 7 disks in Classic.

You can download the app from the buttons at the bottom of this page.