When to use Pythagorean Theorem Calculator
Find the third side of a right triangle from two known lengths. Use the diagram to identify the legs and the hypotenuse before entering your measurements.
Apply the calculation to a diagram, coordinate problem or measurement task with the same geometric assumptions.
How to use this tool
- Choose the calculation mode that matches your task and the information you have.
- Enter the inputs listed below. Follow the field format, and select units beside each supported quantity.
- Results update automatically. Review the main result and its breakdown. Use Clear to enter a new scenario.
- Leg a
- Leg b
- Hypotenuse c
- Known leg
How it works
Find the hypotenuse
Square the two legs that meet at 90°, add their squares, and take the square root. The result is the side opposite the right angle.
Find a leg
Subtract the squared known leg from the squared hypotenuse, then take the square root. The hypotenuse must be longer than the known leg.
Worked example
The examples below use fixed sample inputs. They explain the calculation and do not change when you edit the tool above.
Find the hypotenuse
- Leg a
- 3 m
- Leg b
- 4 m
- Result
- 5 m
Find a leg
- Hypotenuse c
- 5 m
- Known leg
- 3 m
- Result
- 4 m
Understanding the result and its limits
Choose the correct shape and dimensions. Area uses squared units and volume uses cubed units; neither is a length.
Frequently asked questions
Which side is the hypotenuse?
It is the side opposite the right angle and the longest of the three. For example, legs of 3 m and 4 m give a hypotenuse of 5 m. If you know the hypotenuse and one leg, choose Find a leg.
Methodology and references
Use the formulas and assumptions above when interpreting the example. Any practical estimate depends on the accuracy of the inputs.
- Further reading: OpenStax: basic geometry and measurement