How it works
Find the hypotenuse of a right triangle from its perpendicular legs. Both legs must use the same length unit.
Inputs and units
| Input | Example value | What to enter |
|---|---|---|
| First leg | 3 | Enter a numeric value. Must be greater than zero. |
| Second leg | 4 | Enter a numeric value. Must be greater than zero. |
Worked example
Show example inputs and results
This example is generated by the same calculation engine using the starting values in the form. Your own inputs produce your own result.
- First leg
- 3
- Second leg
- 4
Complete example results
- Hypotenuse length
- 5
Reading the result
Use quantities on the same basis. The starting value in percentage change, the denominator in a ratio and the length unit in geometry determine the meaning of the answer. Check the formula conditions alongside the example.
Enter the two sides that meet at the right angle
For perpendicular legs of 6 and 8, square them to obtain 36 and 64. Their sum is 100, and its square root gives a hypotenuse of 10. The hypotenuse is the side opposite the right angle. Entering it as one of the legs would describe a different triangle.
Scale the lengths consistently
Use the same length unit in both fields. Legs of 6 cm and 8 cm produce 10 cm; legs of 6 m and 8 m produce 10 m. Doubling both legs to 12 and 16 doubles the hypotenuse to 20. This relationship depends on a right angle and does not apply to arbitrary pairs of triangle sides.
Questions and answers
Can I use the example values for my own calculation?
The example values illustrate the calculation. Replace every input with your own information, especially dates, rates and the selected operation.
Why are some results rounded?
Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.
Are my inputs sent to a server?
The calculator processes inputs in your browser. Its code does not send your values to a server.