iTutorzz

Free geometry tool

Pythagorean Theorem Calculator

Use the Pythagorean theorem, a² + b² = c², to find the hypotenuse or a missing leg of a right triangle, or to check whether three sides make a right triangle. Answers are exact, so √50 shows as 5√2 alongside the decimal, with every step and a picture of the squares on each side drawn to scale. Free, no signup.

Whole numbers, decimals (2.5) or fractions (3/4). The legs meet at the right angle; the hypotenuse is opposite it.

Try an example:
a² = 9b² = 16c² = 25

The two smaller squares together have exactly the area of the biggest one.

Hypotenuse c

c = 5

c² = a² + b²

25
a perfect square, so the side is exact

3, 4, 5 is a Pythagorean triple: three whole numbers that fit a² + b² = c².

Step by step

  1. 1
    The Pythagorean theorem: the squares of the legs add up to the square of the hypotenuse.
    a^2 + b^2 = c^2
  2. 2
    Put in the legs.
    3^2 + 4^2 = c^2
  3. 3
    Square them and add.
    9 + 16 = 25 = c^2
  4. 4
    Take the square root (a length is positive).
    c = \sqrt{25} = 5

The theorem and its rearrangements

c\displaystyle c
=a2+b2\displaystyle = \sqrt{a^{2} + b^{2}}
a\displaystyle a
=c2−b2\displaystyle = \sqrt{c^{2} - b^{2}}
b\displaystyle b
=c2−a2\displaystyle = \sqrt{c^{2} - a^{2}}

It only works for right triangles. Always check which side is the hypotenuse: it is opposite the right angle and is always the longest side.

Where it shows up

Distances on a coordinate grid (the distance formula is the theorem in disguise), the diagonal of a TV or a ladder against a wall, and the slant heights of cones and pyramids all come from a² + b² = c².

Frequently asked questions

What is the Pythagorean theorem?+

In a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c². For legs of 3 and 4, c² = 9 + 16 = 25, so the hypotenuse is 5.

How do I find a missing leg?+

Rearrange the theorem: b² = c² − a². With a hypotenuse of 13 and a leg of 5, b² = 169 − 25 = 144, so b = 12. The hypotenuse must be the longest side, or there is no answer.

Why does the answer have a square root in it?+

Many answers aren't whole numbers. Legs of 1 and 1 give c = √2, which is about 1.4142 but never ends as a decimal. The calculator shows the exact simplified form (√50 = 5√2) as well as the decimal.

How can I tell if a triangle is a right triangle?+

Square the two shorter sides and add them. If the sum equals the square of the longest side, the triangle has a right angle (the converse of the Pythagorean theorem). If the sum is bigger the triangle is acute; if smaller, it is obtuse.

What is a Pythagorean triple?+

Three whole numbers that fit a² + b² = c², such as 3, 4, 5; 5, 12, 13; and 8, 15, 17. Multiplying a triple by any whole number gives another one: 6, 8, 10 is twice 3, 4, 5.

Working on triangles?

Solve any triangle next, or get a geometry tutor to make it click, one-on-one. Your first trial lesson is free.

Make geometry click

A 1-on-1 geometry tutor explains why the theorem works, not just how to use it. Your first trial lesson is free.