How a² + b² = c² solves right triangles
In a right triangle, the two shorter sides (the legs) and the longest side (the hypotenuse) always satisfy a² + b² = c². The right angle sits between the legs, and the hypotenuse is opposite it.
If you know any two sides, you can solve for the third. Rearranged, the missing leg is a = √(c² − b²) or b = √(c² − a²). The theorem only applies to right triangles — for other triangles you need the law of cosines.
Beyond the missing side, this page reports area, perimeter, both acute angles, the altitude to the hypotenuse, and the inradius and circumradius of the triangle.
Right triangle formulas used on this page
← Swipe →| Quantity | Formula | Notes |
|---|---|---|
| Hypotenuse | c = √(a² + b²) | Use when both legs are known. |
| Missing leg a | a = √(c² − b²) | The hypotenuse must be longer than the known leg. |
| Missing leg b | b = √(c² − a²) | Same restriction: c > a. |
| Area | A = ½ × a × b | The legs are perpendicular, so they are base and height. |
| Perimeter | P = a + b + c | Sum of all three sides. |
| Angle A | A = arcsin(a ÷ c) | A + B = 90°, because C is the right angle. |
| Altitude to hypotenuse | h = (a × b) ÷ c | Height measured from the right angle to side c. |
| Inradius | r = (a + b − c) ÷ 2 | Radius of the circle tangent to all three sides. |
| Circumradius | R = c ÷ 2 | The hypotenuse is the diameter of the circumcircle. |
Pythagorean triples worth memorizing
← Swipe →| Triple | Legs a, b | Hypotenuse c | Common multiples |
|---|---|---|---|
| 3-4-5 | 3, 4 | 5 | 6-8-10, 9-12-15, 12-16-20 |
| 5-12-13 | 5, 12 | 13 | 10-24-26, 15-36-39 |
| 8-15-17 | 8, 15 | 17 | 16-30-34, 24-45-51 |
| 7-24-25 | 7, 24 | 25 | 14-48-50, 21-72-75 |
| 20-21-29 | 20, 21 | 29 | 40-42-58 |
| 9-40-41 | 9, 40 | 41 | 18-80-82 |
Worked calculation examples
Screen diagonal
A display panel measures 48 in wide and 27 in tall.
- 1.c² = 48² + 27² = 2,304 + 729 = 3,033
- 2.c = √3,033 = 55.0727 in
- 3.area = ½ × 48 × 27 = 648 in²
- 4.perimeter = 48 + 27 + 55.0727 = 130.0727 in
Squaring up a deck corner
A deck is 8 ft by 15 ft and you want to confirm the corner is square.
- 1.c² = 8² + 15² = 64 + 225 = 289
- 2.c = √289 = 17 ft
- 3.area = ½ × 8 × 15 = 60 ft²
- 4.angles: A = arcsin(8 ÷ 17) = 28.0725°, B = 61.9275°
Right triangle tips
The hypotenuse is always the longest side
If your computed c is not longer than both legs, check which side you typed in. A common slip is entering the hypotenuse in a leg field.
Keep units consistent
Square the numbers only after converting both sides to the same unit. Mixing inches and feet is the most common source of a wrong diagonal.
Watch the c > b condition
When solving for a leg, the hypotenuse must be strictly longer than the known leg. If it is not, no real right triangle exists.
Use a triple to avoid a calculator
On a job site, 3-4-5 (and its multiples) lets you square a corner with a tape measure and no arithmetic.
Not for every triangle
For a triangle without a 90° angle, use the law of cosines: c² = a² + b² − 2ab·cos(C).
Frequently asked questions
What is the Pythagorean theorem?+
For a right triangle, the square of the hypotenuse equals the sum of the squares of the legs: a² + b² = c². The hypotenuse c is the side opposite the right angle.
Can I use the theorem on any triangle?+
No. It only holds when one angle is exactly 90°. For oblique triangles use the law of cosines or the law of sines instead.
How do I find the hypotenuse?+
Square both legs, add the results, then take the square root: c = √(a² + b²). For legs 3 and 4, that is √25 = 5.
How do I find a missing leg?+
Rearrange the theorem: a = √(c² − b²). The hypotenuse must be longer than the known leg, otherwise the result is not a real length.
What is a Pythagorean triple?+
A set of three whole numbers that satisfy the theorem, such as 3-4-5 or 5-12-13. Any multiple of a triple is also a triple.
Why is the hypotenuse always the longest side?+
It is opposite the largest angle (90°). In any triangle, the longest side is opposite the largest angle, so the hypotenuse must exceed both legs.