Pythagorean Theorem Calculator
Enter any two sides of a right triangle and get the third, plus the area, perimeter, both angles and a line of working that shows how it was found.
Reviewed 23 November 2026 · Free · No account needed
How to use
- Type two sides of a right triangle. Sides a and b are the short sides, and side c is the hypotenuse, the longest side across from the right angle.
- Leave the third box empty. The tool works out the missing side and shows the working.
- Read the area, perimeter, the two angles, the height down to the hypotenuse and the radius of the inscribed circle.
- Fill in all three sides to check whether they make a right triangle, or press an example such as 5-12-13.
Example
Input: a = 3, b = 4
Output: c = 5, area 6, angles 36.87° and 53.13°
How it works
In a right triangle the square on the hypotenuse equals the sum of the squares on the other two sides. The tool uses that to find whichever side is blank, then works out the area, the angles and the other measures from the three sides.
c = √(a² + b²). a = √(c² − b²). b = √(c² − a²). Area = a × b ÷ 2. Perimeter = a + b + c. Angle A = arctan(a ÷ b). Angle B = 90° − angle A. Height to the hypotenuse = a × b ÷ c. Inscribed circle radius = (a + b − c) ÷ 2.
With a = 3 and b = 4, c = √(9 + 16) = √25 = 5. The area is 3 × 4 ÷ 2 = 6 and the perimeter is 12. Angle A is arctan(3 ÷ 4) = 36.87° and angle B is 53.13°. The height to the hypotenuse is 12 ÷ 5 = 2.4.
Limits and edge cases
- The triangle must have a right angle. The theorem does not hold for other triangles.
- Every side must be greater than zero, and the hypotenuse must be longer than each of the other sides.
- Answers are rounded to six decimal places. Use the same unit for all sides.
- When all three sides are filled in, they are accepted only if a² + b² equals c² apart from a tiny rounding error.
- If c is not longer than the known leg, no right triangle exists, and the tool says so instead of returning an impossible number.
- Whole-number sets such as 3-4-5 are called Pythagorean triples. The tool points them out and says when one is a multiple of a smaller triple, such as 6-8-10.
- With all three sides filled in, the check allows a tiny rounding difference, so 1.5, 2 and 2.5 pass.
- A blank box means unknown, but 0 is rejected, because a side of zero length is not a triangle.
Privacy
Everything is calculated in this browser tab. The numbers you enter are never sent to a server or stored.
About this page
Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.
Guides that use Pythagorean Theorem Calculator
Related tools
Questions about Pythagorean Theorem Calculator
What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse, the longest side, equals the sum of the squares of the other two sides. It is written a² + b² = c². For sides 3 and 4 it gives 9 + 16 = 25, so the hypotenuse is 5.
How do I find a missing leg?
Subtract the square of the known leg from the square of the hypotenuse, then take the square root. For c = 13 and b = 12, a = √(169 − 144) = √25 = 5. Enter c and b and leave a blank.
Can I use it for any triangle?
No. It works only when one angle is exactly 90 degrees. For other triangles use the law of cosines or the law of sines.
What is a Pythagorean triple?
A set of three whole numbers that fit the theorem, such as 3-4-5, 5-12-13 and 8-15-17. Multiplying all three by the same number gives another triple, so 6-8-10 is a triple too.
How are the angles found?
Angle A, across from side a, is the inverse tangent of a divided by b. Angle B is 90 degrees minus angle A, because the three angles of a triangle add up to 180.
Is anything uploaded?
No. The sides are calculated in your browser and are never sent anywhere.