Pythagorean Theorem Calculator: Find Any Side

Pythagorean Theorem
HYPOTENUSE (C)
–
SIDE A
–
SIDE B
–
TRIANGLE AREA
–
PERIMETER
–
Area and perimeter use the same units you entered: square them for area.

Every right triangle hides a neat relationship between its three sides, and the Pythagorean theorem is how you unlock it. If you know any two sides of a right triangle, you can find the third: no measuring, no guessing. Use the calculator above to find the hypotenuse or a missing leg, along with the triangle's area and perimeter.

The formula

In a right triangle, the two shorter sides are called legs (a and b), and the side opposite the right angle is the hypotenuse (c). The theorem states:

a2 + b2 = c2
Square each leg, add them together, and you get the square of the hypotenuse.

The formula only works for right triangles, meaning triangles with one angle of exactly 90 degrees. It works in any unit: inches, feet, meters, or miles, as long as both legs use the same unit.

Finding the hypotenuse

To find the hypotenuse, square both legs, add the squares, and take the square root of the total. The classic example is the 3-4-5 triangle: a = 3 and b = 4, so a2 + b2 = 9 + 16 = 25, and c = √25 = 5. Builders love this triple because a triangle with sides 3, 4, and 5 always contains a perfect right angle, which makes it a fast way to check that a foundation or deck frame is square.

Finding a missing leg

If you know the hypotenuse and one leg, rearrange the formula: subtract the known leg's square from the hypotenuse's square, then take the square root:

b = √(c2 − a2)
Example: c = 13 and a = 5 gives b = √(169 − 25) = √144 = 12.

One rule to remember: the hypotenuse is always the longest side. If your "hypotenuse" is shorter than a leg, the triangle cannot exist, and the calculator will tell you to check your numbers.

A fast sanity check helps too: the hypotenuse should always be shorter than the two legs added together, but longer than either leg on its own. For the 3-4-5 triangle, 5 sits comfortably between 4 and 7. If your answer falls outside that range, you have probably mixed up which side was the hypotenuse.

Common Pythagorean triples

Some whole-number combinations satisfy the theorem exactly. These triples keep turning up in textbooks, construction, and standardized tests:

Leg aLeg bHypotenuse c
345
51213
81517
72425
202129
94041

Multiples of a triple are triples too, so 6-8-10 and 9-12-15 work just as well as 3-4-5. Recognizing them lets you spot the answer before you even reach for a calculator.

Real-world uses

Ladder safety is a classic: if a ladder reaches 12 feet up a wall and its base sits 5 feet out, the ladder itself must be at least 13 feet long. Television and monitor sizes are quoted as the diagonal of the screen, which is the hypotenuse of the width and height. Hikers use the theorem to find the straight-line distance across a field instead of walking two sides of it, and carpenters use it to lay out square corners for decks, sheds, and tile floors. Anywhere a right angle and a diagonal appear, this theorem is doing quiet work behind the scenes.

Frequently asked questions

Does the Pythagorean theorem work for all triangles?

No, only for right triangles with one 90 degree angle. For other triangles you need the law of cosines, which is a more general version of the same idea.

Which side is the hypotenuse?

It is always the side opposite the right angle, and always the longest side of the triangle. In the formula it is c, the one standing alone on its side of the equals sign.

What if my answer is not a whole number?

That is normal. Legs of 1 and 1 give a hypotenuse of √2, about 1.4142. The calculator rounds to four decimal places, which is plenty of precision for schoolwork and building projects alike.

How do I find a leg if I only know the hypotenuse and the other leg?

Subtract instead of add: square the hypotenuse, subtract the square of the known leg, and take the square root. Choose "Leg a" or "Leg b" in the calculator and it handles the rearrangement for you.

Why must the hypotenuse be longer than each leg?

Because it sits opposite the largest angle and spans the full diagonal of the triangle. If c were shorter than a leg, c2 minus that leg squared would be negative, and negative lengths have no square root in real numbers.

What is a Pythagorean triple?

Three whole numbers that satisfy a2 + b2 = c2 exactly, such as 3, 4, 5 or 5, 12, 13. Any scaled-up version of a triple is also a triple.

References

Background and proofs: Pythagorean theorem: Wikipedia. Integer solutions: Pythagorean triple: Wikipedia.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top