Math Calculator

Pythagorean Theorem Calculator

Find the missing side of a right triangle using aยฒ + bยฒ = cยฒ. Solve for the hypotenuse, solve for a missing leg, check a triangle, and view area, perimeter, angles, altitude, and a simple visual chart.

Main formula aยฒ + bยฒ = cยฒ

For a right triangle, c is the hypotenuse and a, b are the two legs.

Calculate a right triangle

Choose a mode, enter the known sides, and get the missing side with step-by-step work and triangle measurements.

Hypotenuse c 5
Side a 3
Side b 4
Side c 5
Area 6
Perimeter 12
Angles 36.87ยฐ / 53.13ยฐ
Altitude to c 2.4

Right triangle visual

This right triangle has legs 3 and 4, so the hypotenuse is 5.

Step-by-step calculation

c = โˆš(3ยฒ + 4ยฒ) = โˆš(9 + 16) = โˆš25 = 5

How to use the Pythagorean theorem

The Pythagorean theorem works only for right triangles. It connects the two legs and the hypotenuse using the equation aยฒ + bยฒ = cยฒ. The hypotenuse is the longest side and is opposite the 90-degree angle.

Find hypotenuse: c = โˆš(aยฒ + bยฒ)

Find leg a: a = โˆš(cยฒ - bยฒ)

Find leg b: b = โˆš(cยฒ - aยฒ)

If your answer includes decimals, CalcMoraโ€™s decimal to fraction calculator can help convert the result into a fraction. For number-system practice, you can also use the decimal to binary converter.

Common Pythagorean theorem examples

Known legs a, b Hypotenuse c Note
3, 4 5 Classic 3-4-5 triangle
5, 12 13 Common Pythagorean triple
8, 15 17 Integer right triangle
7, 24 25 Large right triangle
9, 40 41 Useful for geometry practice

What else does this calculator show?

Area

The area of a right triangle is a ร— b รท 2, where a and b are the legs.

Perimeter

The perimeter is the total distance around the triangle: a + b + c.

Angles

The two smaller angles are calculated from the side lengths using trigonometry.

Where the Pythagorean theorem is useful

This theorem is used in geometry, construction, design, navigation, computer graphics, surveying, diagonal measurements, ladder problems, map distance, and many school math problems. For example, if a wall height and ground distance are known, the theorem can estimate the ladder length needed to reach the top.

Frequently asked questions

What is the Pythagorean theorem?

The Pythagorean theorem states that in a right triangle, the sum of the squares of the two legs equals the square of the hypotenuse: aยฒ + bยฒ = cยฒ.

How do I find the hypotenuse?

If you know legs a and b, use c = โˆš(aยฒ + bยฒ). For example, if a = 3 and b = 4, then c = โˆš(9 + 16) = 5.

How do I find a missing leg?

If you know the hypotenuse and one leg, subtract the known leg squared from the hypotenuse squared, then take the square root. For example, a = โˆš(cยฒ - bยฒ).

Can this calculator check if three sides make a right triangle?

Yes. Enter all three sides in Check Triangle mode. The calculator checks whether aยฒ + bยฒ is approximately equal to cยฒ.

What is the hypotenuse?

The hypotenuse is the longest side of a right triangle. It is always opposite the 90-degree angle.