Pythagorean Theorem Calculator

Use the Pythagorean Theorem Calculator to find a missing right-triangle side from two known sides, plus angles, area and perimeter.

Use the same length unit for every side. A is opposite a; B is opposite b. Two angles do not determine the triangle size.

Hypotenuse c

5

  • Leg a3
  • Leg b4
  • Angle A36.86989765°
  • Angle B53.13010235°
  • Altitude to c2.4
  • Area (square units)6
  • Perimeter12
abcAB

How this was calculated

a² + b² = c²; area = ab/2; h = ab/c.

sin(A) = a/c; A + B = 90°.

Formula and method

For a right triangle, a²+b²=c², where c is the hypotenuse opposite the 90° angle. To find c, use √(a²+b²). To find a leg, subtract the other leg’s square from c² before taking the square root.

Worked example

With a = 3 and b = 4, c = √(9+16) = 5. The area is 3 × 4 / 2 = 6 square units and perimeter is 12 units. A = atan(3/4) ≈ 36.86989765° and B ≈ 53.13010235°.

Inputs and limitations

This theorem applies only to right triangles. For a general triangle use the Triangle Calculator. The hypotenuse must be longer than either leg. Convert all side measurements to the same unit first; the area is in that unit squared.

Whole-number right triangles

Each row satisfies a²+b²=c². Multiplying all three sides by the same positive factor preserves the right angle.

Common Pythagorean triples
Leg aLeg bHypotenuse c
345
51213
81517
72425
202129

Last updated . Results are estimates for informational purposes only.