Pythagorean Theorem Calculator

Calculate any missing side of a right triangle using the formula a² + b² = c². Enter two known sides to find the third, with complete step-by-step solutions.

Calculate Right Triangle Sides

Enter any two sides to find the missing third side using a² + b² = c²

a (leg) b (leg) c (hypotenuse)
Pythagorean Theorem: a² + b² = c²
Try examples:

How to Use This Calculator

1

Enter Two Sides

Input the lengths of any two sides of your right triangle

2

Leave One Empty

Leave the unknown side blank for the calculator to find

3

Get Results

View the missing side plus area, perimeter, and angles

Quick Tips:

  • Side c is always the hypotenuse (longest side, opposite the right angle)
  • Sides a and b are the legs that form the right angle
  • Try the example buttons to see classic Pythagorean triples like 3-4-5

Understanding the Pythagorean Theorem

The Pythagorean theorem is one of the most fundamental principles in geometry, discovered over 2,500 years ago and still essential in modern mathematics, engineering, and everyday problem-solving. This elegant relationship describes how the three sides of a right triangle relate to each other: the sum of the squares of the two shorter sides (legs) equals the square of the longest side (hypotenuse). Written mathematically as a² + b² = c², this formula allows us to find any missing side when we know the other two.

A right triangle contains one angle that measures exactly 90 degrees. The two sides that form this right angle are called legs (labeled a and b in our calculator), while the side opposite the right angle is the hypotenuse (labeled c). The hypotenuse is always the longest side of a right triangle. This calculator makes it simple to find any missing side by entering the two known values and leaving the unknown field empty.

The History Behind the Theorem

Though named after the Greek mathematician Pythagoras, evidence suggests this relationship was known to Babylonian mathematicians over a thousand years earlier. Clay tablets from ancient Mesopotamia show calculations involving right triangles that could only work if their creators understood this principle. The Egyptians used the 3-4-5 triangle for construction, creating perfect right angles for their pyramids and monuments without needing modern tools.

Pythagoras and his followers in ancient Greece are credited with the first formal proof of the theorem around 500 BCE. Since then, hundreds of different proofs have been discovered. Even the 20th president of the United States, James Garfield, created an original proof using a trapezoid. This abundance of proofs reflects how central the theorem is to mathematical thinking and how many ways its truth can be demonstrated.

Finding the Hypotenuse

The most common use of the Pythagorean theorem is finding the hypotenuse when both legs are known. The formula c = √(a² + b²) provides the answer. For example, if you have a right triangle with legs of 6 and 8 units, you would calculate: 6² + 8² = 36 + 64 = 100, then √100 = 10. The hypotenuse is 10 units long. This calculation appears constantly in real-world applications, from determining diagonal distances to calculating screen sizes.

Television and computer monitor sizes are measured diagonally precisely because of this principle. A "55-inch TV" has a 55-inch diagonal. If the screen has a 16:9 aspect ratio, you can use the Pythagorean theorem to find the actual width and height. The relationship between the diagonal and the sides helps consumers understand the true viewing area they're purchasing.

Finding a Missing Leg

Sometimes you know the hypotenuse and one leg but need to find the other leg. Rearranging the formula gives us a = √(c² - b²). For instance, if a ladder 13 feet long leans against a wall with its base 5 feet from the wall, how high up the wall does it reach? Using 13² - 5² = 169 - 25 = 144, then √144 = 12. The ladder reaches 12 feet up the wall.

This calculation is essential for safety. OSHA guidelines require ladders to be placed at specific angles, which translates to specific ratios between the base distance and the height reached. Too steep an angle risks tipping backward, while too shallow an angle can cause the base to slide out. The Pythagorean theorem helps determine safe ladder placement.

Pythagorean Triples

Pythagorean triples are sets of three positive integers that satisfy the theorem perfectly. The most famous is 3-4-5: indeed, 3² + 4² = 9 + 16 = 25 = 5². Other common triples include 5-12-13, 8-15-17, and 7-24-25. Any multiple of a Pythagorean triple is also a triple: 6-8-10, 9-12-15, and 12-16-20 all work because they're multiples of 3-4-5.

Construction workers and carpenters frequently use the 3-4-5 method to verify right angles. By measuring 3 feet along one side, 4 feet along another, and checking that the diagonal is exactly 5 feet, they can confirm a perfect 90-degree angle without any specialized equipment. Larger multiples like 6-8-10 or 9-12-15 provide greater accuracy for bigger projects.

