Tower of Hanoi
Play Tower of Hanoi free online. Move the tower of discs to the right peg, one disc at a time, never larger on smaller.
The famous recursive puzzle. Move a stack of discs from the left peg to the right peg, one disc at a time, and never place a larger disc on a smaller one. The counter shows the fewest moves still needed from your position, and the hint always suggests the optimal next move. For another puzzle with a perfect answer, try Lights Out or browse logic puzzles.
- Category: Puzzle
- Difficulty: medium
- Players: 1 player
- Typical game: about 5 minutes
- Works on: desktop, phones and tablets
How to play Tower of Hanoi
Objective: Move every disc from the left peg to the right peg (marked ★).
- Only the top disc of a peg can move.
- A disc may go on an empty peg or on top of a larger disc — never on a smaller one.
- Select a peg to lift its top disc, then choose where to put it. Select the same peg again to put it back.
- "Still needed" shows the fewest moves left from your current position.
Scoring
30 points per move in the perfect solution plus 200, minus 10 for every extra move and 40 per hint.
Difficulty levels
Easy: 3 discs (7 moves). Normal: 5 discs (31 moves). Hard: 7 discs (127 moves).
Tips
- Move the smallest disc every other turn, always cycling in the same direction.
- With an odd number of discs the smallest disc starts by moving to the goal peg; with an even number, to the middle.
Controls
Keyboard
- 1, 2, 3 pick a peg (first the source, then the destination)
- Tab or ← → move between pegs, Enter selects
Mouse
- Click a peg to lift its top disc, then click the destination peg
- Or drag from one peg to another
Touch
- Tap the source peg, then the destination peg
- Or drag from one peg to another
Tower of Hanoi achievements
- Tower Mover – Solve the puzzle once.
- No Wasted Moves – Solve in the minimum number of moves.
- Perfect Five – Solve 5 discs in 31 moves.
- Tall Order – Solve the 7-disc tower.
- Patience of a Monk – Solve 7 discs in exactly 127 moves.
Frequently asked questions
Is Tower of Hanoi free to play?
Yes. Tower of Hanoi is completely free on GamesPlayLand, with no download, no sign-up and no purchases.
How do you play Tower of Hanoi?
Move every disc from the left peg to the right peg (marked ★). Only the top disc of a peg can move. A disc may go on an empty peg or on top of a larger disc — never on a smaller one.
Can I play Tower of Hanoi on my phone?
Yes. Tower of Hanoi works in mobile browsers on phones and tablets, with no app to install. Tap the source peg, then the destination peg. Or drag from one peg to another.
Does Tower of Hanoi save my progress?
Yes. Tower of Hanoi saves your game automatically in your browser, so you can close the page and continue later. Personal bests and achievements are saved too.
What games are like Tower of Hanoi?
If you like Tower of Hanoi, try Lights Out, Pipe Connect and Sliding Puzzle.
More games like Tower of Hanoi
- Lights Out – Every press flips a light and its neighbours. Can you switch the whole grid off?
- Pipe Connect – Rotate the pipe tiles until water from the centre reaches every tile without a leak.
- Sliding Puzzle – Slide the numbered tiles back into order — the classic 8, 15 and 24 puzzles.
- Unblock Puzzle – Slide the wooden blocks out of the way to free the red block through the exit.
- Matchstick Puzzle – The equation is wrong — move exactly one matchstick to make it true.
- Logic Grid – Use the clues to work out who owns what — an Einstein-style deduction puzzle.