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.
Can't find the exact calculator you need?
Describe it in one sentence — get a working, math-verified calculator in seconds. Free, no signup.
Build your own calculatorRelated Calculators
Frequently Asked Questions
What is the Pythagorean theorem?
In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². The hypotenuse c is always the longest side, opposite the right angle.
How do I find a missing leg instead of the hypotenuse?
Rearrange the formula: a = √(c² - b²). For example, with a hypotenuse of 13 and one leg of 5, the other leg is √(169 - 25) = √144 = 12.
Does the Pythagorean theorem work for all triangles?
No — only right triangles. For other triangles, use the law of cosines, which generalizes the theorem: c² = a² + b² - 2ab·cos(C).
What are Pythagorean triples?
Whole-number side sets that satisfy the theorem, like (3, 4, 5), (5, 12, 13), and (8, 15, 17). Any multiple of a triple, such as (6, 8, 10), also works.
Where is the Pythagorean theorem used in real life?
Builders square foundations with the 3-4-5 method, and it gives the diagonal of a TV or room, ladder placement distances, and straight-line distance between two points on a coordinate grid.