Boneyard Tools

Pythagorean Theorem Calculator

Know two sides of a right triangle and need the third? Enter any two of the legs a, b and the hypotenuse c, leave the unknown blank, and this calculator solves it with the Pythagorean theorem plus the area and perimeter.

How to use the Pythagorean theorem calculator

  1. Enter the two sides you know into their fields: legs a and b, or one leg and the hypotenuse c.
  2. Leave the side you want to find blank.
  3. Read the solved side, the full triangle, the area and the perimeter, which update as you type.

Examples

Solve the hypotenuse (3-4-5)

a = 3, b = 4
c = 5, area 6, perimeter 12

Solve a leg (5-12-13)

a = 5, c = 13
b = 12, area 30, perimeter 30

Frequently asked questions

What is the Pythagorean theorem?

For a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a squared plus b squared equals c squared, where c is the side opposite the right angle.

How do I find a leg instead of the hypotenuse?

Rearrange the formula. A leg equals the square root of the hypotenuse squared minus the other leg squared, so a = sqrt(c squared minus b squared). The hypotenuse must be longer than the leg you already know.

Why does the hypotenuse have to be the longest side?

The hypotenuse sits opposite the right angle and is always the longest side of a right triangle. If you try to solve a leg with a hypotenuse that is shorter than the known leg, no real triangle exists and the tool flags it.

How are the area and perimeter calculated?

Because the two legs meet at the right angle, the area is half their product: area = a times b divided by 2. The perimeter is simply the three sides added together, a + b + c.

Do the sides have to be whole numbers?

No. You can enter any positive decimals. Whole-number sets like 3-4-5 or 5-12-13 are called Pythagorean triples, but most right triangles have at least one irrational side, such as a = b = 1 giving c = sqrt(2).

Is my data sent anywhere?

No. The calculation runs entirely in your browser, so the numbers you type are never uploaded or stored.

Related tools