b2KIT

Pythagorean Theorem Visualizer

Drag a right triangle and watch area squares animate on each side. Includes algebraic and geometric proofs.

Tested tool guide Tested browser tools Checked August 16, 2026

What Pythagorean Theorem Visualizer does, with a checked example

An interactive right triangle whose shape you change by dragging a vertex, with a square rising from each side and its area labeled as you move. Reshape the triangle and the equality a^2 + b^2 = c^2 becomes visible as area: the two smaller squares together exactly fill the largest square. The tool also steps through both the algebraic derivation and the geometric (Euclidean) proof. The thing users most often misread: the numbers on the squares are areas, not lengths, so a leg of 3 carries a square of 9.

Worked example

A concrete input and expected output from the current implementation.

Input

Drag the triangle until the two legs measure 3 and 4.

Expected output

The leg squares show areas 9 and 16, the hypotenuse reads 5 with square area 25, and 9 + 16 = 25 matches c^2 = a^2 + b^2.

3^2 = 9 and 4^2 = 16, and 9 + 16 = 25, whose square root is 5, so the hypotenuse must be 5. The displayed areas are exactly the three terms of the theorem.

How the result is produced

1

What happens while you drag

Dragging a vertex changes the two leg lengths, and every side length is squared to size its square and its area label: a side of length 4 carries a square of area 16. Because the figure is a right triangle, the theorem guarantees the hypotenuse square's area equals the sum of the other two.

2

How the two proofs work

The algebraic proof builds the big square of side (a + b) around the triangle and subtracts the four identical corner triangles, leaving c^2 = a^2 + b^2. The geometric proof is Euclid's: the two smaller squares are cut into pieces that reassemble, with no gaps or overlaps, into the hypotenuse square, demonstrating the equality by rearrangement instead of algebra.

Good uses

  • Checking a homework answer: set the legs to 6 and 8, read the hypotenuse as 10, and confirm the three squares show 36, 64, and 100 before writing anything down.
  • Watching the theorem as area when it is first taught: seeing the two small squares exactly fill the big one makes a^2 + b^2 = c^2 a visible fact, and the built-in proofs connect the picture to the algebra.
  • Squaring up a real-world layout: for a corner measured at 12 feet by 16 feet, the tool confirms the diagonal must be 20 feet, the classic 3-4-5 family scaled up by 4.

Limits and checks

  • Right triangles only. a^2 + b^2 = c^2 is false for acute and obtuse triangles, so the result is only meaningful when the 90-degree angle is real and the hypotenuse is the side opposite it.
  • Area is not length. The labels on the squares are square units: a 3-4-5 triangle displays 9, 16, and 25, and 25 is the area of the hypotenuse square, not a fifth side length.
  • The theorem does not run backward. Every leg pair has exactly one hypotenuse, but knowing c = 5 does not pin down the legs, since 3-4-5 shares that hypotenuse with other triangles, so do not use the tool to derive leg lengths from the hypotenuse alone.

Common questions

Why do the two smaller squares get cut up and reassembled inside the biggest square?

That is the geometric proof in motion: the pieces of the two leg squares fit together to cover the hypotenuse square exactly, with no gaps and no overlap, which is precisely what a^2 + b^2 = c^2 means as an equality of areas. The proof is complete because the rearrangement works for any right triangle, not just the shape you happen to have on screen.

Does the theorem work for any triangle, or only right ones?

Only right triangles. For any other triangle the correct statement is the law of cosines, c^2 = a^2 + b^2 - 2ab cos C, and the extra term is zero exactly when C is 90 degrees. So if your shape lacks a right angle, the simple a^2 + b^2 = c^2 equality does not hold, and this tool, which is built around right triangles, will not show it either.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools