# Pythagorean Theorem Calculator

> Find the hypotenuse or a missing leg of a right triangle with a² + b² = c², plus the area, perimeter and the two acute angles.

- Live calculator: https://opuscalculator.com/calculators/pythagorean-theorem-calculator/
- Category: Math
- Last updated: 2026-11-22

## Inputs

| Input | Default | Allowed |
| --- | --- | --- |
| Find | c | options: Hypotenuse c, Leg a, Leg b |
| Leg a | 6 | 0.000001 to 1000000000000 |
| Leg b | 8 | 0.000001 to 1000000000000 |
| Hypotenuse c | 10 | 0.000001 to 1000000000000 |

## Result with the default inputs

- Missing side: 10
- Area: 24
- Perimeter: 24
- Acute angles: 36.87° and 53.13°

## How it is calculated

a² + b² = c², with c the hypotenuse opposite the right angle. The legs are a and b. Area = ½ a b, and the angle opposite leg a is atan(a ÷ b).

Formula (LaTeX): `a^{2} + b^{2} = c^{2}`

## Worked example

Legs of 6 and 8: c = √(36 + 64) = 10. The area is 24, the perimeter 24, and the acute angles are 36.87° and 53.13°. Given c = 13 and b = 12, the other leg is √(169 − 144) = 5.

## Frequently asked questions

### Does it work for any triangle?

Only right triangles. For other triangles use the law of cosines or one of the triangle solvers.

### What are Pythagorean triples?

Sets of whole numbers that fit, such as 3, 4, 5 and 5, 12, 13 and 8, 15, 17.

### Why must the hypotenuse be the longest side?

It sits opposite the largest angle, 90°, so it is always longer than either leg.

## Sources

- [9.3 Use Properties of Angles, Triangles, and the Pythagorean Theorem (Prealgebra 2e)](https://openstax.org/books/prealgebra-2e/pages/9-3-use-properties-of-angles-triangles-and-the-pythagorean-theorem), OpenStax, Rice University, checked 2026-11-29. The theorem: in a right triangle the sum of the squares of the two legs equals the square of the hypotenuse (a^2 + b^2 = c^2), with the hypotenuse opposite the 90 degree angle. The page works an example that finds the hypotenuse; finding a leg is the same relation rearranged.

## Cite this page

- APA: Opus Calculator. (2026, November 22). Pythagorean Theorem Calculator [Online calculator]. https://opuscalculator.com/calculators/pythagorean-theorem-calculator/
- Plain: Pythagorean Theorem Calculator, Opus Calculator, https://opuscalculator.com/calculators/pythagorean-theorem-calculator/

Numbers on this page come from the same code as the live calculator, using exact decimal arithmetic. Source: Opus Calculator, https://opuscalculator.com/calculators/pythagorean-theorem-calculator/
