Mathematics
The Pythagorean theorem
The famous rule linking the three sides of a right triangle, how to use it, where it really comes from, and why it is true.
Explore in 3D
Drag to turn the model all the way round; scroll or pinch to zoom. Keyboard: select the model, then use the arrow keys to turn, + and − to zoom, and R to reset.
a² + b² = 9 + 16 = 25 = c² → c = 5
Parts
Choose a part, in the list or on the model, to learn what it is.
Exact geometry: lengths and areas are calculated live from the side lengths you choose.
Beginner level
Right triangles
A right triangle has one corner that is a right angle: a square corner of 90°, like the corner of a book. The side opposite the right angle is called the hypotenuse [1]. The other two sides are called the legs.
The rule
If the legs have lengths and , and the hypotenuse has length , then [1]:
In words: draw a square on each side of the triangle. The areas of the two small squares always add up to the area of the big square.
Try it: 3, 4, 5
A triangle with legs 3 and 4 has a hypotenuse of 5, because [1]:
Using the rule
A ladder leans against a wall. Its foot is 6 m from the wall, and it reaches 8 m up. The wall and the ground meet at a right angle, so the ladder is the hypotenuse:
The ladder is 10 m long.
Intermediate level
Finding a missing leg
Rearrange the rule to find a leg when you know the hypotenuse:
Example. The hypotenuse is 13 and one leg is 5:
Because and both and are positive, is bigger than either of them. So the hypotenuse is always the longest side.
Distance between two points
On a grid, the straight-line distance between and is the hypotenuse of a right triangle. Its legs are the horizontal gap and the vertical gap :
Example. From to , the gaps are and , so .
Older than Pythagoras
The theorem carries the name of the Greek thinker Pythagoras (c. 570–500/490 BCE), but people knew it long before him [1]:
- Babylonian clay tablets from about 1900–1600 BCE list whole-number triples that fit the rule, now called Pythagorean triples (3, 4, 5 is the simplest example of one). They also include a very accurate value of .
- The Baudhayana Sulba-sutra of India, written between 800 and 400 BCE, also states it.
- In Greece, it became Proposition 47 of Book I of Euclid's Elements [2]: "In right-angled triangles the square on the side opposite the right angle equals the sum of the squares on the sides containing the right angle."
Advanced level
A proof by rearranging triangles
Here is a proof that may be the original one [1]. Take four copies of a right triangle with legs , and hypotenuse . Arrange them inside a large square of side so that their hypotenuses form a tilted square in the middle.
Count the area of the large square in two ways.
As one square:
As four triangles plus the tilted square:
The two expressions describe the same area, so:
One detail must be checked: the middle shape really is a square. Each of its corners sits between the two acute angles of two triangles on a straight edge. The angles of a triangle add up to 180° and one of them is 90°, so the two acute angles add up to 90°. That leaves exactly for each corner of the middle shape [1].
Into three dimensions
Apply the theorem twice to find the diagonal of a box with edges , and .
First, the diagonal of the floor: . That diagonal and the height form a new right triangle, so:
Example. A box measuring 3 by 4 by 12 has a diagonal of .
Only for right triangles
The rule needs the right angle. In an equilateral triangle with all sides 1, , but . The equation fails, because no angle is 90°.
Sources
- [1]Pythagorean theorem (external site)
Encyclopaedia Britannica · link checked November 25, 2026
- [2]Euclid's Elements, Book I, Proposition 47 (external site)
David E. Joyce, Clark University · link checked November 25, 2026