Skip to content
Matheminate
TopicsProgressWorksheetsGamesLabToolsAbout
← Back to tools

Pythagorean Theorem Calculator

Find a missing side of a right triangle, or check whether three sides make one. Whole-number triples are named, and the triangle is drawn as you type.

a² = 9b² = 16c² = 25a = 3b = 4c = 5

The two squares on the legs add up to the square on the hypotenuse.

How to use this calculator

Choose whether you are finding the hypotenuse, a leg, or checking three sides. Enter the lengths and press Solve step-by-step; the triangle is drawn from your numbers as you type.

How the calculation works

For a right triangle, the two shorter sides a and b satisfy a² + b² = c², where c is the hypotenuse opposite the right angle. Find c with √(a² + b²), or a missing leg with √(c² − known leg²). Whole-number sides give an exact answer when the square is a perfect square, such as 5 or 12; when it is not, the exact answer is a surd such as √2, printed with its decimal. Check mode sorts all three sides, verifies they form a triangle, and prints a² + b² beside c² before classifying it as right, acute, or obtuse. Very large or very small sides are compared as a ratio instead, so the verdict does not depend on scale. A whole-number right triangle is also checked for a Pythagorean triple: the result reduces it to the smallest version, names that triple, and shows the multiplier behind the sides on the page.

Worked examples

  1. 1. Find a hypotenuse

    Choose Find the hypotenuse and enter legs 3 and 4. c² = 3² + 4² = 25, so c = √25 = 5 exactly, in the same length unit.

  2. 2. Find a missing leg

    Choose Find a leg and enter hypotenuse 13 and known leg 5. b² = 13² − 5² = 144, so b = √144 = 12 exactly.

  3. 3. Check whether a triangle is right-angled

    Choose Check the triangle and enter 6, 8, 10 in any order. The sides sort to 6, 8, 10; 6² + 8² = 36 + 64 = 100 and 10² = 100, so the triangle is right-angled. The result also names 3-4-5 as the primitive triple behind 6, 8, 10.

Frequently asked questions

Can I use the Pythagorean theorem for any triangle?

The missing-side formulas apply only to right triangles. Check mode can classify any valid three-side triangle, but does not make a non-right triangle right-angled.

Which side is the hypotenuse?

It is opposite the 90° angle and is the longest side. In Find a leg mode it must be longer than the known leg.

What is a Pythagorean triple?

Three whole numbers that satisfy a² + b² = c², such as 3, 4 and 5. Multiplying every side by the same whole number makes another triple: 6, 8 and 10 is 3-4-5 ×2, and 9, 12 and 15 is 3-4-5 ×3. When your sides form one, the result names the smallest version and lists nearby multiples.

Can side lengths be decimals?

Yes. Positive fractional lengths are accepted. A whole-number answer is reported exactly, and a root that is not a whole number is given as a surd with its decimal, such as √2 ≈ 1.414213562. Classification of a checked triangle uses floating-point tolerance rather than demanding exact equality of computer decimals.

Why do my three side lengths fail the triangle check?

The two shorter sides must add to more than the longest side. Lengths 1, 2, 3 form a flat line, not a triangle.

Keep learning with related tools

Use trigonometry when you know an acute angle and a side instead of two sides. The Pythagorean lesson develops the square relationship, and the area tool can use a height you have just calculated. Related tools: Trigonometry Calculator, Area and Perimeter Calculator. Read the Pythagorean Theorem lesson or practice pythagorean theorem to build confidence without relying on a calculator.

Matheminate

Free math practice for Grades 4–12.

© 2026 Matheminate. All rights reserved.

Practice

  • Topics
  • Interactive Lab
  • Math Articles
  • Olympiad Practice

Site

  • About
  • Contact
  • Support
  • Privacy
  • Terms

Follow

  • Instagram
  • X