Skip to content

Pythagorean Theorem Calculator

Choose the side you want (the hypotenuse or one of the legs), enter the other two, and get the missing side with the working shown. You also get the area, the perimeter, the two acute angles and a note when the three sides are whole numbers, like 3-4-5.

Hypotenuse c

5

c = √(a² + b²) = √(9 + 16) = √25 = 5
Area
6
Perimeter
12
Angle opposite a
36.869898°
Angle opposite b
53.130102°

A Pythagorean triple: 3, 4 and 5 are all whole numbers.

How it works

  1. Choose which side is unknown: the hypotenuse c, or a leg a or b.
  2. Enter the two known sides, in any one unit.
  3. Read the missing side and the working.
  4. Check the area, perimeter and angles, then copy the summary.

What people use it for

  • Squaring a corner

    Check a 3-4-5 layout, or find the diagonal of a room or a frame.

  • Ladders and ramps

    Find how far a ladder reaches or how long a ramp must be.

  • Screens and distances

    Get a diagonal from a width and a height.

Questions

What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the two legs: a² + b² = c². The hypotenuse is always the longest side.
Why does it say the hypotenuse must be larger?
If c is not longer than the leg you entered, no right triangle exists: the square root of c² − a² would be zero or of a negative number.
How are the angles found?
The angle opposite side a is the arctangent of a ÷ b, and the other acute angle is 90° minus it, since the angles of a triangle add up to 180°.
What is a Pythagorean triple?
Three whole numbers that satisfy the theorem, such as 3-4-5, 5-12-13, 8-15-17 or 6-8-10. The tool says so when all three sides you get are whole numbers.