The Pythagorean Theorem Calculator computes the missing side length of a right triangle using the relationship between the legs and the hypotenuse. Enter two known values (with units) and the calculator returns the third side with clear steps and correct rounding.
This guide explains the theorem in plain language, shows how to choose which side is missing, and gives practical examples for real measurements.
What the Pythagorean Theorem Calculator Solves
The Pythagorean Theorem describes right triangles—triangles with a 90° angle. It connects the two perpendicular sides (often called legs) to the longest side (the hypotenuse).
In a right triangle:
- a and b are the legs (the sides that meet at 90°).
- c is the hypotenuse (the side opposite the 90° angle).
The Core Formula (No Memorizing Required)
The theorem is:
a² + b² = c²
A calculator rearranges the same relationship to solve for the missing side.
Solving for the hypotenuse (c)
If you know both legs, the hypotenuse is:
c = √(a² + b²)
Solving for a leg (a or b)
If you know the hypotenuse and one leg, the missing leg is:
a = √(c² − b²) or b = √(c² − a²)
Important: The value under the square root must be non-negative. If your inputs do not form a valid right triangle, the result is not real.
How to Use the Calculator Correctly
To get correct results, provide consistent measurements and choose which side you want to find.
- Select the missing side (Hypotenuse, Leg a, or Leg b).
- Enter the known values for the other two sides.
- Choose units (e.g., meters, feet, inches). The calculator converts to match the output units.
- Click Calculate to compute the missing side.
Common input rules
- Use positive numbers. Zero only makes sense in special cases and usually means a degenerate triangle.
- Use the same triangle for all inputs (don’t mix different measurements).
- If you choose a leg to solve for, ensure the known hypotenuse is larger than the known leg.
Units and Conversions (So Your Numbers Stay Honest)
The theorem works with any consistent unit system. The calculator lets you enter values in common units such as meters, centimeters, millimeters, feet, and inches.
Internally, it converts inputs to a single base unit (meters) before applying the formula, then converts the result to your selected output unit.
| Unit example | Where it’s useful |
|---|---|
| m, cm, mm | Construction plans, lab measurements, engineering |
| ft, in | Framing, carpentry, DIY projects, interior work |
Real-World Example 1: Framing a Right Angle
Suppose you’re building a corner where two boards meet at 90°. One board length is 3 ft and the other is 4 ft. The diagonal brace (hypotenuse) is what you need.
Use the theorem:
- a = 3 ft
- b = 4 ft
- c = √(3² + 4²) = √(9 + 16) = √25 = 5 ft
So the diagonal brace should be 5 ft. This is the classic 3-4-5 triangle and it shows why the theorem is so practical in construction.
Real-World Example 2: Measuring Distance Between Two Points
Imagine a point on a grid: you move 6 m east and 8 m north. The direct distance is the hypotenuse of a right triangle.
- a = 6 m
- b = 8 m
- c = √(6² + 8²) = √(36 + 64) = √100 = 10 m
The straight-line distance is 10 m. A Pythagorean Theorem Calculator saves time and reduces mistakes when you’re working with real measurements.
Common Mistakes to Avoid
- Using a non-right triangle: The theorem only applies when there is a 90° angle.
- Mixing up hypotenuse and legs: The hypotenuse is always the side opposite the 90° angle (the longest side).
- Trying to take the square root of a negative: If c² − a² or c² − b² is negative, the inputs are not consistent for a right triangle.
- Forgetting units: Even when math is unit-free, your numbers must be consistent. The calculator helps by converting units for you.
Frequently Asked Questions
What is a Pythagorean Theorem Calculator used for?
A Pythagorean Theorem Calculator finds the missing side length in a right triangle. You enter two known sides (legs and hypotenuse) and it computes the third using a² + b² = c². It also converts units so your measurements stay consistent.
How do I know which side is the hypotenuse?
The hypotenuse is the side opposite the 90° angle. It is always the longest side in a right triangle. If you’re unsure, identify the two sides that form the right angle; the remaining side is c.
Can I use the theorem for any triangle?
No. The Pythagorean Theorem only works for right triangles with a 90° angle. For other triangles, you need different formulas such as the Law of Cosines. Using it on a non-right triangle produces incorrect results.
What happens if c² − a² is negative?
If you’re solving for a leg, the calculator computes √(c² − a²). If the expression is negative, there is no real-number solution, meaning the inputs don’t match a valid right triangle. Check that the hypotenuse is larger than the leg.
Do the units matter?
Units do not change the math as long as all sides use the same unit type. A calculator can still be helpful because it converts between units like feet and meters. The final answer will be returned in the unit you select.



