Free Online Calculator

Pythagorean Theorem Calculator

Find a missing side of a right triangle: a² + b² = c².

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: the Pythagorean theorem

In a right triangle a² + b² = c². With legs 3 and 4, c = √25 = 5 — the famous 3-4-5 triangle.

Overview of the Pythagorean Theorem Calculator

The Pythagorean theorem says that in a right triangle the square of the hypotenuse equals the sum of the squares of the other two sides. Leave one box empty and this calculator finds the missing side with the working shown and flags Pythagorean triples; the second tool checks whether any three sides form a right, acute or obtuse triangle.

For angles and area use the Right Triangle Calculator; for non-right triangles the Triangle Calculator. The distance between two points is the same theorem — see the Distance Calculator — and the Root Calculator simplifies the square roots.

How We Calculate

The calculator applies the standard method step by step.

  1. Hypotenuse: c = √(a² + b²).
  2. A missing leg: a = √(c² − b²) or b = √(c² − a²).
  3. The hypotenuse must be the longest side.
  4. Test: if a² + b² = c² the triangle is right; if greater, acute; if less, obtuse.
a² + b² = c²   c = √(a² + b²)   a = √(c² − b²)
Worked example — pythagorean theorem calculator
ItemValue
a3
b4
c5
Area6
Perimeter12
Angle A36.86989765°
Angle B53.13010235°
Steps
Working
c² = a² + b² = 9 + 16 = 25
c = √25 = 5
Hypotenuse c
LegsHypotenuse
Legs 3 and 45
Legs 5 and 1213
Legs 8 and 1517
Legs 1 and 11.41421356237
Legs 7 and 2425
Common Pythagorean triples
abcCheck a² + b² = c²
3459 + 16 = 25
5121325 + 144 = 169
8151764 + 225 = 289
7242549 + 576 = 625
202129400 + 441 = 841
9404181 + 1600 = 1681
681036 + 64 = 100
121620144 + 256 = 400
152025225 + 400 = 625
102426100 + 576 = 676

Pythagorean Theorem Calculator — Frequently Asked Questions

What is the Pythagorean theorem?

In a right triangle, a² + b² = c², where c is the hypotenuse.

How do I find the hypotenuse?

Square both legs, add them and take the square root: legs 3 and 4 give √25 = 5.

How do I find a missing leg?

Subtract the square of the known leg from the square of the hypotenuse and take the square root.

What is a Pythagorean triple?

Three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13 and 8-15-17.

Does the theorem work for any triangle?

Only for right triangles. For others use the law of cosines.

Who discovered the theorem?

It is named after the Greek mathematician Pythagoras, but it was known to Babylonian and Indian mathematicians (Baudhayana) earlier.

How is the pythagorean theorem calculator calculated?

It uses the standard method: a² + b² = c²   c = √(a² + b²)   a = √(c² − b²) The full working and a worked example are shown on this page.

How accurate is this calculator?

Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.

Can I use it for homework or exams?

Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

2 + 2 =
Call WhatsApp