CalcTune
📐
Math · geometry

Pythagorean Theorem Calculator

Calculate the missing side of a right triangle using the Pythagorean theorem. Enter any two sides to find the third, plus see area, perimeter, and a visual diagram.

Finding the hypotenuse (c) — the longest side opposite the right angle. Enter the two legs (a and b).

Example values — enter yours above
Side c (Hypotenuse)
5.00
a
3.00
b
4.00
c
5.00
Area
6.00
Perimeter
12.00
Pythagorean Theorem
a² + b² = c²
3.00² + 4.00² = 5.00²

Triangle Diagram

b = 4.0a = 3.0c = 5.0

Understanding the Pythagorean Theorem: A Complete Guide

The Pythagorean theorem is one of the most fundamental and famous principles in mathematics. Named after the ancient Greek mathematician Pythagoras, who lived around 570–495 BCE, this theorem describes a special relationship among the three sides of a right triangle. A right triangle is any triangle that contains a 90-degree angle, and the Pythagorean theorem states that the square of the longest side (called the hypotenuse) is equal to the sum of the squares of the other two sides (called the legs or catheti).

The Formula

The Pythagorean theorem is expressed by the equation a² + b² = c², where 'c' represents the hypotenuse—the side opposite the right angle—and 'a' and 'b' represent the two legs that form the right angle. For example, if a right triangle has legs measuring 3 and 4 units, the hypotenuse can be found by calculating 3² + 4² = 9 + 16 = 25, and taking the square root: c = √25 = 5. This particular set of numbers (3, 4, 5) is the most famous Pythagorean triple, a set of three positive integers that satisfy the theorem.

The theorem can also be rearranged to solve for either leg if the hypotenuse and one leg are known. For instance, to find side 'a', rearrange the formula to a² = c² − b², then take the square root: a = √(c² − b²). Similarly, b = √(c² − a²). This flexibility makes the Pythagorean theorem a powerful tool for solving a wide variety of geometric problems.

Historical Background

Although the theorem bears Pythagoras's name, evidence suggests that Babylonian mathematicians understood this relationship more than a thousand years before Pythagoras. Clay tablets dating to around 1800 BCE demonstrate that ancient Mesopotamian scholars were familiar with Pythagorean triples and likely used them in construction and surveying. The ancient Egyptians may have also applied a practical form of the theorem when laying out right angles using ropes with specific lengths.

Pythagoras and his followers, the Pythagoreans, are credited with the first formal proof of the theorem in the Western mathematical tradition. Over the centuries, hundreds of different proofs have been devised—from geometric constructions to algebraic manipulations to sophisticated arguments using calculus. Even notable figures outside mathematics, such as U.S. President James A. Garfield, have contributed original proofs.

Applications in Everyday Life

The Pythagorean theorem has countless practical applications. Builders and carpenters use it to ensure that corners are perfectly square. By measuring 3 feet along one side, 4 feet along the perpendicular side, and confirming that the diagonal measures 5 feet, they can verify a 90-degree angle without needing a protractor. Surveyors rely on the theorem to calculate distances that would be difficult or impossible to measure directly, such as the width of a river or the height of a mountain.

In navigation and computer graphics, the theorem helps calculate the shortest straight-line distance between two points on a plane. The distance formula—derived directly from the Pythagorean theorem—is fundamental in coordinate geometry and forms the basis for algorithms in computer vision, robotics, and GPS navigation. Even in physics, the theorem extends into understanding vectors, wave interference, and the geometry of spacetime in special relativity.

Pythagorean Triples

A Pythagorean triple is a set of three positive integers (a, b, c) that satisfy the equation a² + b² = c². The simplest and most well-known triple is (3, 4, 5), but there are infinitely many others. Some common examples include (5, 12, 13), (8, 15, 17), (7, 24, 25), and (9, 40, 41). These triples are useful because they provide whole-number solutions, making calculations simpler in practical applications.

A primitive Pythagorean triple is one where the three numbers have no common divisor other than 1. For example, (3, 4, 5) is primitive, while (6, 8, 10) is not—it's simply the (3, 4, 5) triple scaled by a factor of 2. Any primitive triple can be used to generate infinitely many non-primitive triples by multiplying all three numbers by the same positive integer. Formulas exist to systematically generate all primitive Pythagorean triples using pairs of integers.

Extensions and Generalizations

The Pythagorean theorem applies only to right triangles in Euclidean (flat) geometry, but mathematicians have developed generalizations for other types of triangles and non-Euclidean spaces. The law of cosines, for instance, extends the concept to any triangle: c² = a² + b² − 2ab cos(C), where C is the angle opposite side c. When C is 90 degrees, cos(C) equals zero, and the law of cosines reduces to the Pythagorean theorem.

In three-dimensional space, the Pythagorean theorem can be extended to find the distance between two points using the formula d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²). This concept generalizes even further into higher dimensions, forming a cornerstone of linear algebra and multidimensional geometry. The theorem's elegant simplicity and wide-ranging applicability make it a timeless pillar of mathematical knowledge.

Using This Calculator

This Pythagorean theorem calculator allows you to quickly find the missing side of a right triangle. Simply select which side you want to calculate—the hypotenuse (c) or one of the legs (a or b)—then enter the lengths of the two known sides. The calculator will instantly compute the missing side, along with the triangle's area and perimeter. A visual diagram helps you understand the geometry of your specific triangle. Whether you're checking homework, planning a construction project, or solving a real-world measurement problem, this tool provides fast, accurate results.

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) is equal to the sum of the squares of the other two sides. The formula is a² + b² = c², where c is the hypotenuse and a and b are the legs. This relationship allows you to find any missing side if you know the other two.

How do I find the hypotenuse of a right triangle?

To find the hypotenuse (c), use the formula c = √(a² + b²). Square each of the two legs, add them together, and then take the square root of the result. For example, if the legs are 6 and 8, the hypotenuse is √(6² + 8²) = √(36 + 64) = √100 = 10.

Can I use the Pythagorean theorem for non-right triangles?

No, the Pythagorean theorem only applies to right triangles (triangles with a 90-degree angle). For other triangles, you can use the law of cosines or the law of sines. However, you can sometimes divide a non-right triangle into two right triangles and apply the Pythagorean theorem to each part.

What is a Pythagorean triple?

A Pythagorean triple is a set of three positive whole numbers (a, b, c) that satisfy the equation a² + b² = c². The most famous example is (3, 4, 5). Other common triples include (5, 12, 13), (8, 15, 17), and (7, 24, 25). Pythagorean triples are useful because they provide integer solutions, making calculations easier.

Who discovered the Pythagorean theorem?

The theorem is named after the ancient Greek mathematician Pythagoras (c. 570–495 BCE), though evidence suggests that Babylonian and possibly Egyptian mathematicians knew about this relationship centuries earlier. Pythagoras and his followers are credited with providing one of the first formal proofs in the Western mathematical tradition. Hundreds of different proofs have been developed since.