Pythagorean Theorem Calculator
Fill in any two sides of a right triangle and we'll compute the third using the Pythagorean theorem (a² + b² = c²). Solves for either leg or the hypotenuse, with area thrown in.
Examples
Classic 3-4-5 triple — find the hypotenuse
Two legs of 3 and 4 give a hypotenuse of 5.
- Side a (leg)
- 3
- Side b (leg)
- 4
- Unit
- meters (m)
Missing side
5 m
Solving for
c (hypotenuse)
Area
6 m²
Embed this calculator
Copy a free iframe snippet for articles, learning pages, forums, wikis, newsletters, and internal docs.
How It Works
Formula
Variables, symbols and units
- Leg a (one of the two perpendicular sides)
- Leg b (the other perpendicular side)
- Hypotenuse (longest side, opposite the right angle)
- Triangle area (½ × leg × leg)
Calculation method explained
Enter any two of three sides — leave the third blank. The calculator detects which is missing and applies a²+b²=c² in the appropriate form. Area (½×leg×leg) comes free.
Examples
Classic 3-4-5 triple — find the hypotenuse3 · 4 → 5 m
Two legs of 3 and 4 give a hypotenuse of 5.
- Side a (leg)
- 3
- Side b (leg)
- 4
- Unit
- meters (m)
- Missing side
- 5 m
5-12-13 triple — solve for the missing leg5 · 13 → 12 m
A leg of 5 and a hypotenuse of 13 leaves the other leg as 12.
- Side a (leg)
- 5
- Side c (hypotenuse)
- 13
- Unit
- meters (m)
- Missing side
- 12 m
Ladder against a wall4 · 5 → 3 ft
5-foot ladder, base 4 ft from the wall — how high does it reach?
- Side b (leg)
- 4
- Side c (hypotenuse)
- 5
- Unit
- feet (ft)
- Missing side
- 3 ft
Frequently Asked Questions
What is the Pythagorean theorem?
The Pythagorean theorem states that in a right triangle the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the two legs: a² + b² = c². It only holds for right triangles.
Which side is the hypotenuse?
The hypotenuse is the longest side of a right triangle and always sits opposite the 90° angle. The other two sides — the legs — meet at the right angle. In our calculator, c is the hypotenuse and must be larger than either leg.
How is this different from the Triangle calculator?
The Triangle calculator is a general SSS solver — it needs all three sides and returns area, perimeter, and all three angles for any triangle. This Pythagoras calculator is specialised: it assumes a right triangle, takes any two sides, and fills in the third.
Can I find an angle?
Not directly here — this calculator focuses on the side. For angles in a right triangle use trigonometry (e.g. tan A = opposite / adjacent), or feed all three sides into the Triangle calculator.
Does this only work for right triangles?
Yes. The Pythagorean theorem applies only when one angle is exactly 90 degrees. For any other triangle, you need a different method such as the law of cosines or the law of sines.