Construction and Architecture Applications

Builders rely on the Pythagorean theorem constantly. When framing a house, they need to ensure walls are perfectly perpendicular. Roof pitches involve right triangles, with the rise, run, and rafter length forming the three sides. Even laying out a foundation requires checking corners with the 3-4-5 method or its multiples to ensure the building will be square.

Staircase design depends heavily on the theorem. The total run, total rise, and stringer length form a right triangle. Building codes specify acceptable ratios between rise and run for safety and comfort, and the theorem helps calculate the exact stringer length needed to accommodate the chosen dimensions. Improper calculations lead to stairs that feel awkward or are dangerous to use.

Navigation and Distance Calculations

The theorem underlies distance calculations in navigation and GPS systems. When calculating how far away something is "as the crow flies" from east-west and north-south coordinates, you're essentially solving a right triangle problem. If a destination is 3 miles east and 4 miles north, the direct distance is 5 miles—a practical application of the famous 3-4-5 triple.

Aviation relies on these calculations for flight planning. Pilots need to know actual distances traveled when accounting for wind drift or calculating fuel requirements. The relationship between ground speed, airspeed, and wind forms vector triangles that can be solved using principles derived from the Pythagorean theorem.

Sports and Recreation Uses

Baseball diamond dimensions rely on the theorem. The bases are 90 feet apart along the baselines, forming a square. The distance from home plate to second base—the throw a catcher must make to catch a stealing runner—is the diagonal of this square. Using the theorem: 90² + 90² = 16,200, and √16,200 ≈ 127.3 feet. This explains why catching runners stealing is so difficult.

Golf course designers use the theorem when planning holes, calculating actual distances for dogleg fairways where the direct distance differs from the playing distance. Pool players apply the principle when calculating bank shot angles. Even simple activities like setting up a volleyball net at the correct height involve checking the geometry of guy wires and poles.

Three-Dimensional Extensions

The Pythagorean theorem extends to three dimensions. The space diagonal of a rectangular box with dimensions a, b, and c is found using d = √(a² + b² + c²). This calculation helps determine whether long objects will fit diagonally in vehicles, storage spaces, or rooms. It's essential for furniture delivery, interior design, and logistics planning.

Computer graphics and 3D modeling extensively use this three-dimensional form. Calculating distances between points in virtual space, determining collision detection, and rendering perspectives all rely on these fundamental distance calculations. Every video game and CGI movie depends on millions of these calculations performed every second.

Beyond Right Triangles: The Law of Cosines

While the Pythagorean theorem applies only to right triangles, its generalization—the Law of Cosines—works for any triangle. The formula c² = a² + b² - 2ab·cos(C) reduces to the Pythagorean theorem when angle C is 90 degrees because cos(90°) = 0. This relationship shows how the Pythagorean theorem is a special case of a broader mathematical principle.

Understanding this connection helps when working with oblique triangles in surveying, engineering, and physics. The Pythagorean theorem's simplicity makes it preferable when right triangles are involved, but knowing its relationship to more general formulas deepens mathematical understanding and expands problem-solving capabilities.

Frequently Asked Questions

What is the Pythagorean theorem?

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides. Written as a formula: a² + b² = c², where c is the hypotenuse and a and b are the legs.

How do I find the hypotenuse of a right triangle?

To find the hypotenuse (c), add the squares of the two legs (a and b), then take the square root of the sum. The formula is c = √(a² + b²). For example, if a = 3 and b = 4, then c = √(9 + 16) = √25 = 5.

How do I find a missing leg of a right triangle?

To find a missing leg, rearrange the formula to a = √(c² - b²) or b = √(c² - a²). Subtract the square of the known leg from the square of the hypotenuse, then take the square root. The hypotenuse must always be longer than either leg.

What are Pythagorean triples?

Pythagorean triples are sets of three whole numbers that satisfy the Pythagorean theorem. Common examples include 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Any multiple of these (like 6-8-10) is also a Pythagorean triple.

Can the Pythagorean theorem be used for non-right triangles?

No, the Pythagorean theorem only works for right triangles (triangles with one 90-degree angle). For other triangles, you would use the Law of Cosines: c² = a² + b² - 2ab·cos(C), which generalizes the Pythagorean theorem.

What are practical uses of the Pythagorean theorem?

The theorem is used in construction (checking if corners are square), navigation (calculating straight-line distances), screen sizing (diagonal measurements), ladder safety (proper placement angles), and countless engineering applications where right angles are involved.