Pythagorean Theorem Calculator
Calculate missing sides of right triangles using the Pythagorean theorem. Free, fast, accurate — no signup, mobile-frien
Triangle Calculation
Calculation Type
Triangle Sides
Length of side a (leg)
Length of side b (leg)
Minimum is 0.001
Length of hypotenuse (longest side)
Options
Number of decimal places
Calculation Results
Side a
Leg
Side b
Leg
Hypotenuse c
Longest side
Right Triangle?
a² + b² = c²
Triangle Angles
Triangle Measurements
📐 About the Pythagorean Theorem
Formula: a² + b² = c²
Named after: Pythagoras (c. 570-495 BC), though known earlier
Applies to: Right triangles only (triangles with a 90° angle)
Key insight: The square of the hypotenuse equals the sum of squares of the other two sides
How it works
The Pythagorean theorem links the three sides of a right triangle: the square of the longest side (the hypotenuse, opposite the right angle) equals the sum of the squares of the other two. Rearranging it lets you find any one side when you know the other two.
Pythagorean theorem
a² + b² = c² → c = √(a² + b²) and a = √(c² − b²)
- a, b
- the two legs (sides forming the right angle)
- c
- the hypotenuse (longest side)
Worked example
- Legs a = 3, b = 4
- c² = 3² + 4² = 9 + 16 = 25
- c = √25
c = 5 — the classic 3-4-5 right triangle.
Good to know
- It only works for right triangles (one 90° angle) — for other triangles you need the law of cosines.
- To find a leg instead of the hypotenuse, subtract: a = √(c² − b²).
- “Pythagorean triples” like 3-4-5, 5-12-13, and 8-15-17 are whole-number right triangles worth recognizing.