Pythagorean Theorem Calculator

Find the hypotenuse or either leg of a right triangle — free, private, no signup.

Any side Working shown Free forever

✓ Meets the ToolVaultly Standard · Last tested: Oct 10, 2026

🔒Private by design. Everything runs in your browser — nothing is uploaded or stored.
Quick answer: enter any two sides above — the calculator finds the third using a² + b² = c², e.g. sides 3 and 4 give hypotenuse 5.

Pythagorean theorem calculator

Short answer: the Pythagorean theorem states a² + b² = c² for right triangles. Enter two sides above and solve for the hypotenuse or either leg.

Pythagorean theorem formula

Short answer: the Pythagorean theorem formula is a² + b² = c². Hypotenuse: c = √(a² + b²). Leg: a = √(c² − b²). The calculator applies the right form automatically.

Worked example: why the 3-4-5 triangle always works

Step 1 — Square each side: 3² = 9 and 4² = 16, and 5² = 25.

Step 2 — Add the two smaller squares: 9 + 16 = 25.

Step 3 — Compare: the sum equals the square of the longest side exactly, so a triangle with sides 3, 4 and 5 must contain a right angle.

Any multiple of the same ratio works too, because the equation scales cleanly: 6-8-10, 9-12-15 and 30-40-50 are all right triangles. That is why the 3-4-5 pattern turns up on building sites — mark 3 units along one edge and 4 along the other, and the diagonal between the marks is exactly 5 only when the corner is square.

Real uses: ladders and screen sizes

Ladders are a find-the-leg problem. A 5 m ladder leans on a wall with its foot 3 m out from the base. The wall, the ground and the ladder form a right triangle, so the height it reaches is √(5² − 3²) = √(25 − 9) = √16 = 4 m. Notice the ladder itself is the hypotenuse — the longest side, opposite the right angle between wall and ground.

Screens are sold by their diagonal, which is a find-the-hypotenuse problem. A tablet screen measuring 20 cm by 15 cm has a diagonal of √(20² + 15²) = √(400 + 225) = √625 = 25 cm — that 25 cm corner-to-corner figure, converted to inches, is the size printed on the box.

Two checks before you start: the theorem only works on right triangles, so confirm one angle is 90°; and the hypotenuse must come out longer than either leg but shorter than the two legs added together. If your answer breaks either rule, a leg and the hypotenuse have been swapped somewhere.

Frequently asked questions

What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c².
How do you find the hypotenuse?
c = √(a² + b²). For sides 3 and 4: √(9 + 16) = √25 = 5. Select "Find hypotenuse" above and enter the two legs.
How do you find a missing leg?
a = √(c² − b²). Select "Find side a", enter the other leg and the hypotenuse — the calculator handles it.
What is a 3-4-5 triangle?
The most famous Pythagorean triple: 3² + 4² = 5² (9 + 16 = 25). Other triples include 5-12-13 and 8-15-17.
Does it work for non-right triangles?
No — the theorem only applies to right triangles (one 90° angle). For other triangles, use the law of cosines.
Is this Pythagorean calculator free?
Yes — unlimited calculations, free forever. No account, no limits. Everything runs in your browser.

Worked example: the 6-8-10 triangle

If the two short sides of a right triangle are 6 and 8, the hypotenuse is √(6² + 8²) = √(36 + 64) = √100 = 10. This 6-8-10 triangle is just the classic 3-4-5 triangle doubled, and builders use it to check corners are truly square: measure 6 units along one wall and 8 along the other — if the diagonal is exactly 10, the corner is a perfect right angle.

Solving for a short side works in reverse: with a hypotenuse of 13 and one side of 5, the other side is √(13² − 5²) = √(169 − 25) = √144 = 12.