Pythagorean Theorem Calculator
a 3 · b 4
c = 5
3² + 4² = 25 → c = √25 = 5
Same units as the sides you entered
History
Results show up here. Tap Use to plug one into the next calculation.
Enter two sides and this Pythagorean theorem calculator finds the missing side of a right triangle with a² + b² = c², where c is the hypotenuse, opposite the right angle. Legs 3 and 4 give c = √25 = 5.
The formula line under the result shows the work with your numbers. Use runs both ways: the result can go on to the next calculation, here or elsewhere, and a number from another calculator drops straight into a, b or c. Sides can be preset in a link: this one opens legs 9 and 12 already solved.
Pythagorean Theorem Formula
In a right triangle, the squares of the two legs add up to the square of the hypotenuse:
a² + b² = c²
The legs a and b meet at the right angle. The hypotenuse c sits opposite it and is always the longest side. The Pythagorean theorem holds only for triangles with a 90° angle. It's named after the Greek mathematician Pythagoras.
How to Find the Hypotenuse
Take the square root of both sides of the theorem and you get the hypotenuse formula:
c = √(a² + b²)
Legs 3 and 4: 3² + 4² = 25, so c = √25 = 5. Legs 1 and 1 are less tidy: 1² + 1² = 2, and √2 isn't a whole number, so the display shows c ≈ 1.4142, rounded to 4 decimal places. Copy gives the full value, 1.41421356237. A screen's diagonal is the hypotenuse of its width and height, the two sides the aspect ratio calculator works with: 1 920 × 1 080 pixels comes to about 2 202.9072 px.
How to Find a Missing Leg
For a missing leg, subtract instead of adding:
b = √(c² − a²)
a = √(c² − b²)
With c 13 and a 5, that's 13² − 5² = 144, so b = √144 = 12. The hypotenuse has to be longer than the leg you enter. Type c 4 and a 5, and the calculator says "The hypotenuse c must be longer than a".
Leave the leg you need empty, fill in the other leg and c, and press Calculate.
Examples
Each row is one calculation, with the formula line exactly as the display shows it:
| You enter | Result | Shown under it |
|---|---|---|
| a 3 · b 4 | c = 5 | 3² + 4² = 25 → c = √25 = 5 |
| a 5 · c 13 | b = 12 | 13² − 5² = 144 → b = √144 = 12 |
| a 1 · b 1 | c ≈ 1.4142 | 1² + 1² = 2 → c = √2 ≈ 1.4142 |
| a 2.5 · b 6 | c = 6.5 | 2.5² + 6² = 42.25 → c = 6.5 |
| 6 ft 8 in and 5 ft, entered in inches: a 80 · b 60 | c = 100 (8 ft 4 in) | 80² + 60² = 10 000 → c = √10 000 = 100 |
Double the 3-4-5 triangle and you get 6-8-10. The ratio calculator solves 3 : 4 = 6 : x as 8, and 6² + 8² = 100 gives c = 10.
FAQ
How do I use the Pythagorean theorem on a calculator?
Square each leg, add the squares and take the square root. On a scientific calculator the keys go √ 8 x² + 15 x² ) =, and the answer is 17.
Can I use the Pythagorean theorem in feet and inches?
Yes, as long as all sides are in the same unit. The calculator doesn't convert units, and the answer comes out in the units you entered, so it works in feet, in inches or in meters. For feet and inches, turn everything into inches first (1 ft = 12 in): 6 ft 8 in and 5 ft become 80 and 60 in, which give c = 100 in, or 8 ft 4 in.
Does it work for triangles that are not right triangles?
No. The theorem holds only for a triangle with a 90° angle, and this page isn't a full right triangle calculator: angles, area and perimeter aren't calculated here.
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. Multiples count too: 10-24-26 is 5-12-13 doubled.