Find the hypotenuse
When both legs are known, add their squares and take the square root.
Example: if a = 3 and b = 4, then c = √(9 + 16) = √25 = 5.
Find the missing side of a right triangle in seconds. Calculate the hypotenuse or either perpendicular leg, see the formula substituted with your numbers, and follow the solution step by step.
Choose the side you want to find, enter the two known sides, and select your measurement unit. The calculator runs in your browser.
Enter the two known sides of a right triangle.
All lengths must be positive. When finding a leg, the hypotenuse must be longer than the known leg.
Side c is the hypotenuse and is always opposite the 90° angle. Sides a and b are the perpendicular legs. The diagram is illustrative and may not be drawn to exact scale.
The Pythagorean theorem describes the relationship between the three sides of a right triangle. It applies only when one angle is exactly 90 degrees.
In this equation, a and b are the two perpendicular legs, while c is the hypotenuse, the longest side of the right triangle.
When both legs are known, add their squares and take the square root.
Example: if a = 3 and b = 4, then c = √(9 + 16) = √25 = 5.
When the hypotenuse and leg b are known, subtract the known leg's square.
Example: if c = 13 and b = 5, then a = √(169 − 25) = √144 = 12.
The same subtraction method finds the other perpendicular leg.
Example: if c = 10 and a = 6, then b = √(100 − 36) = √64 = 8.
Imagine drawing a square outward from each side of a right triangle. The theorem says the area of the square on the hypotenuse equals the combined areas of the squares on the two legs.
These examples show how the formula works when finding each of the three sides.
Known sides: a = 3 cm and b = 4 cm.
Answer: 5 cm
Known sides: c = 13 m and b = 5 m.
Answer: 12 m
Known sides: c = 10 ft and a = 6 ft.
Answer: 8 ft
A rectangular floor is 9 m long and 12 m wide.
The diagonal divides the rectangle into two right triangles. Each triangle has the same diagonal as its hypotenuse.
A Pythagorean triple is a set of three positive whole numbers that satisfies a² + b² = c². These exact integer examples are useful for homework and for checking a calculator.
| Leg a | Leg b | Hypotenuse c | Verification | Try it |
|---|---|---|---|---|
| 3 | 4 | 5 | 9 + 16 = 25 | |
| 5 | 12 | 13 | 25 + 144 = 169 | |
| 8 | 15 | 17 | 64 + 225 = 289 | |
| 7 | 24 | 25 | 49 + 576 = 625 | |
| 20 | 21 | 29 | 400 + 441 = 841 | |
| 9 | 40 | 41 | 81 + 1600 = 1681 |
For positive integers m greater than n, one way to generate a triple is:
For example, m = 2 and n = 1 give a = 3, b = 4, and c = 5. Depending on the values chosen, this formula can generate primitive triples or multiples of smaller triples.
Builders can use the theorem to check square corners, estimate diagonal lengths, and calculate distances between perpendicular measurements.
A rectangle's diagonal creates a right triangle. Its length can be found from the rectangle's length and width.
For perpendicular movements on a flat coordinate grid, the theorem gives the straight-line distance between the starting and ending points.
The distance formula in a two-dimensional Cartesian plane follows directly from the Pythagorean theorem.
It states that the square of the hypotenuse of a right triangle equals the sum of the squares of its two legs. In symbols, a² + b² = c².
Square both perpendicular legs, add the squares, and take the square root. For legs of 3 and 4 units, the hypotenuse is √(9 + 16) = 5 units.
Square the hypotenuse, subtract the square of the known leg, and take the square root. For example, with hypotenuse 13 and leg 5, the missing leg is √(169 − 25) = 12.
It applies directly only to right triangles. For triangles without a right angle, the law of cosines is a more general relationship between the sides and angles.
The hypotenuse is the side opposite the right angle. It is always the longest side of a non-degenerate right triangle.
Convert both known measurements to the same unit before calculating. This calculator uses one selected unit for both inputs and all displayed length results.
Those measurements cannot describe a right triangle. The hypotenuse must be longer than either leg, and the square-root expression for the missing leg must be positive.
It is a set of three positive whole numbers satisfying the theorem, such as 3, 4, 5 or 5, 12, 13. Multiplying all three numbers in a triple by the same positive integer produces another triple.