About the Pythagorean Theorem Calculator
Choose which side you want to solve for, enter the two known sides and the calculator returns the missing side along with the triangle’s area, perimeter and two acute angles. It rejects impossible triangles, such as a leg longer than the hypotenuse, instead of returning a meaningless number.
The theorem only applies to right triangles. It is the basis of distance calculations, checking that a corner is square in construction (the 3-4-5 method) and many geometry problems.
How to Use the Pythagorean Theorem Calculator
- Pick the side to solve for.
- Enter the two known side lengths in the same unit.
- Read the missing side, area, perimeter and angles.
Formula and Method
Pythagorean theorem
a² + b² = c²
c is the hypotenuse, opposite the 90° angle.
Missing leg
a = √(c² − b²)
Requires c to be longer than b.
Acute angle
A = arcsin(a ÷ c)
The angle opposite side a.
Worked Example
Check a square corner
Input: Legs a = 3 ft, b = 4 ft
- c² = 3² + 4² = 9 + 16 = 25
- c = √25 = 5
Result: If the diagonal between marks 3 ft and 4 ft along the edges measures 5 ft, the corner is square.
Frequently Asked Questions
Does the theorem work for any triangle?
No, only right triangles. For other triangles use the law of cosines, which reduces to the Pythagorean theorem when the angle is 90°.
What is a Pythagorean triple?
Three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17.
Which side is the hypotenuse?
The longest side, opposite the right angle. It is always c in the formula.
Which units can I use?
Any, as long as all sides use the same unit. Area is in that unit squared.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.