Pythagorean Theorem Explorer
Solve for any missing side, see the classic visual proof with squares on each side, generate Pythagorean triples, and extend the theorem to three dimensions. All calculations run in your browser with step-by-step math.
Controls
Results
Reference Guide
The Pythagorean Theorem
In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides.
You can solve for any side. Given two sides and , the hypotenuse is . Given one leg and the hypotenuse, the other leg is .
Visual Proof with Squares
Draw a square on each side of a right triangle. The area of the square on the hypotenuse equals the combined area of the squares on the two legs.
For the classic 3-4-5 triangle, . This geometric interpretation is why the theorem works: it is fundamentally a statement about areas.
Pythagorean Triples
A Pythagorean triple is a set of three positive integers that satisfy . A triple is primitive if .
Euclid's formula generates all primitive triples when , , and is odd. Multiply by any positive integer to get derived triples.
3D Distance Formula
The Pythagorean theorem extends to three dimensions. The distance from the origin to uses the theorem twice.
First find the distance in the xy-plane: . Then combine with z: . Each step is one application of .