MATH • GEOMETRY
Pythagorean Theorem Calculator
Find the hypotenuse or a missing leg of a right triangle and see the calculation steps.
Find a missing side
Pythagorean theorem formula
For a right triangle, a² + b² = c², where c is the hypotenuse. If c is unknown, c = √(a² + b²). If one leg is unknown, a = √(c² − b²).
How to use the calculator
- Enter the two known sides.
- Leave c blank to calculate the hypotenuse.
- Or enter a valid hypotenuse to calculate the missing leg.
- Review the result and calculation steps.
Worked example
With legs 3 and 4, 3² + 4² = 9 + 16 = 25, so c = √25 = 5.
How to find a missing leg
If the hypotenuse and one leg are known, rearrange the theorem: the missing leg equals the square root of the hypotenuse squared minus the known leg squared. The hypotenuse must be longer than either leg.
Common uses
The theorem is useful in geometry, construction measurements, school mathematics and distance problems where two perpendicular sides form a right triangle.
Important limitation
This calculator assumes a right triangle. It does not solve general triangles; those require other geometry methods such as the law of sines or law of cosines.
Related calculators
Quadratic Equation Calculator · Linear Equation Calculator · Density Calculator · Average Calculator · Calculation Methodology · All Calculators
Pythagorean Theorem Calculator: Formula and Examples
The Pythagorean theorem relates the sides of a right-angled triangle. The two sides that meet at the right angle are the legs; the side opposite the right angle is the hypotenuse and is the longest side. This calculator can find a missing side when the other two are known and the triangle is truly right-angled.
Formula and calculation method
The theorem is a² + b² = c², where a and b are legs and c is the hypotenuse. Find the hypotenuse with c = √(a² + b²). Find a leg with a = √(c² − b²) or b = √(c² − a²). A real result requires c to be longer than either leg and the square-root expression to be non-negative.
How to use the calculator
- Identify which side is missing and whether the known values are legs or hypotenuse.
- Enter both known side lengths using the same unit.
- Calculate and read the missing side in that length unit.
- Check by verifying that a² + b² is approximately c².
Worked example
If a = 3 cm and b = 4 cm, c = √(9 + 16) = 5 cm. If c = 13 m and b = 5 m, a = √(169 − 25) = 12 m. A rectangular surface 6 m by 8 m has diagonal √(36 + 64) = 10 m. Keep units consistent because the theorem adds squared lengths.
Interpretation, assumptions and common mistakes
Do not apply the theorem to an arbitrary triangle unless it has a right angle. The hypotenuse is opposite the 90° angle, not whichever side is entered last. Rounding intermediate values can cause small differences. If measurements are uncertain, the calculated side is also an estimate. For non-right triangles, another relationship such as the cosine rule may be required.
Study tip: Draw the right-angle marker before labelling the hypotenuse; this prevents accidentally using the wrong side in the equation. Keep squared values in the working until the square root is taken, and round only at the end. When a problem comes from a diagram that is not drawn to scale, use the given numbers and stated right angle rather than estimating lengths from the picture. This makes the calculation easier to explain and verify.
Frequently asked questions
Which side is the hypotenuse?
The side opposite the 90-degree angle; it is the longest side.
Can the inputs use different units?
Convert them to the same length unit before calculating.
Does the theorem work for every triangle?
No. It applies specifically to right-angled triangles.