Pythagorean Theorem Calculator
Use the Pythagorean theorem in seconds: find the hypotenuse from two legs, find a missing leg from the hypotenuse and the other leg, or check whether three sides make a right triangle. You also get the steps, area, perimeter and angles.
Calculator
Hypotenuse (c)
5
c = √(a² + b²)
Area
6
a × b ÷ 2, in square units
Perimeter
12
a + b + c
- Angle α (opposite leg a)
- 36.87°
- Angle β (opposite leg b)
- 53.13°
Step by step
c² = a² + b²
c² = 3² + 4² = 9 + 16 = 25
c = √25 = 5
Use the same unit for every side (inches, feet, cm…): the answer comes out in that unit, and the area in square units.
Keep analyzing
- Find the area of a square, rectangle, triangle, circle, trapezoid, parallelogram, rhombus or ellipse, with the formula, the substitution and other square units.Area
- Solve ax² + bx + c = 0 with the quadratic formula: discriminant, real or complex roots, vertex and step-by-step work.Quadratic equation
- A free scientific calculator with powers, roots, logarithms, trig functions in degrees or radians, factorials, parentheses and the constants π and e.Scientific calculator
- Convert meters to feet and feet to meters with the exact definition 1 ft = 0.3048 m, including height in feet and inches.Meters to feet
For estimates only. Double-check the numbers before making important decisions.
How to use the calculator
- Hypotenuse: enter both legs, the two sides that form the right angle.
- A missing leg: enter the hypotenuse (the longest side, opposite the right angle) and the leg you know. The hypotenuse has to be longer than the leg.
- Is it a right triangle?: enter three sides in any order. The longest is treated as the hypotenuse and the calculator checks whether a² + b² = c².
Use the same unit for every side (inches, feet, cm…). Answers come out in that unit, and the area in square units.
The Pythagorean theorem
In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. Rearranging the equation gives you any side from the other two.
a² + b² = c² Hypotenuse: c = √(a² + b²) Leg: b = √(c² − a²)
The converse works too: if three sides satisfy a² + b² = c², the triangle is a right triangle. If a² + b² is greater than c², it's acute; if it's less, it's obtuse.
How to read the results
- Area and perimeter: the area is leg × leg ÷ 2, since the legs are the base and height. The perimeter adds up all three sides.
- Angles α and β: the two acute angles, which always add up to 90°. α is opposite leg a and β is opposite leg b.
- "Almost" a right triangle: rounded measurements like 1, 1 and 1.414 won't match exactly. If a² + b² and c² are within 1% of each other, the calculator counts it as a right triangle and shows the difference.
| Pythagorean triple | Check |
|---|---|
| 3, 4, 5 | 9 + 16 = 25 |
| 5, 12, 13 | 25 + 144 = 169 |
| 8, 15, 17 | 64 + 225 = 289 |
| 7, 24, 25 | 49 + 576 = 625 |
Any multiple of a triple is also a triple: 6, 8, 10 or 9, 12, 15.
Real-world uses
- Squaring a corner: the 3-4-5 rule. Mark 3 ft along one wall and 4 ft along the other; if the diagonal is exactly 5 ft, the corner is square.
- Ladders and ramps: figure out how high a ladder reaches based on how far its base is from the wall.
- TV and monitor sizes: screen size is the diagonal. A 16:9 screen 48 inches wide and 27 inches tall measures √(48² + 27²) ≈ 55.07 in, a 55-inch TV.
- Straight-line distance between two points on a map or grid: it's the hypotenuse of the horizontal and vertical distances.
For the area of other shapes, try the area calculator. If a problem leaves you with an x² equation, solve it with the quadratic equation solver.
Example: how high does a ladder reach?
You lean a 20-foot ladder against a wall with its base 5 feet out. The ladder is the hypotenuse and the distance along the ground is one leg, so the height it reaches is the other leg: about 19.36 feet.
- b² = c² − a²
- b² = 20² − 5² = 400 − 25 = 375
- b = √375 ≈ 19.3649 ft
Common mistakes
- Adding the squares when you're solving for a leg: for a leg you subtract, b² = c² − a².
- Using a side that isn't the longest as the hypotenuse. The hypotenuse is always the longest side, across from the right angle.
- Forgetting the square root at the end: if a² + b² = 25, the side is 5, not 25.
- Mixing units, like one leg in feet and the other in inches.
Frequently asked questions
How do you find the hypotenuse?
Square each leg, add them and take the square root: c = √(a² + b²). With legs of 6 and 8: √(36 + 64) = √100 = 10.
How do you find a missing leg?
Subtract the square of the known leg from the square of the hypotenuse, then take the square root: b = √(c² − a²). With a hypotenuse of 13 and a leg of 5: √(169 − 25) = √144 = 12.
Does the Pythagorean theorem work for any triangle?
No, only for right triangles (with a 90° angle). For other triangles, use the law of cosines, c² = a² + b² − 2ab·cos(C), which turns into the Pythagorean theorem when C = 90°.
How can I tell if a triangle is a right triangle?
Square all three sides and check whether the two smaller squares add up to the largest. 6, 8 and 10 work (36 + 64 = 100); 6, 8 and 11 don't (100 < 121), so that triangle is obtuse.
Related calculators
Keep going with the next step.
- AreaFind the area of a square, rectangle, triangle, circle, trapezoid, parallelogram, rhombus or ellipse, with the formula, the substitution and other square units.
- Quadratic equationSolve ax² + bx + c = 0 with the quadratic formula: discriminant, real or complex roots, vertex and step-by-step work.
- Scientific calculatorA free scientific calculator with powers, roots, logarithms, trig functions in degrees or radians, factorials, parentheses and the constants π and e.
- Meters to feetConvert meters to feet and feet to meters with the exact definition 1 ft = 0.3048 m, including height in feet and inches.
- ProportionSolve a proportion a/b = c/d for whichever value is missing, with the cross-multiplication shown step by step.