Enter any two sides of a right triangle to find the missing side. The calculator solves for the hypotenuse or either leg and shows each step of the working.
Leave the side you want to find blank. Use any consistent unit (cm, m, ft, in).
The Pythagorean theorem, a2 + b2 = c2, is one of the few pieces of school geometry that shows up constantly outside school. A mover checks whether a couch fits diagonally through a doorway using exactly this formula. A framer squares a wall by measuring 3 feet along one edge, 4 feet along the other, and confirming the diagonal is 5 feet. A TV size in inches is measured along its diagonal, which is the hypotenuse of the right triangle formed by the screen's height and width.
The hypotenuse is always opposite the right angle and is the longest side. Rearranging the formula lets you solve for any side:
The 3-4-5 triangle is the most common Pythagorean triple. Here is how to confirm it from scratch.
A right triangle with legs 3 and 4 always has a hypotenuse of 5, no matter the unit. Scale it up: a = 6, b = 8 gives c = 10.
For the history and proof of the theorem, see Wolfram MathWorld's page on the Pythagorean theorem.
Pythagorean triples are sets of whole numbers that satisfy a^2 + b^2 = c^2. The most useful ones to memorize:
| a | b | c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
The theorem only applies to right triangles, so it cannot be used directly on an acute or obtuse triangle without first checking for a 90-degree angle. Another frequent slip is subtracting the legs instead of the squares: a = sqrt(c^2 - b^2) requires squaring first and subtracting second, not the reverse. Watch the units too; mixing feet and inches in the same calculation will square the error along with the numbers.
A right triangle with an angle instead of two sides needs a slightly different setup.
Square both known sides, then add or subtract. To find the hypotenuse c, use c = sqrt(a^2 + b^2). To find a missing leg a, use a = sqrt(c^2 - b^2). The calculator handles all three cases automatically.
The formula is a^2 + b^2 = c^2, where a and b are the two shorter sides (legs) of a right triangle, and c is the longest side (hypotenuse) opposite the right angle.
Yes. Enter any two sides and this calculator solves for the third. It shows the substituted formula and each arithmetic step so you can follow the working.
If you know the hypotenuse c and one leg b, the missing leg a = sqrt(c^2 - b^2). For example, with c = 13 and b = 5: a = sqrt(169 - 25) = sqrt(144) = 12.