Skip to main content

Grade 8 & geometryFree, no account needed

Pythagorean theorem calculator

Find a right triangle's hypotenuse or missing leg, with exact rational or radical answers and a square check.

All calculators

Try your problem

For a missing leg, enter known leg a and hypotenuse c.
One of the two sides that meet at the right angle.
The other perpendicular leg; used to find the hypotenuse.
Opposite the right angle; must be longer than leg a.
The missing side uses these linear units.

Your calculations stay in this browser. No input history is saved.

Supported inputs and limits

Right triangles only. Known lengths must be positive and at most 10,000, with reduced denominator at most 1,000,000. The computed hypotenuse may exceed 10,000. Exact radicals may remain unsimplified; approximate roots use 10 significant digits. All lengths use the same unit; no conversion. Paste at most 200 characters: pythagorean hypotenuse 3 4 cm or pythagorean missing-leg 5 13 cm (known leg, then hypotenuse). Paste fractions without internal spaces; units: units, cm, m, in, ft.

Understand the method

A right triangle has legs 3 and 4 and hypotenuse 5; a right-angle marker and 3^2 + 4^2 = 9 + 16 = 25 show the theorem.

In a right triangle, the side opposite the right angle is the hypotenuse c. The two perpendicular sides are legs a and b. The Pythagorean theorem relates their lengths by a^2 + b^2 = c^2; it does not apply to every triangle.

To find c, add the leg squares and take the positive square root. To find b from a and c, subtract a^2 from c^2 before taking the positive square root. A perfect rational square has an exact rational root; otherwise an exact radical and a labeled decimal approximation describe the same length.

Worked examples

Read the reasoning, or load an example into the calculator.

The 3-4-5 triangle

c^2 = 3^2 + 4^2 = 25, so c = 5 cm.

Recover a missing leg

With a = 5 m and c = 13 m, b^2 = 169 - 25 = 144, so b = 12 m.

An irrational length

Two unit legs give c^2 = 2, so c = sqrt(2) units, approximately 1.414213562 units.

Try it without the calculator

Three questions for practice, not a graded school assessment. Your answers stay on this page and are not saved.

1. Legs are 6 and 8. What is the hypotenuse?
2. The hypotenuse is 10 and one leg is 8. What is the other leg?
3. Which side is the hypotenuse?

Original Testinar learning content. This local preview is awaiting final review before publication.

Page UP