SupaCalc
📐

Pythagorean Theorem Calculator

Known Sides

Enter known side lengths to find the missing side and triangle properties

Select which side to calculate

First leg of the triangle

Second leg of the triangle

The Secret Rule Every Right Triangle Follows

Imagine you are building a treehouse and need to figure out how long a wooden board you need to reach from the trunk to a platform 8 feet up. The board is like the long side of a right triangle, with the ground distance and the height as the two shorter sides. How do you find the length? The answer is one of the most famous formulas in all of mathematics: the Pythagorean theorem.

Our calculator takes any two sides of a right triangle and instantly computes the third. Enter two sides and get the missing one, plus the area and perimeter, all in one click. No algebra required.

The formula: a squared + b squared = c squared, where a and b are the two shorter sides (legs) and c is the longest side (hypotenuse). For a triangle with legs of 3 and 4: 3 squared + 4 squared = 9 + 16 = 25, so c = the square root of 25 = 5. This 3-4-5 right triangle is the most famous example in all of math.

Understanding the Three Sides

The legs (a and b) are the two sides that form the right angle, the 90-degree corner. They are perpendicular to each other, like the floor and the wall of a room meeting in the corner. When you draw a right triangle, the legs are usually drawn as the bottom and left sides, with the right angle between them. Either leg can be called a or b, since the formula works the same either way.

The hypotenuse (c) is always the longest side, and it is always opposite the right angle. It is the diagonal side, like the board leaning against a wall or the ramp from the ground to a platform. The hypotenuse is always longer than either leg, because the direct diagonal path between two points is always longer than either the horizontal or vertical distance alone.

Finding a missing side: If you know both legs, square them, add them, and take the square root to get the hypotenuse. If you know one leg and the hypotenuse, square the hypotenuse, subtract the leg squared, and take the square root to get the other leg. Our calculator handles both cases automatically, plus it tells you the triangle's area and perimeter.

Famous Pythagorean Triples

A Pythagorean triple is a set of three whole numbers that satisfy the theorem. Knowing these common triples saves time on homework and real-world measurements because you can recognize them instantly without doing any calculations.

Common triples: 3-4-5 (the classic, used by builders since ancient Egypt). 5-12-13 (popular in math textbooks). 6-8-10 (just 3-4-5 doubled). 8-15-17 (appears in many geometry problems). 7-24-25 (less common but still useful). Any multiple of a triple is also a triple, so 9-12-15 works too (3-4-5 times 3).

How builders use 3-4-5: Carpenters and masons use the 3-4-5 triangle to check if corners are perfectly square. They measure 3 feet along one wall, 4 feet along the other, and if the distance between those two marks is exactly 5 feet, the corner is a perfect right angle. This technique has been used for over 4,000 years and is still the standard method on construction sites today.

Using the Theorem in Real Life

TV screen size: When a TV is advertised as 55 inches, that is the diagonal measurement (the hypotenuse). If the screen is 48 inches wide and 27 inches tall, check: 48 squared + 27 squared = 2,304 + 729 = 3,033. The square root of 3,033 is about 55.1 inches. The theorem confirms the measurement.

Ladder length: A window is 20 feet above the ground. You place the base of the ladder 6 feet from the wall. How long must the ladder be? 6 squared + 20 squared = 36 + 400 = 436. The square root of 436 is about 20.9 feet. You need a ladder at least 21 feet long to reach the window safely.

Sports distances: A baseball diamond is a square with 90-foot sides. The distance from home plate to second base is the diagonal of that square. 90 squared + 90 squared = 8,100 + 8,100 = 16,200. The square root of 16,200 is about 127.3 feet. A throw from home to second base covers 127 feet.

Why This Formula Is So Important

It is universal. The Pythagorean theorem works for every single right triangle in the universe, no matter how big or small. It works for triangles measured in inches, miles, or light-years. This universality is what makes it one of the most powerful tools in mathematics, science, and engineering.

It connects to everything. The distance formula in coordinate geometry is just the Pythagorean theorem in disguise. Trigonometric identities like sine squared plus cosine squared equals 1 come directly from it. The theorem even extends into three dimensions (a squared + b squared + c squared = d squared) for finding diagonal distances inside boxes and rooms.

It has ancient roots. Named after the Greek mathematician Pythagoras (around 500 BCE), the formula was actually discovered by Babylonian mathematicians over 1,000 years earlier. Clay tablets from 1800 BCE show the Babylonians knew and used the 3-4-5 triangle for construction and land measurement.

Frequently Asked Questions

It says that in any right triangle (a triangle with one 90-degree corner), the longest side squared equals the sum of the other two sides squared. In other words, if you square the two shorter sides and add them together, you get the square of the longest side. It works for every single right triangle, no exceptions.

The hypotenuse is always the longest side, and it sits directly opposite the 90-degree angle (the right angle). It is the side that would be the ramp if you think of the triangle as a ramp leaning against a wall. The other two sides are called legs. The hypotenuse is never shorter than either leg.

Yes, that is exactly what the theorem is for. If you know both legs, square each one, add them together, and take the square root to get the hypotenuse. If you know one leg and the hypotenuse, square the hypotenuse, subtract the leg squared, and take the square root to get the missing leg. Our calculator does this instantly.

No, the Pythagorean theorem only works for right triangles. For other types of triangles, you need different formulas like the Law of Cosines or the Law of Sines. However, the Pythagorean theorem is the most commonly used triangle formula because right triangles appear everywhere in construction, design, and everyday measurement.

If you want to know how long a ladder you need to reach a window, you can use the Pythagorean theorem. The ground distance from the wall and the height to the window are the two legs, and the ladder length is the hypotenuse. Builders use it to make sure corners are square, and landscapers use it to lay out garden beds at perfect right angles.

It is named after Pythagoras, a Greek mathematician who lived around 500 BCE, but the formula was actually known to Babylonian mathematicians over 1,000 years earlier. The Babylonians used clay tablets to record triangle calculations. Ancient Egyptian builders also used a version of it to construct the pyramids with precise right angles.

A 3-4-5 triangle is a special right triangle where the legs are 3 and 4 units long and the hypotenuse is 5 units. It works perfectly because 3 squared (9) plus 4 squared (16) equals 5 squared (25). Builders love this because if you measure 3 feet along one side, 4 feet along another, and the distance between those endpoints is exactly 5 feet, you have a perfect right angle.

Try More SupaCalc Tools

Free calculators for finance, health, AI costs, and more.

Browse All Calculators

Related Calculators