Drag to rotate · scroll to zoom
Tower of Hanoi Puzzle — Seven Discs and a Three-Peg Base — render 1
Tower of Hanoi Puzzle — Seven Discs and a Three-Peg Base — render 2
Tower of Hanoi Puzzle — Seven Discs and a Three-Peg Base — render 3
Tower of Hanoi Puzzle — Seven Discs and a Three-Peg Base — render 4
Free STL download

Tower of Hanoi Puzzle — Seven Discs and a Three-Peg Base

Move the whole tower to another peg, one disc at a time, never a larger disc on a smaller one — 127 moves if you never make a mistake.

No account, no email, no wait — the file downloads straight from this page.

About this model

The Tower of Hanoi is a puzzle with three rules and a surprisingly deep answer. A stack of discs sits on one of three pegs, largest at the bottom. The goal is to move the whole stack to another peg. You may move only one disc at a time, you may only take the top disc of a stack, and you may never put a larger disc on a smaller one. The French mathematician Édouard Lucas published the puzzle in 1883, together with a story about temple priests moving 64 golden discs; with that many discs the job would take 2^64 − 1 moves, far longer than any priest would live.

This set has seven discs, which is a good size for a desk: easy enough to solve in an afternoon, long enough that you have to think. The smallest possible number of moves for n discs is 2^n − 1, so seven discs take at least 127 moves. The pattern behind the solution is recursive. To move seven discs, first move the top six out of the way, then move the largest disc, then move the six back on top of it — and moving six discs works the same way with five. A handy shortcut for doing it by hand: on every odd-numbered move, move the smallest disc one peg along in the same direction each time; on every even move, make the only legal move that does not involve the smallest disc.

The discs range from 26 mm to 62 mm in 6 mm steps and are 8 mm thick, so the full tower is 56 mm tall. Each disc has a 10.4 mm hole that slides over the 9 mm pegs with 1.4 mm of play in diameter, enough for small hands and for discs that are not perfectly round after printing. The outer edges and both ends of the hole carry a 1.2 mm chamfer at 45 degrees. The chamfer at the bottom of the hole also clears the small fillet at the foot of each peg, so the lowest disc sits flat on the base. The base is 204 × 70 mm with rounded corners, and the pegs are 66 mm apart, so the largest disc on one peg never touches the second largest on the next.

Everything prints on one 204.0 × 186.0 mm plate: the base with its three pegs standing upright, and the seven discs lying flat in two rows in front of it. Nothing overhangs, so no supports are needed. The pegs are 62 mm tall above the base and 9 mm thick; they come out stiffer with three walls and a little slower outer-wall speed. If you can, print the discs in a rainbow of colours — the order of colours makes mistakes obvious and helps children check their moves.

The puzzle is a classic way to teach recursion, powers of two and planning ahead, but it also works as a quiet fidget on a desk. Start with three discs (seven moves), then four (fifteen), and add one disc at a time. The images on this page are computer renders of this STL: the starting tower, a position in the middle of a game, the print plate and a close-up of the discs. They are not photographs of a print.

Why it works

Seven graduated discs

26 to 62 mm in 6 mm steps, 8 mm thick, with chamfered edges and holes.

127-move puzzle

The minimum solution for seven discs is 2^7 − 1 = 127 moves; start with fewer discs to learn the pattern.

Loose, friendly fit

10.4 mm holes on 9 mm pegs leave 1.4 mm of play, so discs drop on easily.

Base and pegs in one piece

The pegs are part of the base — nothing to glue and nothing to lose.

One plate, no supports

Base with upright pegs plus seven flat discs on a 204.0 × 186.0 mm plate.

How to print it

MaterialPLA or PETG; discs in several colours, base in a neutral or wood-like colour
Layer height0.20 mm
SupportsNone. Print the base with the pegs standing up and the discs flat, as in the file.
  • Use three walls for the base so the 9 mm pegs are solid where they meet the slab.
  • If your printer struggles with thin tall parts, slow down the upper part of the pegs or print with a cooling fan at full speed.
  • Print a single disc first and try it on a peg if you print the base separately; the 1.4 mm play is generous on purpose.
  • The plate is 204 mm wide. On a smaller printer, print the base on its own and the discs in a second job.
  • Rainbow-coloured discs make the size order obvious and turn the puzzle into a good toy for younger children.

At a glance

Size
204.0 × 186.0 × 70.0 mm (print plate: base with pegs and 7 discs)
Base
204 × 70 × 8 mm, three pegs 9 mm thick and 62 mm tall, 66 mm apart
Discs
7, diameters 26–62 mm in 6 mm steps, 8 mm thick, 10.4 mm hole
Tower height
56 mm (7 discs)
Minimum moves
127 (2^7 − 1)
Triangles
13,852
Print orientation
Base flat with pegs upright, discs flat, as in the file
Supports
Not required
Images
Computer renders of the STL, not photos of a print
Licence
Free for personal use

Want this personalised?

This model is a fixed design. If you need your own name, text or dimensions on something, the LyraMaker generators build it in your browser for free — no account, no watermark and no limit on downloads.

Open the free generators

Questions

What is the fastest solution?

127 moves for seven discs. In general n discs need 2^n − 1 moves: 7 for three discs, 15 for four, 31 for five, and so on.

Is there a simple rule to solve it?

Yes. On odd-numbered moves, move the smallest disc one peg along, always in the same direction. On even moves, make the only legal move that does not use the smallest disc. Repeat until the tower has moved.

Do I need supports?

No. The pegs stand straight up from the base and end in a short cone, and the discs lie flat.

Can I add more discs?

The pegs are 62 mm tall above the base, so the seven 8 mm discs leave 6 mm of peg free. For an eighth disc you would need taller pegs and a wider spacing.

Are the pictures photos of a print?

No. They are computer renders of this STL, showing the starting tower, a game in progress and the print plate.

More models

See all models

Related topics

tower of hanoi hanoi puzzle logic puzzle brain teaser puzzle recursion math toy educational kids no supports free stl desk toy stem