📐 Pythagorean Theorem Calculator
Calculate missing side of a right triangle
a² + b² = c²
where c is the hypotenuse
📚 Understanding the Pythagorean Theorem
What is the Pythagorean Theorem?
The Pythagorean theorem is a fundamental principle in geometry that describes the relationship between the sides of a right triangle. It states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides.
The Formula
The theorem is expressed as: a² + b² = c²
Where:
- a and b are the lengths of the two legs (sides that form the right angle)
- c is the length of the hypotenuse (the longest side, opposite the right angle)
History
While named after the ancient Greek mathematician Pythagoras (c. 570-495 BCE), the theorem was known to earlier civilizations including the Babylonians and Indians. Pythagoras is credited with providing one of the first known proofs of the theorem, though hundreds of different proofs have been discovered since.
Applications
- Construction: Ensuring corners are square and calculating diagonal measurements
- Navigation: Calculating shortest distances and routes
- Architecture: Designing roofs, ramps, and structural supports
- Surveying: Measuring distances and heights indirectly
- Computer Graphics: Calculating distances between points in 2D and 3D space
- Physics: Analyzing vectors and forces
Pythagorean Triples
A Pythagorean triple is a set of three positive integers a, b, and c that satisfy the Pythagorean theorem. Common examples include:
- 3, 4, 5: The smallest and most well-known triple (3² + 4² = 9 + 16 = 25 = 5²)
- 5, 12, 13: Another common triple
- 8, 15, 17: Used in construction and carpentry
- 7, 24, 25: Less common but still useful
Any multiple of a Pythagorean triple is also a Pythagorean triple. For example, 6-8-10 (double of 3-4-5) and 9-12-15 (triple of 3-4-5) are also valid triples.
Frequently Asked Questions
Does the Pythagorean theorem work for all triangles?
No, the Pythagorean theorem only works for right triangles (triangles with one 90-degree angle). For other triangles, you need to use different formulas like the Law of Cosines or the Law of Sines.
How do I know which side is the hypotenuse?
The hypotenuse is always the longest side of a right triangle and is always opposite the right angle (90-degree angle). The other two sides are called legs and they form the right angle.
Can I use the Pythagorean theorem in 3D?
Yes! The theorem extends to three dimensions. To find the distance between two points in 3D space, use: d² = x² + y² + z², where x, y, and z are the differences in coordinates along each axis. This is essentially applying the theorem twice.
What if my triangle doesn't have a right angle?
If your triangle doesn't have a right angle, you cannot use the Pythagorean theorem. Instead, use the Law of Cosines: c² = a² + b² - 2ab·cos(C), where C is the angle opposite side c. When C = 90°, cos(C) = 0, and this reduces to the Pythagorean theorem.
How accurate is the calculator?
Our calculator uses JavaScript's built-in Math functions which provide double-precision floating-point arithmetic. Results are accurate to many decimal places, though we typically display results rounded to 2 decimal places for practical use.
What units can I use?
You can use any units of length (inches, feet, meters, centimeters, etc.) as long as all measurements use the same unit. The result will be in the same unit as your inputs. For example, if you enter sides in meters, the result will be in meters.
What are some real-world examples?
Common examples include: calculating the length of a ladder needed to reach a certain height, finding the diagonal of a TV or monitor screen, determining the distance across a rectangular field, checking if a corner is square in construction, and calculating the shortest path between two points on a grid.