Math & Education
Pythagorean Theorem Calculator
Find the missing side of a right triangle with a² + b² = c² — the hypotenuse from two legs, or a leg from the hypotenuse and the other leg.
How to use
- 1Choose which side is missing.
- 2Enter the two sides you know.
How it's calculated
c = √(a² + b²) for the hypotenuse; a = √(c² − b²) for a leg.
Frequently asked questions
Which side is the hypotenuse?
The longest side, opposite the right angle.
What are Pythagorean triples?
Whole-number sides that fit exactly, like 3-4-5, 5-12-13 and 8-15-17.
How do builders use this?
The 3-4-5 rule checks a corner is square: measure 3 ft along one side and 4 ft along the other; the diagonal should be exactly 5 ft.
Why it only works for right triangles
a² + b² = c² comes directly from the geometry of a right angle — it can be proven by rearranging four copies of the same right triangle into a square two different ways and comparing the leftover areas. That proof depends entirely on one of the angles being exactly 90°; for any other triangle the relationship simply doesn't hold, which is why solving a non-right triangle needs the law of cosines instead (a generalization that adds a correction term for the actual angle).
Worked example: Pythagorean Theorem Calculator
Legs of 3 and 4 give a hypotenuse of √(9 + 16) = √25 = 5 — the 3-4-5 triple, and the triangle's area is (3 × 4) ÷ 2 = 6. Going the other direction, a hypotenuse of 13 with one leg of 12 gives a missing leg of √(169 − 144) = √25 = 5 — the same 5 appearing because 5-12-13 is another classic Pythagorean triple, a set of whole numbers that happens to satisfy the equation exactly with no rounding.
The 3-4-5 rule is this formula used backward
Builders squaring a corner measure 3 feet along one wall and 4 feet along the other, then check the diagonal between those two marks is exactly 5 feet — if it is, the corner is a true right angle, because only a right angle produces that exact 3-4-5 relationship. It's a practical way to verify a 90° angle with nothing more than a tape measure, using the same equation in reverse: confirming c² = a² + b² rather than solving for an unknown side.
Why multiples of a Pythagorean triple are also triples
3-4-5 isn't the only whole-number solution, and scaling it up always keeps working: 6-8-10, 9-12-15 and 30-40-50 all satisfy a² + b² = c² just as exactly as the original, because multiplying every side by the same factor k scales both sides of the equation by k² — (3k)² + (4k)² = 9k² + 16k² = 25k² = (5k)². That's genuinely useful on a job site: a 3-4-5 triangle might be too small to mark out accurately on a large slab, but a 9-12-15 triangle (three times the size) checks the exact same right angle with more room for measuring error to average out.
Why a leg can never be longer than the hypotenuse
When solving for a missing leg, the calculator requires the hypotenuse you entered to be strictly longer than the known leg, and rejects the input otherwise. That's not an arbitrary restriction — the hypotenuse is defined as the side opposite the right angle, and in any right triangle it's geometrically the longest side by necessity, since it's the one stretching across the triangle rather than forming part of the right angle itself. If you enter a 'hypotenuse' shorter than the other leg, the numbers simply don't describe a valid right triangle, and √(c² − b²) would otherwise try to take the square root of a negative number.
Related tools
- Equation Solver (Linear & Quadratic)
Solve linear and quadratic equations in x — typed naturally like 3x + 5 = 2x - 7 or x^2 - 5x + 6 = 0 — with the discriminant, vertex and real or complex roots.
- Polynomial Factoring Calculator
Factor polynomials with integer coefficients — common factors, rational roots, difference of squares and irreducible quadratics — and list all the roots.
- Triangle Calculator
Solve any triangle from three known values (SSS, SAS or ASA): all sides, angles, area, perimeter and heights, using the law of sines and cosines.
- Slope, Distance & Midpoint Calculator
Find the slope, line equation (y = mx + b), distance, midpoint and angle between two points on a coordinate plane.
- English Level Test (CEFR A1–C2)
Find your English level in about 10 minutes — 30 grammar and vocabulary questions from beginner (A1) to proficient (C2), with your CEFR level and explanations for every answer.
- Ohm's Law Calculator
Enter any two of voltage, current, resistance and power to calculate the other two with Ohm's law and the power formulas.