One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

Pythagorean Theorem Calculator

Quick Answer

In a right triangle, a² + b² = c², where c is the hypotenuse (the side opposite the right angle). To find the hypotenuse, c = √(a² + b²). With legs 3 and 4, c = √(9 + 16) = 5. To find a leg, subtract: a = √(c² − b²).

Result

Side c = 5

Area6
Perimeter12
Angle opposite a36.8699°
Angle opposite b53.1301°
Step-by-step calculation
  1. a² + b² = c²
  2. c = √(3² + 4²)
  3. c = √25 = 5

About the Pythagorean Theorem Calculator

Choose which side you want to solve for, enter the two known sides and the calculator returns the missing side along with the triangle’s area, perimeter and two acute angles. It rejects impossible triangles, such as a leg longer than the hypotenuse, instead of returning a meaningless number.

The theorem only applies to right triangles. It is the basis of distance calculations, checking that a corner is square in construction (the 3-4-5 method) and many geometry problems.

How to Use the Pythagorean Theorem Calculator

  1. Pick the side to solve for.
  2. Enter the two known side lengths in the same unit.
  3. Read the missing side, area, perimeter and angles.

Formula and Method

Pythagorean theorem

a² + b² = c²

c is the hypotenuse, opposite the 90° angle.

Missing leg

a = √(c² − b²)

Requires c to be longer than b.

Acute angle

A = arcsin(a ÷ c)

The angle opposite side a.

Worked Example

Check a square corner

Input: Legs a = 3 ft, b = 4 ft

  • c² = 3² + 4² = 9 + 16 = 25
  • c = √25 = 5

Result: If the diagonal between marks 3 ft and 4 ft along the edges measures 5 ft, the corner is square.

Frequently Asked Questions

Does the theorem work for any triangle?

No, only right triangles. For other triangles use the law of cosines, which reduces to the Pythagorean theorem when the angle is 90°.

What is a Pythagorean triple?

Three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17.

Which side is the hypotenuse?

The longest side, opposite the right angle. It is always c in the formula.

Which units can I use?

Any, as long as all sides use the same unit. Area is in that unit squared.

Related Calculators

All Math & Statistics Calculators →

Sources and Further Reading

Accuracy and Scope

Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.