Math Calculators
Pythagorean Theorem Calculator
Updated
Pythagorean theorem calculator
Find a missing side of a right triangle using two known side lengths.
a and b are perpendicular legs. c is the hypotenuse opposite the right angle.
Use the same unit for both known sides; for example, 3 or 8.
Use a positive decimal length in the same unit; for example, 4.
Calculation assumptions
- *This calculator applies only to right triangles: the angle between legs a and b must be 90 degrees.
- *The hypotenuse c is always opposite the right angle and longer than either leg.
- *Both known side lengths must be positive decimals using the same length unit. The answer uses that unit.
- *Each input supports at most 64 characters and lengths between 0.000000000001 and 1,000,000,000,000. Results display up to 12 significant digits.
- *The calculation is numerical; near-degenerate and unsupported-precision inputs fail rather than showing misleading rounded results.
Enter your values and press Solve missing side.
Results and breakdowns will appear here after a valid calculation.
Pythagorean theorem and the missing-side formulas
A right triangle has two perpendicular legs, a and b, and a hypotenuse c opposite the 90-degree angle. The theorem is a² + b² = c².
To find the hypotenuse, calculate c = √(a² + b²). To find either leg, rearrange: a = √(c² − b²) or b = √(c² − a²). The hypotenuse must be strictly longer than the known leg.
This tool uses a numerically stable hypotenuse formula and a difference-of-squares identity for missing-leg calculations. Use a common length unit across both inputs.
Worked examples: 3–4–5 and a missing leg
Find c: if a = 3 and b = 4, then c = √(3² + 4²) = √25 = 5.
Find a: if b = 4 and c = 5, then a = √(5² − 4²) = √9 = 3.
Find b: if a = 8 and c = 10, then b = √(10² − 8²) = √36 = 6.
The answer is only valid if the triangle has a right angle. Triangle area and coordinate slope are different calculations.
Limits and common mistakes
- Do not enter a zero or negative length, or a known leg equal to or longer than the hypotenuse.
- Do not mix different measurement units. Convert both known sides to the same unit before calculating.
- A triangle without a right angle does not satisfy a² + b² = c² in this form.
- Use a complete positive decimal: signs, comma separators, exponential notation, and empty inputs are unsupported.
- Very large, tiny or nearly equal side lengths can exceed available floating-point precision; the tool reports these limits rather than silently returning zero.
Find a right triangle’s missing hypotenuse or leg from two known positive sides.
Transparency note
Accuracy and limitations
Calzivo tools are built for practical estimates, conversions, and checks. Some tools use standard formulas or simplified assumptions, and results can be affected by input accuracy, rounding, units, local rules, or changing official requirements.
Results depend on the values you enter and any simplified assumptions used by the tool. Verify important results before making decisions or submitting official information.
Reference check
Sources and references
These references provide background context for the topic. They do not replace official advice or documents for personal decisions.
- Pythagoras Theorem
Math Is Fun
How to Use This Tool
Use these steps to enter the right inputs and interpret the result correctly.
Select Find hypotenuse, Find leg a or Find leg b.
Enter the two known positive sides using the same length unit. For example, a = 3 and b = 4 finds c = 5.
Select Solve missing side to see the answer, formula and substituted values.
Use Reset to clear inputs and return to Find hypotenuse. Changing an input or mode clears any earlier answer.
