Browse All Calculators

Pythagorean Theorem Calculator

Free Pythagorean theorem calculator to find the hypotenuse or a missing leg of a right triangle. Includes steps, angles, area, perimeter and a diagram.

100% Free
No Sign-up
Instant Results
Works on Mobile

Pythagorean Theorem Calculator

Find the missing side
Side a = 3
Side b = 4
Step-by-step working
  1. Know both legs: a = 3 ft and b = 4 ft.
  2. c² = a² + b² = 3² + 4² = 9 + 16 = 25.
  3. c = √25 = 5 ft.
  4. Check: a² + b² = 9 + 16 = 25, and c² = 25.
Hypotenuse c equals
5 ft
a² + b² = c² → 9 + 16 = 25
Area
6 ft²
Perimeter
12 ft
Angle A
36.8699°
Angle B
53.1301°
More about this triangle
  • Height to the hypotenuse: 2.4 ft
  • Inradius (inscribed circle): 1 ft
  • Circumradius (half the hypotenuse): 2.5 ft
  • Pythagorean triple: (3, 4, 5), a primitive triple
Check your answer
  • a² + b² = 25 and c² = 25: they match, so it is a right triangle.
  • Angles: 36.8699° + 53.1301° + 90° = 180°.
Quick note
The hypotenuse is the longest side and sits opposite the right angle. It is always shorter than a + b.
Pythagorean Theorem Calculator - find the hypotenuse or missing side of a right triangle online on HighCalc

Pythagorean Theorem Calculator: Find the Missing Side of a Right Triangle

This free Pythagorean theorem calculator finds the hypotenuse or either leg of a right triangle when you know the other two sides. Choose the side you want to find, enter the two lengths you know, and the answer appears with each step of the working. It also gives the area, perimeter, both acute angles and a diagram that redraws as you change the numbers.

Quick answer: a right triangle with legs of 3 and 4 has a hypotenuse of 5, because 3² + 4² = 9 + 16 = 25 and the square root of 25 is 5.

The Pythagorean Theorem Formula

In a right triangle the two shorter sides, called legs, are a and b, and the longest side, opposite the right angle, is the hypotenuse c. The theorem states a² + b² = c². Rearranged, the hypotenuse is c = √(a² + b²), and a missing leg is a = √(c² − b²) or b = √(c² − a²). Since a leg can never be as long as the hypotenuse, the calculator warns you if the numbers you enter cannot form a right triangle.

Finding the Hypotenuse

Square each leg, add the results, and take the square root. For legs of 6 and 8, the hypotenuse is √(36 + 64) = 10. The answer is not always a whole number: two legs of 1 give √2, which is about 1.4142. This is the same calculation used to find the diagonal of a rectangle or the straight-line distance between two points on a grid.

Finding a Missing Leg

When the hypotenuse is known, subtract instead. With a hypotenuse of 13 and a leg of 5, the other leg is √(169 − 25) = √144 = 12. Choose Side a or Side b at the top of the calculator, enter the two sides you have, and the working is shown one step at a time.

Pythagorean Triples

A Pythagorean triple is a set of three whole numbers that satisfy the theorem. They are handy for builders and teachers because the sides come out as clean numbers. Any multiple of a triple is also a triple.

Triplea² + b²c²Multiples
3, 4, 59 + 16256-8-10, 9-12-15
5, 12, 1325 + 14416910-24-26
8, 15, 1764 + 22528916-30-34
7, 24, 2549 + 57662514-48-50
20, 21, 29400 + 44184140-42-58
9, 40, 4181 + 1,6001,68118-80-82

Where the Theorem Is Used

Carpenters use the 3-4-5 rule to check that a corner is square. Ladder safety depends on it, since the reach of a ladder is a leg of a right triangle. It gives the length of a roof rafter, the diagonal of a screen and the shortest path across a field. Once you have a triangle's sides, the area calculator can work with its area, and the circle calculator covers round shapes. The scientific calculator is useful for roots and trigonometry, and the quadratic calculator helps when a geometry problem turns into an equation.

How to Use This Pythagorean Theorem Calculator

1

Choose the side to find

Pick Hypotenuse c, Side a or Side b.

2

Enter the two known sides

Type the lengths or drag the sliders, and pick a unit.

3

Read the answer

See the missing side, with each step of the working shown.

4

Check the extras

Get the area, perimeter, both angles, the height to the hypotenuse and a diagram.

Features

Instant Results
The answer updates as you type
Any Missing Side
Hypotenuse or either leg
Eight Units
From millimetres to miles
Live Diagram
See the right triangle drawn to your sizes
Step-by-Step Working
Follow every squaring and square root
Mobile Friendly
Works smoothly on phones, tablets and desktops
Frequently Asked Questions
Common questions about the Pythagorean Theorem Calculator.
What is the Pythagorean theorem?
The Pythagorean theorem says that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². The hypotenuse c is the longest side and sits opposite the right angle. With legs of 3 and 4, c² = 9 + 16 = 25, so c = 5.
How do I find the hypotenuse?
Square both legs, add them, and take the square root. For legs of 6 and 8, the sum of squares is 36 + 64 = 100, and the square root of 100 is 10. Choose Hypotenuse c in the calculator, enter the two legs, and it shows each step.
How do I find a missing leg?
Subtract instead of adding: a² = c² − b². If the hypotenuse is 13 and one leg is 5, then a² = 169 − 25 = 144, so a = 12. Pick Side a or Side b, enter the hypotenuse and the leg you know, and the other leg appears. The hypotenuse must always be longer than the leg.
Which side is the hypotenuse?
It is the side directly across from the 90° corner, and it is always the longest side of a right triangle. The other two sides, a and b, are called legs, and it does not matter which one you call a and which you call b.
What are Pythagorean triples?
They are sets of three whole numbers that fit a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Multiples work too, so 6-8-10 and 9-12-15 are also triples. The calculator tells you when your three sides form a whole-number triple.
Does it work for triangles without a right angle?
No. The Pythagorean theorem only applies when one angle is exactly 90°. For other triangles you need the law of cosines or the law of sines. If your triangle has a right angle, the calculator also gives you the two other angles, the area, the perimeter and the height to the hypotenuse.