What the Right Triangle Calculator does
The Right Triangle Calculator uses the Pythagorean theorem, a² + b² = c², to find the missing side of a right-angled triangle from the other two. The two shorter sides a and b are the legs, which meet at the right angle, and c is the hypotenuse, the longest side opposite the right angle. It also gives both acute angles, the area, the perimeter, the height to the hypotenuse, and tells you when the three sides are whole numbers forming a Pythagorean triple.
How to use it
- Enter any two sides and leave the third box empty.
- Put the longest side in the hypotenuse box; it must be longer than either leg.
- Read the missing side, with the working shown as a² + b² = c².
Example
With leg a = 5 and hypotenuse c = 13, the missing leg is √(13² − 5²) = √(169 − 25) = √144 = 12. The angles are about 22.62° and 67.38°, the area is 30 and the perimeter is 30. Since 5, 12 and 13 are whole numbers, they form a Pythagorean triple, and a primitive one, as they share no common factor.
Where the theorem is used
Builders check that a corner is square with the 3-4-5 rule: measure 3 units along one wall and 4 along the other, and the diagonal between the marks should be exactly 5. The same idea gives the length of a ladder against a wall, the diagonal of a screen, and the straight-line distance between two points on a map.
Common triples are 3-4-5, 5-12-13, 8-15-17 and 7-24-25, and any multiple of a triple is also a triple, such as 6-8-10.
Questions people ask
Is anything I enter sent anywhere?
No. The calculator works entirely in your browser, so your numbers stay on your device.
Does it work for any triangle?
Only for triangles with a 90° angle. For any other triangle, use the Triangle Calculator, which uses the laws of sines and cosines.
Can a leg be longer than the hypotenuse?
No. The hypotenuse is always the longest side of a right triangle, so if you enter a leg that is as long or longer, the calculator tells you the values cannot fit.