Free tools & games for everyone
Free · No sign-up · No accounts
Cut shapes into pieces and watch them rearrange: triangle and parallelogram to rectangle, rectangle or any triangle to a square, and Pythagoras' squares.
| Tab | Move between the boxes, buttons and slider |
|---|---|
| Arrow keys on the slider | Move the pieces step by step |
Any two polygons with the same area can be cut into a finite number of pieces that rearrange from one into the other (the Wallace-Bolyai-Gerwien theorem, proved in the 1800s). The lab shows the classic steps of the proof: a triangle becomes a rectangle by cutting along the line halfway up and turning the two top corners down; a rectangle becomes a square with a sliding cut from one corner towards the point at the square’s height, as long as it is at most four times as long as it is wide.
For triangle to square, every piece of the first dissection is clipped against the cuts of the second, and the two motions are combined. The Pythagoras dissection cuts the square on the hypotenuse into three pieces that fill the squares on the two legs side by side.
The tests check, with a separately written Python point sampler, that the pieces cover the starting shape and the finished shape exactly once with no gaps or overlaps, that every piece only moves and turns, and that the areas match.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product