Math · 61 calculators
Pythagorean Theorem Calculator
For right triangles, the squares of the two shorter sides add exactly to the square of the longest. That single relation turns any two known sides into the third.
Last updated
Hypotenuse from legs a and b
5
- Missing leg from leg a and the hypotenuse
- 4
- Area of the triangle
- 6
- Perimeter of the triangle
- 12
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
c^2 = a^2 + b^2, so c = sqrt(a^2 + b^2)
- a, b
- The two legs meeting at the right angle
- c
- Hypotenuse — the side opposite the right angle, and always the longest
- a^2 + b^2
- Squared lengths whose sum equals the squared hypotenuse
How to check the result by hand
- 1
Confirm there is a right angle
The theorem applies only to right triangles. If the known sides do not meet at ninety degrees, stop and use the law of cosines instead.
- 2
Put both known lengths in the same unit
Convert before squaring. Summing squares of measurements in different units produces a number with no physical meaning.
- 3
Identify whether you are missing the hypotenuse or a leg
Missing the longest side means add the squares; missing a shorter side means subtract. Getting this backwards is the single most frequent error.
- 4
Compute and take the square root
Here 3^2 + 4^2 = 9 + 16 = 25, so the hypotenuse is 5. The square root returns you to the original unit rather than squared units.
- 5
Sanity-check against the longest known side
A computed hypotenuse must exceed both legs; a computed leg must be shorter than the hypotenuse. If not, you added where you should have subtracted.
Common Questions
How does the Pythagorean Theorem Calculator work?
Square both known legs, add them, then take the square root. Legs of 3 and 4 give 9 + 16 = 25 and a hypotenuse of 5. For a missing leg instead, rearrange to a = sqrt(c^2 - b^2), which subtracts rather than adds — a hypotenuse of 13 with one leg of 5 leaves sqrt(169 - 25) = 12. The method works only when there is a right angle between the two known sides; otherwise you need the more general law of cosines.
What do I need to enter in the Pythagorean Theorem Calculator?
It takes 3 inputs: Leg a, Leg b, Hypotenuse, for finding a missing leg. Fields that expect a unit say so next to the label.
Where does Hypotenuse from legs a and b come from?
It comes from c = sqrt(a^2 + b^2) — square each leg, add, then take the square root. The result must exceed both inputs.
What is the most common mistake with the Pythagorean Theorem Calculator?
Adding when looking for a leg. Finding a shorter side requires subtraction: a = sqrt(c^2 - b^2). Adding produces a value longer than the hypotenuse, which is immediately impossible.
For worked examples, common mistakes and the limits of this formula, read the full How To Use The Pythagorean Theorem page.
