Skip to main content

Pythagorean Theorem Calculator

Use this Pythagorean theorem calculator to enter any two sides of a right triangle and quickly find the missing leg or hypotenuse online.

Pythagorean Theorem Calculator

Solve for

Enter both legs. The hypotenuse is the longest side, opposite the 90° angle.

abc

Labels the result only. Enter both known sides in this same unit.

Enter values above to see results

About This Pythagorean Theorem Calculator

This Pythagorean theorem calculator helps you find the missing side of a right triangle when you already know two side lengths. You can solve for side a, side b, or the hypotenuse c without rearranging the formula manually.

The tool is useful for geometry homework, construction measurements, diagonal distance checks, ladder problems, and other right-triangle calculations. If you need a faster way to solve the missing side, this Pythagorean calculator gives a clear result based on the values you enter.

What Is the Pythagorean Theorem?

It is a rule used with right triangles. It says the square of the hypotenuse is equal to the sum of the squares of the two shorter sides.

In a right triangle, sides a and b are the legs, while side c is the hypotenuse. The hypotenuse is always the longest side and sits opposite the 90-degree angle.

Formula Used

The Pythagorean theorem formula is:

a² + b² = c²

This can also be called the Pythagorean theorem equation because it shows the relationship between the two legs and the hypotenuse of a right triangle.

How to Use the Calculator

Follow these steps:

  1. Select the side you want to calculate.
  2. Enter the two known side lengths.
  3. Choose a unit if the calculator includes unit options.
  4. Click calculate.
  5. Review the missing side and formula used.

This Pythagorean theorem calculator works only for right triangles, so make sure the triangle has one 90-degree angle before using the result.

How to Find the Hypotenuse

To find the hypotenuse, enter both leg lengths. The calculator squares each leg, adds the values together, and takes the square root of the total.

For example, if side a is 3 and side b is 4:

3² = 9
4² = 16
9 + 16 = 25
√25 = 5

So, the hypotenuse is 5. A Pythagorean calculator is helpful here because it performs each step instantly.

How to Find a Missing Leg

To find a missing leg, you need the hypotenuse and one known leg. The calculator squares the hypotenuse, subtracts the square of the known leg, and then takes the square root.

For example, if the hypotenuse is 13 and one leg is 5:

13² = 169
5² = 25
169 − 25 = 144
√144 = 12

So, the missing leg is 12.

Because the hypotenuse is the longest side of a right triangle, it must be longer than the leg you enter beside it. If it is not, no right triangle has those two sides, and the calculator says so rather than returning a number.

Pythagorean Theorem Example

A common example uses a 3-4-5 right triangle. If side a is 3 and side b is 4, then the hypotenuse is 5.

This works because:

3² + 4² = 5²
9 + 16 = 25

This simple example shows how the formula connects all three sides of a right triangle. The same process works for larger values, decimals, and measurement-based problems.

When Should You Use This Tool?

Use this Pythagorean theorem calculator when you need to solve a right-triangle side quickly. It can help with:

  • Geometry assignments
  • Right triangle word problems
  • Diagonal measurements
  • Ladder and wall problems
  • Construction layout checks
  • Distance estimation
  • Basic trigonometry support

For classroom problems, the tool can help you check your manual work. For measurement tasks, make sure your inputs use the same unit before calculating.

Important Note About Right Triangles

The Pythagorean theorem only works for right triangles. If a triangle does not have a 90-degree angle, this formula will not give the correct missing side.

For non-right triangles, use a triangle calculator, law of cosines calculator, or trigonometry calculator instead. This Pythagorean calculator is specifically made for right-triangle side relationships.

Related Calculators

You may also find these tools useful:

  • Triangle Calculatorcoming soon
  • Right Triangle Calculatorcoming soon
  • Hypotenuse Calculatorcoming soon
  • Square Root Calculatorcoming soon
  • Distance Calculatorcoming soon
  • Area of Triangle Calculatorcoming soon
  • Trigonometry Calculatorcoming soon

Start Calculating

Enter any two known side lengths above and use the Pythagorean theorem calculator to find the missing side of your right triangle.

Frequently Asked Questions

What does this calculator do?

It finds the missing side of a right triangle when two side lengths are already known.

Does the theorem work for all triangles?

No. It works only for right triangles with one 90-degree angle.

Which side is the hypotenuse?

The hypotenuse is the longest side of a right triangle and is opposite the right angle.

Can I use decimals?

Yes. You can enter decimal side lengths as long as the values belong to a right triangle.

What is a 3-4-5 triangle?

A 3-4-5 triangle is a right triangle where the side lengths 3, 4, and 5 satisfy the theorem.

Why does it reject a hypotenuse that is shorter than the leg I entered?

The hypotenuse is always the longest side of a right triangle. If the hypotenuse you enter is not longer than the known leg, no right triangle has those two sides, so there is no missing side to find.

Do the units matter?

The theorem is unit-agnostic, so the answer comes back in whatever unit you entered. The unit selector only labels the result. Make sure both known sides use the same unit before calculating.