UtilityBase logoUtilityBase

2 min read

How to Use the Pythagorean Theorem

Learn the Pythagorean theorem, how to find the hypotenuse or a missing leg, and how to solve a right triangle step by step.

What the Theorem Says

The Pythagorean theorem applies to right triangles — triangles with one 90-degree angle. It states that the square of the hypotenuse (the longest side, opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c².

It only works for right triangles, but within them it's exact and unfailing, which is why it underpins everything from geometry class to construction, navigation, and computer graphics.

Finding the Hypotenuse and a Missing Leg

To find the hypotenuse, square both legs, add them, and take the square root: c = √(a² + b²). With legs of 3 and 4, that's √(9 + 16) = √25 = 5 — the famous 3-4-5 triangle.

To find a missing leg when you know the hypotenuse, rearrange to b = √(c² − a²). With a hypotenuse of 10 and one leg of 6, the other leg is √(100 − 36) = √64 = 8.

Solving a Whole Right Triangle

If you know a side and an angle instead of two sides, trigonometry finishes the job: sine, cosine, and tangent relate the angle to the sides. The calculator handles every combination and shows the steps.

  1. 1Open the Pythagorean Theorem Calculator.
  2. 2Choose which two values you know — two sides, or a side and an angle.
  3. 3Enter the two measurements.
  4. 4Read the missing side, both acute angles, area, and perimeter.
  5. 5Follow the worked steps and the labeled, scaled diagram.

Handy Pythagorean Triples

Some right triangles have whole-number sides, called Pythagorean triples, and memorizing a few speeds up mental math. The common ones are 3-4-5, 5-12-13, 8-15-17, and 7-24-25.

Any multiple of a triple is also a triple — 6-8-10 and 9-12-15 are just the 3-4-5 triangle scaled up. Builders use the 3-4-5 rule constantly to check that a corner is square.

Frequently asked questions

How do I find the hypotenuse of a right triangle?

Square both legs, add them, and take the square root: c = √(a² + b²). For legs of 3 and 4, that's √25 = 5. The hypotenuse is always the longest side, opposite the right angle.

Can the Pythagorean theorem find a missing leg?

Yes. Rearrange it to b = √(c² − a²). If the hypotenuse is 13 and one leg is 5, the other leg is √(169 − 25) = √144 = 12.

Does it work for any triangle?

No — only right triangles, which have a 90-degree angle. For other triangles you need the law of cosines or the law of sines instead.

Tools mentioned in this guide

Keep reading