Pythagorean Theorem Calculator
With the default inputs, the missing side comes to 10.
Result
Exact decimal arithmetic
The formula
a² + b² = c², with c the hypotenuse opposite the right angle. The legs are a and b. Area = ½ a b, and the angle opposite leg a is atan(a ÷ b).
Worked example
Legs of 6 and 8: c = √(36 + 64) = 10. The area is 24, the perimeter 24, and the acute angles are 36.87° and 53.13°. Given c = 13 and b = 12, the other leg is √(169 − 144) = 5.
About this calculator
In any right triangle the square on the hypotenuse equals the sum of the squares on the other two sides. Choose which side you want, then enter the two you know: the other field is ignored. The calculator returns the missing length and, since the triangle is now complete, its area, perimeter and the two acute angles. A 3, 4, 5 triangle is the classic example, and so is the 5, 12, 13 triangle that builders use to check a corner is square. Worked scenarios, each run through the same calculator: legs 66 and 38.5 gives missing side 76.4084, acute angles 59.74° and 30.26°; legs 43 and 36 gives missing side 56.0803, acute angles 50.06° and 39.94°; legs 61 and 53.5 gives missing side 81.1372, acute angles 48.75° and 41.25°; legs 36 and 82 gives missing side 89.5545, acute angles 23.7° and 66.3°; legs 70 and 37 gives missing side 79.177, acute angles 62.14° and 27.86°; legs 78.5 and 24.5 gives missing side 82.2344, acute angles 72.67° and 17.33°; legs 37.5 and 81.5 gives missing side 89.7134, acute angles 24.71° and 65.29°; legs 54.5 and 65 gives missing side 84.8248, acute angles 39.98° and 50.02°; legs 70 and 14 gives missing side 71.3863, acute angles 78.69° and 11.31°; legs 10 and 40 gives missing side 41.2311, acute angles 14.04° and 75.96°; legs 37.5 and 72 gives missing side 81.1804, acute angles 27.51° and 62.49°; legs 45.5 and 61 gives missing side 76.1003, acute angles 36.72° and 53.28°.
Sources and method
Every number is worked out with exact decimal arithmetic, not floating point, and rounded only when it is shown.
Sources
- 9.3 Use Properties of Angles, Triangles, and the Pythagorean Theorem (Prealgebra 2e) · OpenStax, Rice University, checked . The theorem: in a right triangle the sum of the squares of the two legs equals the square of the hypotenuse (a^2 + b^2 = c^2), with the hypotenuse opposite the 90 degree angle. The page works an example that finds the hypotenuse; finding a leg is the same relation rearranged.
Frequently asked questions
Does it work for any triangle?
Only right triangles. For other triangles use the law of cosines or one of the triangle solvers.
What are Pythagorean triples?
Sets of whole numbers that fit, such as 3, 4, 5 and 5, 12, 13 and 8, 15, 17.
Why must the hypotenuse be the longest side?
It sits opposite the largest angle, 90°, so it is always longer than either leg.