Skip to content

Pythagorean Theorem Calculator

Enter two sides of a right triangle to find the third.

Leave the side you want empty.

Hypotenuse c

5

a
3
b
4
c
5
Angle α (opposite a)
36.86989765°
Angle β (opposite b)
53.13010235°
Area
6
Perimeter
12

How it was calculated

  1. a² + b² = c²
  2. c = √(a² + b²) = √(3² + 4²) = √(9 + 16) = √25
  3. c = 5

Calculations run on this device and your inputs are not uploaded. A share link puts your inputs in the URL, so anyone with the link can read them.

More Math Calculators

All calculators

How the pythagorean theorem calculator works

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².

To find the hypotenuse, c = √(a² + b²). To find a leg, a = √(c² - b²). When the answer isn't a whole number, it's also shown as a simplified square root, such as 5√2, which is the exact form most classes ask for.

Whole-number solutions like 3-4-5, 5-12-13 and 8-15-17 are called Pythagorean triples.

Using and checking your result

Published by JustYourCalculator. Check the units and assumptions above, and compare a known example before relying on the output. Calculations use browser arithmetic and may round displayed values.

Share links may contain your input values. Anyone with the URL can read them; avoid sharing sensitive personal or financial information.

Frequently asked questions

The longest side, directly across from the 90° angle. It's always c in a² + b² = c².

Only right triangles. For other triangles use the law of cosines, c² = a² + b² - 2ab cos C, which reduces to Pythagoras when C = 90°.

Check whether the two shorter sides squared add up to the longest side squared. 6, 8, 10 works because 36 + 64 = 100.

Yes. Every calculator is free with no sign-up. Clearly labeled ads keep it that way.

Calculations run in your browser. Share links put inputs in the URL, which can be read by anyone you send it to and is sent to the hosting server when opened. Avoid sharing sensitive numbers. Currency conversion requests public exchange rates.

Results follow the formulas and assumptions shown, with normal rounding and numerical limits. Taxes, rates and health guidance can change, so treat these as estimates and confirm important decisions with a qualified professional.