Pythagorean Theorem Calculator

Calculate any side of a right triangle using the Pythagorean theorem. Enter any two sides and get the third instantly, along with both angles, area, and perimeter.

c2  =  a2  +  b2
a b c 90° α β

What Is the Pythagorean Theorem?

The Pythagorean theorem is one of the most fundamental relationships in geometry. For any right triangle with legs a and b and hypotenuse c:

c² = a² + b²

The hypotenuse is the longest side — always opposite the 90° angle. If you know any two sides, you can find the third.

How to Find the Hypotenuse

Square both legs, add them, and take the square root:

c = √(a² + b²)

Example: Legs of 6 cm and 8 cm. c = √(36 + 64) = √100 = 10 cm

How to Find a Missing Leg

Rearrange the formula by subtracting the known square from the hypotenuse squared:

a = √(c² − b²)

Example: Hypotenuse 15 cm, one leg 9 cm. a = √(225 − 81) = √144 = 12 cm

Angles, Area, and Perimeter

Once you have all three sides the other measurements follow directly:

  • Angle α (opposite leg a): α = arctan(a ÷ b)
  • Angle β (opposite leg b): β = 90° − α
  • Area: A = (a × b) ÷ 2
  • Perimeter: P = a + b + c

Example: a = 3, b = 4, c = 5. Area = (3 × 4) ÷ 2 = 6 cm² · Perimeter = 3 + 4 + 5 = 12 cm

Common Right Triangle Examples

Leg aLeg bHypotenuse c
345
51213
81517
72425
94041

These are called Pythagorean triples — sets of whole numbers that satisfy c² = a² + b² exactly. The 3-4-5 triple is the most commonly used in construction and carpentry for checking right angles.

Frequently Asked Questions

What is the Pythagorean theorem?

The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: c² = a² + b². It was known to Babylonian mathematicians around 1800 BCE and later proved by ancient Greek mathematicians.

How do I find the hypotenuse?

Square both legs, add them together, then take the square root: c = √(a² + b²). Example: a = 3 cm, b = 4 cm → c = √(9 + 16) = √25 = 5 cm.

How do I find a missing leg?

Rearrange the formula: a = √(c² − b²). Subtract the square of the known leg from the square of the hypotenuse, then take the square root. Example: c = 13 cm, b = 12 cm → a = √(169 − 144) = √25 = 5 cm.

What are the angles in a right triangle?

One angle is always 90°. The other two (α and β) depend on the side lengths: α = arctan(a ÷ b) and β = 90° − α. They always sum to 90°. Use this calculator to find them automatically once you enter two sides.

Is this calculator free?

Yes, completely free with no registration required.