Pythagorean Theorem Calculator

Find the missing side of a right triangle with the Pythagorean theorem a² + b² = c². Enter any two sides (two legs, or a leg and the hypotenuse) to get the third.

  • 100% free
  • No signup
  • Runs in your browser

a² + b² = c² (c is hypotenuse)

Enter two sides and leave the third empty.

How to use

  1. Enter the two sides you know and leave the third field empty.
  2. a and b are the legs that form the right angle; c is the hypotenuse, the longest side, opposite the right angle.
  3. Click Calculate or press Enter to see the missing side.

The Pythagorean theorem

Missing side Formula
Hypotenuse c c = √(a² + b²)
Leg a a = √(c² − b²)
Leg b b = √(c² − a²)

In every right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². The formula works in both directions, so any side can be found from the other two.

The converse is also true: if three sides satisfy a² + b² = c², the triangle has a right angle. Builders use a 3-4-5 measurement to check that corners are square.

Pythagorean triples

Some right triangles have whole-number sides, called Pythagorean triples: 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple of a triple, such as 6-8-10, is also a triple.

Examples

Example Result
Legs 3 and 4 c = √(9 + 16) = √25 = 5
Hypotenuse 13 and leg 5 b = √(169 − 25) = √144 = 12
A 4 m ladder standing 1 m from the wall It reaches √(16 − 1) = √15 ≈ 3.87 m up the wall
Tips: Leave exactly one of a, b, or c empty. All entered values must be positive.

FAQ

c is the hypotenuse, opposite the right angle. Legs a and b form the right angle.

Then the three positive values cannot form a right triangle with c as hypotenuse (for example, c must be greater than each leg when solving for c).

No. The Pythagorean theorem applies only to right triangles.

Measure 3 units along one side and 4 units along the other. If the diagonal between the two marks is exactly 5 units, the corner is 90°.

The diagonal is the hypotenuse of the right triangle formed by two sides: d = √(width² + height²). A 1920 × 1080 screen has a diagonal of about 2203 pixels.

Need another tool?

Explore all 61 free tools: calculators, converters, date and time tools, random generators and text utilities.

Browse all tools