Loona Calculators
Loona Calculators › Math › Pythagorean Theorem Calculator

📐 Pythagorean Theorem Calculator

Enter any two sides of a right-angled triangle and the calculator finds the third side using the Pythagorean theorem, showing the full substitution so students can follow every step.

Quick answer: The Pythagorean theorem says a² + b² = c² for a right triangle, where c is the hypotenuse. The classic example is 3-4-5: 9 + 16 = 25, so the hypotenuse is 5.

How to use the Pythagorean Theorem Calculator

  1. Enter the two sides you know (leave the unknown side blank, or set it to 0).
  2. If you know the hypotenuse, enter it as c.
  3. Press Calculate — the missing side and the full working appear.
Example: Legs 6 and 8: c = √(36 + 64) = √100 = 10. With hypotenuse 13 and leg 5: the other leg = √(169 − 25) = √144 = 12.

Frequently Asked Questions

Which side is the hypotenuse?

The side opposite the right angle — always the longest side, labeled c here. The other two sides (legs) are a and b.

How do you find a leg instead of the hypotenuse?

Rearrange the theorem: a = √(c² − b²). The hypotenuse must be longer than either leg; if it is not, the triangle cannot be a right triangle with those sides and the calculator says so.

Does it work for non-right triangles?

No. The theorem is true only for right-angled triangles. For other triangles you need the law of cosines — the Trigonometry Calculator on this site can help with angles and ratios.

Why do 3-4-5 triangles appear everywhere?

Because 3² + 4² = 5² exactly, builders and carpenters have used a 3-4-5 rope or tape to mark true right angles for thousands of years. Other whole-number triples include 5-12-13, 8-15-17 and 7-24-25.

Related Calculators

%

Percentage Calculator

Math

📊

Statistics Calculator

Math

½

Fraction Calculator

Math

🧮

Equation Solver

Math

🔬

Scientific Calculator

Math

📐

Average Calculator

Math

How it works — the formula

a² + b² = c². Finding the hypotenuse: c = √(a² + b²). Finding a leg: a = √(c² − b²) or b = √(c² − a²). Exactly two sides must be given; the third is derived, and a leg can only be found when the hypotenuse is the longest side.

Worked example

Inputs: hypotenuse c = 13, leg a = 5, find b.

Steps: b = √(c² − a²) = √(169 − 25) = √144 = 12.

Result: b = 12 — the 5-12-13 triple.

Embed this calculator on your website — free

Add this calculator to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the calculator to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.