Loading...

Tower of Hanoi

Classic Tower of Hanoi. Move all disks to the right peg following the rules!

Free ForeverNo DownloadPlay in BrowserMobile Friendly

How to Play

Click a peg to pick up its top disk, then click another peg to drop it. Move all disks to peg C.

Objective

Move all disks from the leftmost peg to the rightmost peg (C). Only one disk may be moved at a time, and a larger disk may never be placed on top of a smaller one.

Controls

• Click a peg to select it and lift its top disk
• Click another peg to drop the disk onto it
• Click the same peg again to cancel the selection
• A larger disk cannot be placed on a smaller disk
• Undo reverts the last move

Tips & Strategy

• The minimum moves needed is 2ⁿ−1 (n = number of disks)
• Solve recursively: move n−1 disks aside, move the largest, then move n−1 disks on top
• Start with 3 disks to learn the pattern, then try 6, 7 and 8
• Fewer moves earn a higher star rating
• Click "Auto Solve" to watch the optimal solution
• Try Time/Move limit challenges for extra difficulty

Frequently Asked Questions

How to play Tower of Hanoi?
Classic Tower of Hanoi. Move all disks to the right peg following the rules! Open it directly in your browser and start playing instantly — no setup needed.
Is Tower of Hanoi free?
Yes, all games on GameHub are completely free to play with no signup required.
Can I play Tower of Hanoi on mobile?
Yes! All games support touch controls. Just open the page in your mobile browser and play.
Do I need to download Tower of Hanoi?
No download needed. All games run in your browser — just open the page and start playing immediately.
Back to Game