Right Triangle Hypotenuse Calculator
Enter first leg, second leg to find hypotenuse. c = √(a² + b²).
The shape behind the formula
Schematic diagram; proportions are not to scale. Use the formula and current values below for the numerical result.
What a right-angle assumption buys you
The Pythagorean result uses two perpendicular legs. It is useful for checking a diagonal, but only if the measured sides really meet at a right angle.
Work through the example
- Square both known leg lengths.
- Add the squares: with legs 3 and 4, the total is 9 + 16 = 25.
- Take the positive square root to get a hypotenuse of 5 in the same length unit.
Three pairs of perpendicular legs
How to read this
Doubling both legs doubles the diagonal rather than quadrupling it: 3–4–5 becomes 6–8–10. This makes scale drawings easy to check.
Common mistake
A sketch that looks approximately square is not proof of a 90° corner. For a non-right triangle, these leg values do not determine the opposite side by this formula.
About this calculation
Triangle formulas depend on what is known: base and perpendicular height, all three sides, or the legs of a right triangle. Use this right triangle hypotenuse calculator to find hypotenuse from first leg, second leg.
Formula
c = √(a² + b²)
Worked example
With First leg: 3 units, Second leg: 4 units, hypotenuse is 5 units.
How to calculate hypotenuse
The rule is c = √(a² + b²).
The Pythagorean theorem squares the two perpendicular legs, adds them, then takes the square root. The hypotenuse is always the longest side.
In the right triangle hypotenuse example, first leg 3 units produces hypotenuse 5 units. Entering 4 units instead produces 5.656854 units.
Reading hypotenuse
A triangle’s area is half the corresponding base-times-height rectangle. In a right triangle, the hypotenuse is opposite the right angle and is the longest side. With first leg 3 units, second leg 4 units, the calculator returns hypotenuse 5 units.
Practical use
Use these formulas for surveying, drawings, roof geometry, and checking right-angle layouts. Find the straight diagonal across two perpendicular measured legs.
Limits and common mistakes
The height must be perpendicular to the selected base. Three side lengths must satisfy the triangle inequality to form a real triangle. Verify first leg in units before interpreting hypotenuse.
Why the relationship works
The Pythagorean relationship applies only when the two legs meet at a right angle. Adding their squares gives the square of the hypotenuse; subtracting a known leg’s square from the hypotenuse squared recovers the other leg. This operation involves lengths, so take the appropriate square root at the end. The right triangle hypotenuse rule uses first leg (units), second leg (units) in c = √(a² + b²); read each symbol as the field named on this page.
Interpreting another set of values
For right triangle hypotenuse, the fields labeled first leg (units), second leg (units) are the known quantities. The calculator solves for hypotenuse in units using c = √(a² + b²). The hypotenuse lies opposite the right angle and must be the longest side of a nondegenerate right triangle. When comparing two calculations, keep their units and input definitions identical.
For a second right triangle hypotenuse check, keep the other default inputs fixed and change first leg from 3 units to 5 units. Hypotenuse changes from 5 units to 6.403124 units. Holding the other fields fixed isolates the effect of first leg for this input step. Use the formula to check how a different step would affect the answer.
Checks and limits
The legs must meet at a right angle, and the hypotenuse must be longer than either leg. When finding a missing leg, a known leg longer than the hypotenuse cannot describe a right triangle. All lengths should use the same unit. The reported hypotenuse is 5 units in the worked example. Keep its stated unit or counting convention when checking it against another calculation.
Inputs
- First leg (units)
- Second leg (units)