Skip to main content
🔢 Geometry

Pythagorean Theorem Calculator

Find a missing side of a right triangle with a² + b² = c² — the hypotenuse from two legs, or a leg from a leg and the hypotenuse. Also gives the area, perimeter and the two acute angles.

a² + b² = c²
Hypotenuse or leg
Area & perimeter
Angles
100% Free
🔢 Open All Math Calculators 📖 Read the Guide

Pythagorean theorem — Quick answer

For a right triangle: legs a and b, hypotenuse c. The square of the hypotenuse equals the sum of the squares of the legs.

a² + b² = c²  ·  c = √(a² + b²)  ·  b = √(c² − a²)

Worked example: legs 3 and 4 → hypotenuse 5 (area 6, perimeter 12, angles 36.87° & 53.13°).

Common Pythagorean triples

Leg aLeg bHypotenuse c
345
51213
81517
72425

Applies only to right triangles. The hypotenuse is the longest side.

🔢 Pythagorean Theorem Calculator

Choose what to find, then enter the two known sides.

Missing side
Area
Perimeter
Acute angles

⚠️ The theorem applies to right triangles only. In leg mode the hypotenuse must be longer than the known leg, or no right triangle exists (c² − a² would be negative).

The Pythagorean theorem is the cornerstone of right-triangle geometry: a² + b² = c², where a and b are the two legs (the sides meeting at the right angle) and c is the hypotenuse (the longest side, opposite the right angle). Rearranged, it finds any missing side — the hypotenuse as c = √(a² + b²), or a leg as b = √(c² − a²). This calculator does both, and throws in the triangle's area, perimeter and acute angles.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the Pythagorean theorem and right-triangle trig, recomputed in code.

The formula, both ways

Find the hypotenuse
c = √(a² + b²)
Find a leg
b = √(c² − a²)  (needs c > a)
Area, perimeter, angle
area = ½·a·b · perimeter = a + b + c · angle = arctan(opposite ÷ adjacent)

If you know both legs, square them, add, and take the square root for the hypotenuse. If you know a leg and the hypotenuse, subtract the squares the other way and take the root for the missing leg — but the hypotenuse must be the larger of the two, or the triangle can't exist. With all three sides known, the area is half the product of the legs and the acute angles come from the arctangent of the leg ratio.

Worked example — legs 3 and 4

Scenario: a right triangle with legs a = 3 and b = 4.

Hypotenuse
c = √(3² + 4²) = √(9 + 16) = √25 = 5
Area & perimeter
½·3·4 = 6 · 3 + 4 + 5 = 12
Acute angles
arctan(3/4) = 36.87° · arctan(4/3) = 53.13°

The famous 3-4-5 triangle: legs 3 and 4 give a hypotenuse of exactly 5, with area 6, perimeter 12, and acute angles of 36.87° and 53.13° (which sum to 90°, as they must). Working backward in leg mode, a leg of 5 with a hypotenuse of 13 gives the other leg as √(169 − 25) = 12 — the 5-12-13 triple. Any multiple of a triple works too, like 6-8-10.

Frequently Asked Questions

What is the theorem?

a² + b² = c² for a right triangle. Legs a, b; hypotenuse c (longest side).

How do I find the hypotenuse?

c = √(a² + b²). Legs 5, 12 → √169 = 13.

How do I find a leg?

b = √(c² − a²). a = 5, c = 13 → √144 = 12. Needs c > a.

What is a Pythagorean triple?

Whole-number sides: 3-4-5, 5-12-13, 8-15-17, 7-24-25 (and multiples).

What else does it give?

Area (½·a·b), perimeter (a+b+c), and the two acute angles.

Need more math tools?

Explore distance, slope, quadratic, percentage and more across the AI Calculator math suite.

🔢 Open Math Calculators — Free

No registration required · 350+ calculators · PDF report export