Squaring the Square: How 21 Different-Sized Squares Fit Into One
One Square, 21 Unequal Pieces
Yes—a square can be filled completely with 21 smaller squares, every one a different size, without gaps or overlaps. Dutch mathematician A. J. W. Duijvestijn discovered the celebrated arrangement in 1978. Even more remarkably, 21 is the fewest pieces possible for a square divided into unequal smaller squares.
Imagine a tile puzzle with no repeated pieces. There are large squares, medium squares, and tiny squares that look almost like afterthoughts. Yet every edge fits exactly.
This is squaring the square: a challenge whose rules take seconds to understand, but whose solution connects geometry, electrical circuits, and computer-assisted mathematics.
What Makes a Squared Square “Perfect”?
Dividing a square into smaller squares is easy if repeated sizes are allowed. Draw one horizontal line and one vertical line through the center, and you have four identical squares.
The challenge changes dramatically when no two smaller squares may have the same side length. Mathematicians call a dissection meeting that condition a perfect squared square. The word “perfect” describes the unequal sizes—not symmetry or artistic neatness.
Three terms help explain the achievement:
- Order: the number of smaller squares. Duijvestijn’s arrangement has order 21.
- Perfect: every smaller square has a different size.
- Simple: no group of two or more component squares forms a smaller rectangle within the outer square. The whole arrangement is excluded from this restriction.
That last label is wonderfully misleading. A “simple” squared square is not necessarily easy to discover or assemble. It means the design cannot be separated into a smaller rectangular subpuzzle.
Meet the 112-by-112 Square
Duijvestijn’s arrangement fits inside a square measuring 112 units on each side. Its 21 component squares have these side lengths:
2, 4, 6, 7, 8, 9, 11, 15, 16, 17, 18, 19, 24, 25, 27, 29, 33, 35, 37, 42, and 50.
The complete labeled arrangement appears in Duijvestijn’s original 1978 paper. The numbers label side lengths, not areas.
The largest piece therefore has an area of 50 × 50 = 2,500 square units. The smallest has an area of just 2 × 2 = 4 square units. One is 625 times the area of the other.
That enormous difference helps explain the design’s visual appeal. The tiny squares are not decorative fillers: they are necessary parts of an exact arrangement.
You can check the total area by squaring every number in the list and adding the results:
[ 2^2+4^2+6^2+\cdots+42^2+50^2=12{,}544=112^2. ]
But this is only the first test. Having the correct total area does not prove that pieces fit together. A successful solution must also demonstrate their positions, with every boundary matching and no overlaps.
How the Pieces Actually Fit
Start by looking around the perimeter rather than diving into the crowded center.
Across the top edge, the squares have side lengths 50, 35, and 27:
[ 50+35+27=112. ]
Across the bottom edge, they measure 33, 37, and 42:
[ 33+37+42=112. ]
Along the left edge, the sizes are 50, 29, and 33. Along the right edge, they are 27, 19, 24, and 42. Both totals are also 112. These relationships can be traced directly in the original diagram.
The interior is more interesting than a set of straight rows. Because the three top squares have different heights, their lower edges form steps.
Consider the 35-unit and 27-unit squares. Their bottoms differ in height by eight units. In the actual arrangement, an 8-unit square sits immediately beneath the left portion of the 27-unit square, bringing that small section down to the same level as the bottom of the 35-unit square. A 19-unit square sits beside it, since 8 + 19 = 27.
This is the central idea: local lengths must agree everywhere. One placement creates a ledge, another fills part of it, and each decision constrains the remaining space.
The Discovery That Set the Minimum
Duijvestijn found his 21-square dissection on the night of March 22, 1978, using a DEC-10 computer at what is now the University of Twente in the Netherlands. His paper announced both the construction and its status as the lowest-order simple perfect squared square.
The computer did not simply shuffle paper-shaped pieces until something worked. At the heart of his software was a method for generating mathematical networks called three-connected planar graphs, together with techniques for eliminating duplicate cases.
There are two distinct achievements here:
- Finding an example: showing that 21 unequal squares really can fit.
- Establishing the minimum: ruling out every possibility with fewer pieces.
The second is much harder to appreciate from a finished picture. A diagram can demonstrate success, but it cannot, by itself, explain why every smaller piece count fails.
The University of Twente’s account also notes that every 21-piece tiling of this kind is equivalent to Duijvestijn’s arrangement. Turning the design, reflecting it, or changing its overall scale does not produce a fundamentally new solution.
Why Electrical Circuits Help Solve a Geometry Puzzle
The most surprising part of this story may be that squares can be studied as electrical networks.
During the 1930s, Cambridge students R. L. Brooks, C. A. B. Smith, A. H. Stone, and W. T. Tutte developed this connection. In Tutte’s account of their investigation, a diagram introduced by Smith became the bridge between square dissections and circuit theory.
Here is the simplified version:
- Horizontal boundary segments become connection points in a network.
- Each smaller square becomes a resistor connecting its upper and lower boundaries.
- The square’s height represents a voltage difference.
- Its width represents an electrical current.
Ohm’s law relates voltage, current, and resistance. Give every resistor a resistance of one unit, and voltage and current have equal numerical values. In the geometric interpretation, that means height equals width—the defining property of a square.
The rules governing current at connections also express the way widths must balance along horizontal boundaries. Geometry becomes a system of equations that can be calculated and searched.
For another example of a drawing puzzle revealing a hidden network, explore Puzzles Arcade’s explanation of the three utilities puzzle.
What “Smallest” Really Means
Duijvestijn’s achievement is about the fewest pieces, not the smallest physical object.
You could reproduce the arrangement on paper, enlarge it into a floor mosaic, or draw it on a screen. Scaling all lengths by the same factor preserves the fit.
There is also a separate mathematical question: when the side lengths are whole numbers, how short can the outer square’s side be? That record is 110 units, achieved by arrangements using more than 21 squares. So “fewest squares” and “smallest integer-sided outline” are different goals. Wolfram MathWorld’s overview of perfect square dissections distinguishes these records.
Try Building the Feat Yourself
You do not need advanced mathematics to appreciate the construction with your hands.
Use the labeled diagram as a reference, and turn the solution into a craft puzzle:
- Choose a scale. At two millimeters per unit, the outer square measures 224 millimeters, or 22.4 centimeters, on each side.
- Draw and label the pieces. Use the 21 side lengths listed above.
- Cut carefully. Younger puzzlers should ask an adult for help.
- Try assembling the perimeter first. Use the four boundary sums as clues.
- Consult the solution in stages. Reveal one region at a time rather than abandoning the challenge.
If you prefer a pencil-only challenge, draw the outer square and reconstruct the pattern from the reference. Ask why each small piece has its particular size.
For another challenge where a simple board conceals a network of possibilities, try the knight’s tour.
A Beautiful Answer to a Simple Question
The appeal of squaring the square is immediate: 21 unequal pieces somehow make one flawless whole.
Its deeper achievement is the reasoning behind that picture. A playful geometric question led to electrical analogies, graph theory, and a computer-assisted search that established a precise limit.
You can admire the finished arrangement without solving an equation. But trace a few edges, add a few lengths, or build the pieces yourself, and the apparent magic becomes something even more satisfying: a pattern you can begin to understand.

