Tower of Hanoi

The classic tower puzzle, playable right here — climb from 3 disks to 10 and match the 2ⁿ−1 minimum. Then try fourteen more brain puzzles built on real mathematical thinking. No download, no signup, a new daily challenge every day.

🗼 3–10 disks 🧠 Logic & planning 📅 Daily puzzles 100% free

Play Level 1

🔢 Moves: 0 🎯 Minimum possible: 7
Daily
🎯

Make the Number

Combine six numbers with + − × ÷ to hit today's target. The daily make-the-number puzzle.

Daily
🧭

Math Maze

Steer a running total through an operator maze and land on the exit at exactly the right value.

🧱

Make 10 Game

Drop number blocks into columns; any top run that makes exactly 10 clears. Chain for combos.

Daily
🔐

Cryptarithm

Crack today's cryptarithm: restore the hidden digits in a secret sum like SEND + MORE = MONEY.

⚖️

Balance Scale Puzzle

Balance the scale with number blocks. Many solutions work — can you find the fewest blocks?

Daily
➗

Killer Sudoku

Sudoku-style rows meet arithmetic cages — make every cage hit its + − × ÷ target.

Daily
↔️

Futoshiki

Fill the grid with 1 to N and honor every < and > sign. Pure deduction, no guessing.

Daily
🧮

Sumplete

Cross out numbers until every row and column sums to its target. Pure deduction.

Daily
👾

Picross

Use the number clues to fill the grid and reveal a hidden pixel picture.

🎈

Balloon Typing

Free typing games for grades 1–5: pop rising balloons by typing letters, words and simple sums.

Daily
👑

Queens Game

Place one queen in every row, column and color — a new daily queens puzzle, no login.

Daily
📏

Guess the Size

Estimate the real size of everyday objects — five a day, scored by how close you get.

Daily
🧇

Waffle Game

Swap letters to rebuild six hidden words — a new daily waffle puzzle, no login.

🗼

Tower of Hanoi

Move the tower between rods, one disk at a time. Climb from 3 to 10 disks and match the 2ⁿ−1 minimum.

Today's daily puzzles

Same puzzle for everyone, refreshed at midnight UTC. Share your result — no spoilers, just glory.

🔢 SudokuFill the grid 🎯 Make the NumberSix numbers, one target 🔐 CryptarithmCrack the code 🧭 Math MazeEscape the maze ➗ Killer SudokuFeed the cages ↔️ FutoshikiMind the signs 🧮 SumpleteMatch the sums 👾 PicrossReveal the picture 👑 QueensOne per color 📏 Guess the SizeFive objects a day 🧇 WaffleBake six words

Tower of Hanoi — the classic planning puzzle

The game above is the Tower of Hanoi, published by the French mathematician Édouard Lucas in 1883: rebuild the whole tower from rod A on rod C, moving one disk at a time and never resting a bigger disk on a smaller one. Tap a rod to lift its top disk, then tap another rod to drop it — keys 1 / 2 / 3 also pick rods. Each level adds a disk, from 3 up to 10. It runs right in the browser — Tower of Hanoi unblocked, nothing to install.

The 2ⁿ−1 minimum-move formula

For n disks the fewest possible moves is exactly 2ⁿ − 1 — seven moves for three disks, 1,023 for ten. The practical trick: move the smallest disk around the rods in a fixed cycle and take the only other legal move in between. Match the minimum for three stars.

The game above has eight levels, and the minimum of each is the level's disk count squared-minus-one in action:

LevelDisksMinimum moves (2ⁿ−1)Time at one move per second
1377 seconds
241515 seconds
353131 seconds
46631 minute 3 seconds
57127about 2 minutes
68255about 4½ minutes
79511about 8½ minutes
8101,023about 17 minutes

Notice what each extra disk does to the table: the move count doesn't just grow, it doubles plus one. That compounding is why a level you beat in thirty seconds suddenly asks for two minutes — and why ten disks is genuinely hard.

The recursive solution

Think recursively: park the top n − 1 disks on the spare rod, move the biggest disk to its destination, then rebuild the n − 1 disks on top of it. Repeat the same three steps for the smaller tower, and the full move list writes itself — that recursion is exactly why the count comes out to 2ⁿ − 1.

The 1883 legend

Lucas marketed his puzzle with a legend: in a temple in Benares, priests move 64 golden disks between three diamond needles, one per second, and the world ends the moment the tower is rebuilt. By the 2ⁿ − 1 formula that takes 2⁶⁴ − 1 moves — about 585 billion years. Ten disks here is challenging enough.

Reve's puzzle: Tower of Hanoi with four pegs

Add a fourth rod and the puzzle changes character. This variant was published by Henry Dudeney in The Canterbury Puzzles (1908) as The Reve's Puzzle — a Chaucer-style story about moving a stack of cheeses between four stools (his original asks for eight cheeses, doable in 33 moves) — and it remains the standard name for Tower of Hanoi with four pegs. The spare rod drops the move count dramatically:

Disks3 pegs (2ⁿ−1)4 pegs (Frame–Stewart)
375
4159
53113
66317
712725
825533
951141
101,02349

The best known strategy is the Frame–Stewart algorithm (proposed in 1941): pick a split point, park the top part of the tower on the fourth peg using all four rods, move the remaining base disks as an ordinary three-peg tower, then rebuild the parked part on top — and choosing that split point well is the whole trick. Remarkably, it took until 2014 for mathematicians to prove that Frame–Stewart is truly optimal for four pegs. The four-rod version of the temple legend would take just 18,433 moves — about five hours at one move per second — instead of 585 billion years.

Why math thinking games?

Arithmetic drills make you faster at arithmetic. Math thinking games train something broader: decomposing problems, working backwards, planning several moves ahead, and testing hypotheses — the same skills you use in coding, engineering and everyday decision-making. Each game on HanoiStack is built around one of those skills: sudoku online and futoshiki are pure deduction, Make the Number and Math Maze force you to work backwards from a target, Sumplete and Picross reward systematic constraint-testing, and Cryptarithm turns algebra itself into the puzzle.

For classrooms and families

Every puzzle works on a phone, a tablet or a laptop, and every daily puzzle is the same for the whole class — perfect for a morning warm-up or a "puzzle of the day" board. The balance scale puzzle is designed for younger learners: no timers, no failure states, and multiple correct answers to reward creative thinking. For the rest of the warm-up hour, typing games for kids cover the keyboard side, the make 10 game turns number bonds into an arcade challenge, and killer sudoku-style cages stretch older students.

Free forever

No account, no download, no paywall. If a puzzle hooks you, share your result grid with a friend and see who solves it in fewer moves.

Frequently Asked Questions

Are all the games on HanoiStack free?

Yes — every game and every daily puzzle is completely free, with no ads mid-game, no accounts and no downloads. Open a page and play.

Do I need to sign up to play?

No. Nothing to register: your streaks, progress and best scores are stored locally in your own browser.

What is the daily puzzle?

Ten of the games publish a special puzzle each day at midnight UTC — the same one for everyone in the world. Solve it, then share your result and compare with friends or your class.

What age are these math games for?

Ages roughly 6 to adult. Make 10 Game and Balance Scale Puzzle are gentle enough for young kids, sudoku, killer sudoku and sumplete scale from easy to genuinely hard, and Tower of Hanoi is a classic for any age.