Pythagorean Theorem Calculator

This Pythagorean theorem calculator solves a² + b² = c² to find the hypotenuse or a missing leg of a right triangle. Enter any two sides to get the third, which helps with math homework and with real jobs like squaring a deck, sizing a ladder or measuring a TV screen.

Pythagorean Theorem Calculator

a^2 + b^2 = c^2 for a right triangle.

Side a

-

Side b

-

Hypotenuse c

-

Area (1/2ab)

-

This Pythagorean theorem calculator solves any missing side of a right triangle using a² + b² = c². Choose the side to find, enter the other two, and get all three sides to six decimal places, plus the triangle's area and a scaled diagram.

How to use the Pythagorean Theorem Calculator

  1. In Find, choose Hypotenuse c, Leg a or Leg b.
  2. Enter the two known sides. All values must be positive, and the hypotenuse must be longer than the leg you enter.
  3. Press Calculate.
  4. Read Side a, Side b, Hypotenuse c and Area (½ab). The diagram draws the triangle to scale with each side labeled.

Formula

a² + b² = c²
c = √(a² + b²) a = √(c² − b²) b = √(c² − a²)
Area = ½ × a × b

The theorem only applies to right triangles, where a and b meet at a 90° angle and c is the side across from it. Because the legs are perpendicular, they also serve as the base and height for the area.

Example

Legs of 5 and 12: c = √(25 + 144) = √169 = 13, and the area is ½ × 5 × 12 = 30. Working backward, a hypotenuse of 10 with one leg of 6 gives the other leg as √(100 − 36) = √64 = 8.

Frequently asked questions

What is the Pythagorean theorem?

In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². It lets you find any side when you know the other two.

Does the Pythagorean theorem work for all triangles?

No, only for right triangles. For other triangles, use the law of cosines, c² = a² + b² − 2ab·cos(C), which becomes the Pythagorean theorem when C = 90°.

What are Pythagorean triples?

Sets of three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple of a triple, like 6-8-10, is also a triple.

How do I check if a triangle is a right triangle?

Square the two shorter sides and add them. If the total equals the square of the longest side, the triangle has a right angle. For 9, 12 and 15: 81 + 144 = 225 = 15², so it is a right triangle.

For construction measurements in feet, try the Hypotenuse Calculator (Reverse Solve).

Find the hypotenuse or a missing leg

How to use it

  1. Enter the two sides you know.
  2. Leave the side you want to find blank.
  3. Read the missing side and the steps of the formula.
  4. Use the same unit for every side, such as feet or inches.

More questions

How do I find the hypotenuse?

Square both legs, add them, and take the square root. Legs of 3 and 4 give a hypotenuse of 5.

How do I find a missing leg?

Square the hypotenuse, subtract the square of the known leg, and take the square root.

How do builders use the 3-4-5 rule?

Measure 3 ft on one side and 4 ft on the other. If the diagonal is 5 ft, the corner is square.

Related tools: Pythagorean Triple Calculator, Right Triangle Calculator, Triangle Calculator.

Checking a floor is square with 9 and 12

Pick what to find (hypotenuse c or a missing leg), enter the two sides you know and read all three sides plus the area. Keep every length in the same unit, such as feet. To work with angles as well as sides, use the Trig Calculator.

Worked example: a shed floor is 9 ft by 12 ft. Legs of 9 and 12 give c = √(81 + 144) = √225 = 15 ft, and the right triangle area is 54 sq ft. If both corner-to-corner diagonals measure 15 ft, the floor is square.

More answers

How long a ladder do I need to reach 16 feet up a wall?

If the base sits 4 ft from the wall, enter 16 and 4 as the legs. The ladder is √(256 + 16) = √272 ≈ 16.49 ft long, so a 20 ft ladder would be the next common size up.

Why do I get a decimal for the hypotenuse?

Only some side pairs give a whole number. Most give an irrational square root, such as √272 ≈ 16.4924. Round it up to the next practical length when you are buying material.