Pythagorean Theorem Calculator
Find the missing side of a right triangle or verify if three sides form a right triangle.
Pythagorean Theorem Calculator tool
Example
Input: Find the hypotenuse: side A = 3, side B = 4
Result: Hypotenuse C = 5 (Pythagorean triple: Yes; angles 36.8699 / 53.1301 / 90 degrees)
c = sqrt(a^2 + b^2) = sqrt(3^2 + 4^2) = sqrt(9 + 16) = sqrt(25) = 5.
Common Right Triangles
| Legs a, b | Hypotenuse c | Acute angles (degrees) | Area |
|---|---|---|---|
| 3, 4 | 5 | 36.8699 / 53.1301 | 6 |
| 5, 12 | 13 | 22.6199 / 67.3801 | 30 |
| 8, 15 | 17 | 28.0725 / 61.9275 | 60 |
| 7, 24 | 25 | 16.2602 / 73.7398 | 84 |
| 20, 21 | 29 | 43.6028 / 46.3972 | 210 |
| 9, 40 | 41 | 12.6804 / 77.3196 | 180 |
| 6, 8 | 10 | 36.8699 / 53.1301 | 24 |
| 1, 1 | 1.414214 | 45 / 45 | 0.5 |
All but the last row are whole-number Pythagorean triples.
- Select the mode: Find Hypotenuse, Find Side A, Find Side B, or Verify Triangle.
- In a find mode, enter the two known sides (the mode sets which side is calculated).
- View the missing side length calculated using the Pythagorean theorem, plus the area, perimeter, and angles.
- In verify mode, enter all three sides to check if they satisfy a^2 + b^2 = c^2.
- Compare the sum of the squared legs with the squared hypotenuse and the difference shown in verify mode.
- Click the copy button to copy the result.
Using a^2 + b^2 = c^2 in Real Life
The Pythagorean theorem says that in a right triangle, a^2 + b^2 = c^2, where c is the hypotenuse, the side opposite the right angle. With legs of 3 and 4, the hypotenuse is 5. This calculator finds any missing side from the other two, or checks whether three sides make a right triangle.
Pick a mode first. Find Hypotenuse uses c = sqrt(a^2 + b^2). Find Side A and Find Side B work backward from the hypotenuse and the other leg, using a = sqrt(c^2 - b^2). With the missing side, you also get the area, the perimeter and both acute angles. You also see whether the three sides form a whole-number Pythagorean triple.
The theorem turns up in all kinds of practical jobs. To check that a corner is square, measure 3 feet along one wall and 4 feet along the other. The diagonal between the marks should be exactly 5 feet. A 16:9 TV that is 48 inches wide and 27 inches tall has a 55.07-inch diagonal. A 5 m ladder with its foot 1.5 m from a wall reaches 4.77 m up.
Verify Triangle mode takes all three sides. It treats the longest one as the hypotenuse, whichever box you typed it in. It compares the sum of the squared legs with the squared hypotenuse and shows the difference. A tiny gap from rounding is allowed, so 1, 1 and 1.414214 still counts as right. If the sides are not a right triangle, it tells you whether the triangle is acute, obtuse, or impossible. For triangles without a right angle, use the Triangle Calculator. To take other roots, try the Square Root and Nth Root Calculator.
Formula / How It Works
Frequently Asked Questions
Related Tools
Triangle Calculator
Solve any triangle from 3 known values. Compute all sides, angles, area, perimeter, and draw diagrams.
Math and NumbersSquare Root and Nth Root Calculator
Calculate square roots, cube roots, and any nth root of a number with precision.
Math and Numbers