# Pythagorean Theorem Calculator

URL: https://hifreetools.com/calculators/pythagorean-theorem-calculator

> Solve a right triangle from any two sides using the Pythagorean theorem a² + b² = c². Enter two of the legs a, b and the hypotenuse c, and this calculator finds the missing side along with the triangle's area and perimeter.

## Quick answer

The Pythagorean theorem states that in a right triangle, a² + b² = c², where a and b are the two legs and c is the hypotenuse (the side opposite the right angle). To find the hypotenuse, compute c = √(a² + b²); to find a missing leg, compute a = √(c² − b²). For example, legs of 3 and 4 give a hypotenuse of √(9 + 16) = √25 = 5.

## Formula

- Hypotenuse: c = √(a² + b²)
- Missing leg: a = √(c² − b²)
- Area and perimeter: area = ½ · a · b · perimeter = a + b + c

## Examples

- Find the hypotenuse (3-4-5 triangle): Leg a = 3, leg b = 4 → c = 5, area = 6, perimeter = 12
- Find the hypotenuse (5-12-13 triangle): Leg a = 5, leg b = 12 → c = 13, area = 30, perimeter = 30
- Solve a missing leg from the hypotenuse: Hypotenuse c = 10, leg b = 6 → a = 8, area = 24, perimeter = 24
- Non-integer hypotenuse: Leg a = 1, leg b = 1 → c ≈ 1.41421

## FAQ

**What is the Pythagorean theorem?**
It states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². The hypotenuse c is the side opposite the 90° angle, and a and b are the two legs that form the right angle.

**How do I find the hypotenuse?**
Square both legs, add them, then take the square root: c = √(a² + b²). For legs of 6 and 8, that's √(36 + 64) = √100 = 10. The hypotenuse is always the longest side of a right triangle.

**How do I find a missing leg instead of the hypotenuse?**
Rearrange the formula to a = √(c² − b²). Square the hypotenuse, subtract the square of the known leg, then take the square root. This only gives a real answer when the hypotenuse is longer than the known leg.

**Does the Pythagorean theorem work for all triangles?**
No — it applies only to right triangles, which have one 90° angle. For acute or obtuse triangles you need the Law of Cosines: c² = a² + b² − 2ab·cos(C), which reduces to the Pythagorean theorem when angle C is 90°.

**What is a Pythagorean triple?**
A Pythagorean triple is a set of three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Any whole-number multiple of a triple (like 6-8-10) is also a valid right triangle.

**How do I calculate the area of a right triangle?**
Because the two legs are perpendicular, they serve as the base and height, so the area is ½ · a · b. For legs of 3 and 4, the area is ½ · 3 · 4 = 6 square units. You only need the two legs — not the hypotenuse — to find the area.


## Sources

- [Wikipedia — Pythagorean theorem](https://en.wikipedia.org/wiki/Pythagorean_theorem)
- [Wolfram MathWorld — Pythagorean Theorem](https://mathworld.wolfram.com/PythagoreanTheorem.html)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Pythagorean Theorem Calculator", https://hifreetools.com/calculators/pythagorean-theorem-calculator
