Solving triangle...
Choose a missing side, enter the two known lengths, and calculate the third side instantly.
What Is the Pythagorean Theorem?
The Pythagorean theorem describes the relationship between the three sides of a right triangle. In every right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. Written as a formula, that is a² + b² = c², where c is always the side opposite the right angle and the longest side of the triangle.
This calculator solves that equation for any missing value. Enter the two sides you know and it returns the third, along with the area, perimeter, and step-by-step work. It is useful for students checking homework, carpenters squaring corners, and anyone estimating diagonal distances.
How the Theorem Works
The two shorter sides are the legs. The longest side, opposite the right angle, is the hypotenuse. The theorem lets you find any one side when you know the other two.
How to Find the Hypotenuse
When you know both legs, the hypotenuse is found by adding their squares and taking the square root. For a triangle with legs 3 and 4, the calculation is 3² + 4² = 9 + 16 = 25, and the square root of 25 is 5. The hypotenuse is therefore 5 units long.
This mode is the one most people picture first. It answers questions like "How long is the diagonal of a rectangle?" or "What is the straight-line distance between two points?" Because the hypotenuse must be the longest side, the result will always be larger than either leg.
How to Find a Missing Leg
When you know one leg and the hypotenuse, rearrange the formula to subtract the known square from the hypotenuse square, then take the square root. For example, if the hypotenuse is 13 and one leg is 12, the missing leg is √(13² - 12²) = √(169 - 144) = √25 = 5.
The calculator automatically rejects impossible combinations. If the hypotenuse is not longer than the known leg, the triangle cannot exist and the tool shows a clear error instead of a meaningless result.
Common Pythagorean Triples
Pythagorean triples are sets of whole numbers that satisfy a² + b² = c². Recognising them saves time on common problems. The table below lists the most frequently used triples.
| Leg a | Leg b | Hypotenuse c |
|---|---|---|
| 3 | 4 | 5 |
| 5 | 12 | 13 |
| 8 | 15 | 17 |
| 7 | 24 | 25 |
| 9 | 40 | 41 |
| 20 | 21 | 29 |
Any multiple of a triple is also a triple. Scaling 3-4-5 by 2 gives 6-8-10, which still satisfies the theorem.
Real-World Uses of the Pythagorean Theorem
The theorem appears far beyond the classroom. Construction workers use it to make sure corners are square. TV and monitor sizes are measured diagonally, which is the hypotenuse of the screen width and height. Ladder safety guides use it to find how high a ladder reaches when leaned against a wall. GPS systems use the same idea in three dimensions to calculate distances on the earth's surface.
In design and manufacturing, the theorem helps convert between horizontal and sloped measurements. Roof pitch, ramp length, and staircase diagonal all rely on the same right-triangle relationship.
Pythagorean Theorem FAQ
What is the Pythagorean theorem formula? +
The formula is a² + b² = c². It states that the square of the hypotenuse equals the sum of the squares of the two legs in a right triangle.
How do I find the hypotenuse of a right triangle? +
Square both legs, add the results, and take the square root. For legs 3 and 4, the hypotenuse is √(3² + 4²) = √25 = 5.
How do I find a missing leg of a right triangle? +
Square the hypotenuse, subtract the square of the known leg, and take the square root. For a hypotenuse of 13 and a leg of 12, the missing leg is √(13² - 12²) = 5.
What are Pythagorean triples? +
Pythagorean triples are sets of positive whole numbers that satisfy a² + b² = c². Common examples include 3-4-5, 5-12-13, and 8-15-17.
Can the Pythagorean theorem be used for any triangle? +
No. It only applies to right triangles, which have one 90-degree angle. Other triangles require different rules such as the law of cosines.
Why must the hypotenuse be the longest side? +
The hypotenuse is opposite the largest angle in a right triangle, which is 90 degrees. The side opposite the largest angle is always the longest side.
External Resources
Authoritative references for the Pythagorean theorem and right-triangle geometry.
Related Calculators
Triangle Calculator
Solve SSS, SAS, ASA, and AAS triangles with steps and a diagram.
Ratio Calculator & Simplifier
Simplify ratios, solve proportions, and find equivalent ratios.
Percentage Calculator
Solve percent-of-number and part-to-whole percentage questions.
Fraction Calculator
Add, subtract, multiply, and divide fractions with simplification.
GCF & LCM Calculator
Find greatest common factors and least common multiples.