GlobalFree to use

Pythagorean theorem calculator

Solve a right triangle: find the hypotenuse or a missing side with a² + b² = c², plus angles, area and perimeter.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

The Pythagorean theorem links the three sides of any right triangle. Choose which side to find (the hypotenuse c or one of the legs a or b) enter the other two, and this calculator returns all three sides, both acute angles, the area and the perimeter. It is handy for ladders against walls, diagonal measurements, ramps and checking that a corner is square.

How to use it

  1. Choose what to solve for: the hypotenuse or a leg.
  2. Enter the two known sides; the hypotenuse is the longest side, opposite the right angle.
  3. Run the calculation.
  4. Read the missing side, angles, area and perimeter.

How the calculation works

c = √(a² + b²) or a = √(c² − b²). Angle α = atan(a ÷ b) and β = 90° − α. Area = a × b ÷ 2.

c = √(a² + b²); a = √(c² − b²)

Worked example

A 17-foot ladder must reach a window, with its foot 8 feet from the wall. Solving for side a with b = 8 and c = 17 gives a height of 15 feet; the ladder makes a 61.9275° angle with the ground. Entering a hypotenuse shorter than a leg, such as c = 7 with b = 8, is rejected because no such triangle exists.

Sample input and result

Solve for: Hypotenuse c
Side a: 3
Side b: 4
Hypotenuse c: 5

→ Side a: 3
→ Side b: 4
→ Hypotenuse c: 5
→ Angle α (opposite a): 36.8699°
→ Angle β (opposite b): 53.1301°
→ Area: 6

Limitations

  • Right triangles only.
  • Sides must be positive and the hypotenuse the longest.
  • Angles are in degrees.

Last updated:

Frequently asked questions

Which side is the hypotenuse?

The longest side, opposite the 90° angle.

How do builders check a square corner?

The 3-4-5 rule: measure 3 units along one wall and 4 along the other; the diagonal should be 5.

Does it work for triangles without a right angle?

No. Those need the law of cosines.

Troubleshooting

It reports an error when solving for a leg.

The hypotenuse must be longer than the known leg.

Results have long decimals.

Most side lengths are irrational; round to the precision you can measure.

I need the distance between two points.

The slope calculator gives it directly.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps