Pythagorean Theorem Calculator

Find the missing side of a right triangle from the other two, and check for Pythagorean triples.

Find

Number entry: use a point for decimals (1.5). Commas grouped in threes are thousands separators (1,250), and a single comma such as 1,5 is read as a decimal comma. Nothing you enter leaves your device.

Showing the example values. Change the inputs and press Calculate for your own result.

Hypotenuse c

10

Sides (a, b, c)
6, 8, 10
Check: a² + b²
100
Check: c²
100
Area
24
Perimeter
24
Pythagorean triple
Yes: all three sides are whole numbers

Working

  1. c = √(a² + b²) = √(6² + 8²) = √100 = 10

Valid only for right-angled triangles. Use the same unit for all sides.

About the Pythagorean theorem calculator

The Pythagorean theorem states that in a right triangle the square of the hypotenuse equals the sum of the squares of the other two sides. This calculator finds whichever of the three sides is missing, and checks whether your triangle is a Pythagorean triple with whole-number sides.

It also reports the area and perimeter.

Who should use the Pythagorean theorem calculator

  • Students learning the theorem.
  • Builders checking that a corner is square (the 3-4-5 rule).
  • Anyone finding a diagonal.

How to use the Pythagorean theorem calculator: what each input means

Which side to find
The hypotenuse c, or leg a or b.
The other two sides
Positive lengths in the same unit. The hypotenuse must be longer than either leg.

How the Pythagorean theorem calculator works: method and formula

From a² + b² = c², the hypotenuse is c = √(a² + b²) and a leg is √(c² − b²). The calculator also shows a check by squaring the sides back.

Theorem
a² + b² = c²
Hypotenuse
c = √(a² + b²)
Leg
a = √(c² − b²)

How to read your Pythagorean theorem calculator result

The hypotenuse is always the longest side, opposite the right angle. If all three sides are whole numbers, they form a Pythagorean triple, such as 3-4-5, 5-12-13 or 8-15-17.

Pythagorean Theorem Calculator worked example

Legs of 6 and 8.

  1. c = √(6² + 8²) = √(36 + 64) = √100.
  2. c = 10.
  3. Check: 6² + 8² = 100 = 10². This is a multiple of the 3-4-5 triple.

The hypotenuse is 10, and the area is 24.

Practical uses of the Pythagorean theorem calculator

  • Finding the diagonal of a rectangle or screen.
  • Checking a corner is square with 3-4-5 measurements.
  • Calculating ladder reach and ramp lengths.

Assumptions and limitations of this calculator

  • Valid only for right triangles.
  • All lengths must be in the same unit.
FAQs

Pythagorean Theorem Calculator FAQs

Three whole numbers that satisfy a² + b² = c², for example 3-4-5.

Need Something Built Around Your Numbers?

Code & Motions designs and builds custom calculators, dashboards and web tools for businesses. Tell us what you have in mind.