Pythagorean theorem

Find the hypotenuse or a missing leg from the other two sides.

Find

Greater than 0, up to 1,000,000

Greater than 0, up to 1,000,000

The hypotenuse is the longest side. It must be longer than each leg.

Enter the two known sides.

How the missing side is found

Choose the side you need and enter the other two. Legs 3 and 4 have hypotenuse 5.

Legs 5 and 12 have hypotenuse 13. Legs 1 and 1 have hypotenuse 1.41421356237. Leg b of 4 and hypotenuse 5 give leg a of 3. If the hypotenuse is not longer than the other side, there is no result.

How to use this calculator

  1. Choose hypotenuse, leg a, or leg b.
  2. Enter the two known sides.
  3. Read the missing side. The rows below are leg a, leg b, and the hypotenuse.

The Pythagorean theorem

The square of leg a plus the square of leg b equals the square of the hypotenuse.

Pythagorean theorem
a2+b2=c2

Legs 5 and 12 have hypotenuse 13. Legs 1 and 1 have hypotenuse 1.41421356237.

Source

The Pythagorean theorem is defined on the Wikipedia page that defines the Pythagorean theorem.

Worked examples

Example: legs 3 and 4

The hypotenuse is 5.

Example: legs 5 and 12

The hypotenuse is 13.

What to keep in mind

Leg b of 4 and hypotenuse 5 give leg a of 3. Legs 1 and 1 have hypotenuse 1.41421356237. A hypotenuse of 5 with another side of 5 has no result. Each entered side is greater than 0 and at most 1,000,000. A completed result, including the two sides you entered, can be saved in this browser’s local history and never leaves your device. Clear it with the history Clear action or by clearing site data.

Common questions about the Pythagorean theorem

What do legs 3 and 4 give?

Hypotenuse 5.

What do legs 5 and 12 give?

Hypotenuse 13.

What do leg b of 4 and hypotenuse 5 give?

Leg a is 3.

What do legs 1 and 1 give?

Hypotenuse 1.41421356237.

What if the hypotenuse is not longer than the other side?

There is no result. The hypotenuse must be longer than each leg. A blank field, 0, and a negative number also have no result. Each side is greater than 0 and at most 1,000,000.

Does this calculator store my sides?

A completed result can be saved in this browser’s local history, including the two sides you entered. It stays on your device and is not sent to our servers or to analytics. Clear it with the history Clear action or by clearing site data.