🧠 Tower of Hanoi

Move the entire stack of disks from the left peg to the right peg. But beware: you can never place a larger disk on top of a smaller one!

👆 Tap a peg to select the top disk, then tap another peg to place it!
Moves: 0
Target: 7

Puzzle Solved!

You did it in 0 moves.
Disks: 3

📜 The Rules

To win the game, you must move the entire stack to the right-most peg, obeying these simple rules:
  • Only one disk can be moved at a time.
  • You can only take the top disk from one of the stacks.
  • A larger disk cannot be placed on top of a smaller disk.
Pro tip: The minimum number of moves required to solve the puzzle is 2n - 1 (where n is the number of disks).

About the Tower of Hanoi Puzzle

The Tower of Hanoi is one of the most famous mathematical puzzles in the world, renowned for its elegant simplicity and deeply complex strategy. The rules are straightforward: move the entire stack of colored disks from the leftmost peg to the rightmost peg. However, you can only move one disk at a time, and a larger disk can never be placed on top of a smaller disk. Our free, interactive online version allows you to test your logic and problem-solving skills directly from your browser. Use the slider to adjust the difficulty from a quick 3-disk warmup to a challenging 7-disk marathon. As you play, the live scoreboard tracks your moves against the mathematical "perfect" score, challenging you to find the most efficient path to victory.

While the Tower of Hanoi is a fantastic test of logical sequencing and algorithmic thinking, FlipNSpin offers a massive variety of brain-training challenges to keep your mind sharp. If you enjoy spatial reasoning and visual logic, try your hand at the Dot Link Puzzle or the classic Shape Matcher Memory Game. Looking to test your cognitive speed alongside your memory? The Stroop Test Game will push your brain's ability to process conflicting information.

Once you have mastered the pegs and disks, you can explore other numerical challenges across our site. See if you can decipher the missing digits in the Digit Detective Math Game or put your fast-paced arithmetic skills to the test with the Speed Math Game. No matter how you like to exercise your brain, we have an interactive puzzle ready and waiting for you.