Formula and Method for the Missing Side of a Right Triangle
A right triangle has one 90° angle. The two shorter sides that form that angle are called the legs (a and b), and the side opposite the right angle — always the longest side — is the hypotenuse (c). The Pythagorean theorem ties them together: a² + b² = c². Given any two of the three sides, this calculator solves for the missing one and also reports the triangle's perimeter and area.
How the calculation works
Enter two of the three side lengths and leave the unknown one blank. If the hypotenuse is missing, the calculator adds the squares of the two legs and takes the square root: c = √(a² + b²). If a leg is missing, it rearranges the theorem instead: a = √(c² − b²), or b = √(c² − a²). Because a leg must be shorter than the hypotenuse, the hypotenuse you enter always has to be larger than the known leg — otherwise the value under the square root would be negative, which isn't a real length. If you enter all three sides, the calculator checks that a² + b² = c² holds before reporting the perimeter and area, so you can confirm the triangle really has a right angle.
Common mistakes
- Mixing up the hypotenuse: the hypotenuse is always the longest side and always sits opposite the 90° angle — never enter it into the "Side a" or "Side b" leg fields.
- Subtracting the wrong way: when solving for a leg, you subtract the known leg's square from the hypotenuse's square (c² − b²), not the other way around — the hypotenuse is always larger.
- Mixing units: keep every side length in the same unit (all feet, all meters, etc.) before entering values; convert first if your measurements come in different units.
Real-world applications
- Construction and carpentry use the 3-4-5 rule (or this calculator) to square up corners, framing, and foundations.
- Roofing and ramp design use leg-and-hypotenuse relationships to size rafters, braces, and slope lengths.
- Navigation and surveying use right-triangle side relationships to find straight-line distances between two perpendicular offsets.
- Ladder and safety placement rely on the same math to check that a ladder's length, wall height, and base distance are consistent.