The Pythagorean theorem relates the three side lengths of a right triangle. If and are the legs meeting at the right angle and is the hypotenuse opposite that angle, then
The placement of the right angle, not the orientation of the drawing, tells you which side is . The hypotenuse is also the longest side. Calling a sloping segment the hypotenuse without first identifying a right angle is not enough.
On this page
The theorem is an area relationship
A square of side length has area . The equation says that the areas of the squares on the legs add to the area of the square on the hypotenuse. It does not say that the leg lengths themselves add to the hypotenuse.
For a –– right triangle, the areas are , and square units. The relation is , not .
Four equal triangles leave a central square
Diagram explanation and exact data
The drawing uses a=3, b=4 and c=5. The central angles are right angles because the acute angles of each right triangle are complementary. The area argument in the text uses general positive a and b, not just these chosen lengths.
| Region | Example area |
|---|---|
| Outer square | |
| Four triangles | |
| Central square |
An alternative dissection moves pieces of the two leg-squares directly into the hypotenuse-square. The next illustration shows that different arrangement; it is not the four-triangle layout used in the algebra above.
The leg-squares reassembled
Diagram explanation and source
The unfilled triangle between the three squares is right-angled. Each coloured polygon from a leg-square has a matching piece in the lower square. Moving a piece rigidly does not change its area. The square outlines, piece boundaries and the accompanying equation explain the area relationship independently of colour. The general four-triangle proof below supplies the algebraic argument.
Source: Pythagorean theorem rearrangement.svg, Brews ohare (original); Gauravjuvekar (SVG derivative). Licensed under CC BY-SA 3.0. Artwork paths and colours unchanged; XML declaration and external DTD omitted. The inline adaptation retains the same licence.
An area proof
Arrange four copies of a right triangle with legs around a central square inside a larger square of side . Each central side is a hypotenuse of length . The two acute angles of a right triangle add to , which makes every corner of the central region a right angle. It is therefore a square, not just a four-sided gap.
Calculate the large area in two ways:
Expanding and subtracting the triangular areas gives
This argument works for arbitrary positive leg lengths. The particular diagram helps explain it; the algebra supplies the general relationship. Euclid I.47 provides a different geometric proof.
Finding the hypotenuse
A right triangle has legs and . Substitute those lengths before taking a square root:
Only the positive square root represents a side length. The negative solution to the algebraic equation does not represent another physical length.
If the legs are and , the exact answer is
Keep during later calculations. Rounding it early can introduce avoidable error.
Finding a missing leg
If the hypotenuse is known, subtract the known leg’s square from the hypotenuse’s square. A hypotenuse and a leg give
A common error is to calculate . That treats the known hypotenuse as a leg and produces a new length larger than it, contradicting the geometry.
An idealized ladder of length resting against a vertical wall with its foot from the wall reaches
This calculation assumes a right angle between wall and ground and measures the ladder as a straight segment. It is a geometric model, not guidance on safe ladder placement.
The converse: checking whether an angle is right
The theorem begins with a right triangle and concludes a side equation. Its converse begins with positive side lengths that form a triangle. If the square of the longest side equals the sum of the other two squares, the angle opposite that longest side is right.
For sides , and ,
The triangle is right-angled. For , and , the triangle inequality holds, but . The largest angle is obtuse. For , and , , so the largest angle is acute and the triangle is acute. These comparisons follow more generally from the cosine rule.
The equality test is exact. Rounded measurements that nearly satisfy it support an approximate assessment, not an exact theorem about the underlying object.
Diagonals and coordinates
A rectangle’s diagonal is a hypotenuse because adjacent sides meet at right angles. A rectangle by has diagonal .
Coordinate differences provide perpendicular legs as well. Between and , the horizontal difference is and the vertical difference is , so the straight-line distance is coordinate units. Distance Between Two Points derives the general distance formula from this construction.
In a rectangular box with mutually perpendicular edges , and , apply the theorem twice. A base diagonal has square . The space diagonal therefore has square and length . This works because the height is perpendicular to the base plane.
What the theorem does not allow
For a non-right triangle, is not the general side relation. Nor can the theorem be applied to three convenient lengths in a diagram without showing that they are sides of the same right triangle.
Squaring a sum is another frequent trap: , not . The proof above uses the middle term deliberately; omitting it would destroy the area argument.
Before calculating, identify the right angle, label the opposite side, confirm common units and decide whether a sum or difference of squares is needed. After calculating, check that every leg is shorter than the hypotenuse.
Practice questions
- Find the hypotenuse when the legs are and .
- Find the other leg when the hypotenuse is and one leg is .
- Do sides , and form a right triangle?
Check your answers
- .
- The missing leg is . Adding the squares would wrongly treat the hypotenuse as a leg.
- Yes. The lengths form a triangle and . The angle opposite the side of length is right.
Related topics
Use Distance Between Two Points for coordinate distances and Trigonometric Ratios when a right-triangle problem also involves acute angles. Proof in Geometry explains the difference between a theorem and its converse.
Sources and further reading
- Euclid, Elements I.47: the Pythagorean theorem.
- Euclid, Elements I.48: the converse.
- OpenStax, Prealgebra 2e, angles, triangles and the Pythagorean theorem: introductory applications.
