Pythagorean Theorem Calculator
Solve for any missing side of a right triangle using the Pythagorean theorem a^2 + b^2 = c^2. Get the hypotenuse, legs, area, and perimeter instantly. Free online geometry calculator.
About This Calculator
The Pythagorean Theorem Calculator is a free online geometry tool that uses the fundamental Pythagorean theorem (a^2 + b^2 = c^2) to find the missing side of any right triangle. This calculator is designed for students learning geometry, teachers preparing lesson materials, construction professionals verifying right angles, carpenters laying out square corners, and DIY enthusiasts working on home improvement projects. Whether you need to find the hypotenuse from two legs or determine a missing leg from the hypotenuse and other leg, this tool provides instant, accurate results along with area, perimeter, and visual bar charts.
The calculator supports three solving modes using the Pythagorean theorem: find the hypotenuse (c) using c = sqrt(a^2 + b^2) when both legs are known, find leg a using a = sqrt(c^2 - b^2) when the hypotenuse and leg b are known, or find leg b using b = sqrt(c^2 - a^2) when the hypotenuse and leg a are known. The calculator validates that all inputs are positive numbers and that the hypotenuse is longer than either leg -- a fundamental property of right triangles. Along with the missing side length, results include all three side lengths, the area (A = 1/2ab), and the perimeter (P = a + b + c). Two bar chart visualizations are available: one comparing side lengths and another comparing the squared values to visually demonstrate that a^2 + b^2 = c^2.
The Pythagorean theorem is one of mathematics' most ancient and widely-used principles. Evidence of its use dates back to Babylonian clay tablets from 1900-1600 BCE, though it is named after the Greek philosopher and mathematician Pythagoras (c. 570-495 BCE), who is credited with providing one of the earliest known proofs. Today, the theorem is indispensable in architecture, engineering, surveying, navigation, computer graphics, and countless other fields. Students encounter it worldwide -- from CBSE and ICSE curricula in India and Common Core standards in the United States to GCSE and A-level mathematics in the United Kingdom -- typically in middle and high school geometry and mensuration chapters. Whether applying the 3-4-5 rule to frame a building or calculating the diagonal of a screen, the Pythagorean theorem remains one of the most practical tools in mathematics.
Regional Notes
The Pythagorean theorem is a universal mathematical principle valid in any measurement system. Our calculator accepts side lengths in any unit (meters, centimeters, inches, feet, yards) -- simply ensure all values use the same unit for consistent results. Area displays in square units of the input, and perimeter in the same linear unit. Students in India (CBSE/ICSE), the United States (Common Core), and the United Kingdom (GCSE) all study the Pythagorean theorem in middle and high school mathematics, learning to apply it to solve real-world geometry and measurement problems across construction, navigation, and everyday scenarios.
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 (the legs). It is expressed as a^2 + b^2 = c^2, where c is the hypotenuse and a and b are the legs. Named after the Greek mathematician Pythagoras, this theorem is fundamental in geometry and has been known since ancient Babylonian times.
How do I use the Pythagorean theorem to find the hypotenuse?
To find the hypotenuse (c) when you know both legs (a and b), use the formula c = sqrt(a^2 + b^2). For example, if a = 3 and b = 4, then c = sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt25 = 5. This is the hypotenuse formula and the most common use of the Pythagorean theorem.
How do I find a missing leg using the Pythagorean theorem?
To find a missing leg when you know the hypotenuse and the other leg, use the formula a = sqrt(c^2 - b^2) or b = sqrt(c^2 - a^2). For example, if the hypotenuse c = 13 and one leg b = 5, then a = sqrt(13^2 - 5^2) = sqrt(169 - 25) = sqrt144 = 12. The hypotenuse must always be longer than either leg.
What is a 3-4-5 triangle and why is it important?
A 3-4-5 triangle is a right triangle with side lengths 3, 4, and 5 units. It is the smallest Pythagorean triple (three positive integers satisfying a^2 + b^2 = c^2 where 3^2 + 4^2 = 9 + 16 = 25 = 5^2). This triangle is widely used in construction and carpentry to create perfect right angles. A carpenter measures 3 feet along one wall, 4 feet along the other, and checks that the diagonal measures exactly 5 feet to ensure a square corner.
Does the Pythagorean theorem work for all triangles?
No, the Pythagorean theorem only applies to right triangles (triangles with one 90-degree angle). For other triangles, the law of cosines c^2 = a^2 + b^2 - 2ab·cos(C) is the general formula. When angle C is 90 degrees, cos(C) = 0, so the law of cosines simplifies to the Pythagorean theorem, making it a special case.
What are the real-world applications of the Pythagorean theorem?
The Pythagorean theorem is used extensively in architecture (calculating roof slopes, stair lengths), construction (ensuring square corners), navigation (shortest distance between points), surveying (measuring inaccessible distances), computer graphics (calculating distances between pixels), and everyday life (finding TV screen diagonals, ladder heights). It is one of the most practical mathematical tools taught in schools worldwide.
How do you calculate the area of a right triangle using the Pythagorean theorem?
The area of a right triangle is A = 1/2 x base x height, where the base and height are the two legs (the sides that form the right angle). Since the legs are perpendicular, this formula is straightforward. For example, a 3-4-5 right triangle has an area of 1/2 x 3 x 4 = 6 square units. Our calculator automatically computes the area, perimeter, and all side lengths when you enter any two values.