Exact radical answers
See results like 5√2 as well as 7.071. That is the form teachers and textbooks ask for.
a² + b² = c² · With steps & diagram
Use this free Pythagorean theorem calculator to find the hypotenuse or a missing leg of any right triangle. You get the exact answer in simplified radical form, a live triangle diagram, the angles, and every step of the working.
HypotenusePythagorean triple
c = 2√13
≈ 7.211 cm
Most tools stop at a long decimal. This one shows the exact answer, draws the triangle to scale and explains every step, so you can learn from it as well as use it.
See results like 5√2 as well as 7.071. That is the form teachers and textbooks ask for.
The triangle redraws as you type, with every side and angle labelled, so you can see the shape instantly.
Every step appears in order: formula, substitution, squares, sum and square root. It is ideal for homework checks.
Enter three sides and find out whether they form a right, acute or obtuse triangle, or no triangle at all.
Get both acute angles, the area, the perimeter and the height to the hypotenuse with no extra work.
Copy the full worked solution into your notes, or share a link that reopens the calculator with your numbers.
You only need two sides of a right triangle. Follow these four steps.
Pick the hypotenuse c, or leg a or b if the hypotenuse is already known.
Type the two lengths you know. The answer and diagram update as you type.
Choose a unit such as cm or ft, and how many decimal places to show.
Check the exact answer, the angles and each step, then copy or share it.
In any right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. The hypotenuse c is always the longest side, opposite the 90° angle. Legs a and b form the right angle.
Theorem:a² + b² = c²
Find hypotenuse:c = √(a² + b²)
Find leg a:a = √(c² − b²)
Find leg b:b = √(c² − a²)The legs are 6 and 8.
c = √(6² + 8²)
c = √(36 + 64) = √100 = 10So the hypotenuse is exactly 10.
The hypotenuse is 13 and one leg is 5.
b = √(13² − 5²)
b = √(169 − 25) = √144 = 12So the missing leg is 12.
Both legs are 5.
c = √(5² + 5²) = √50
c = 5√2 ≈ 7.071Here the exact answer is 5√2, because 50 = 25 × 2.
A Pythagorean triple is a set of three whole numbers that fit a² + b² = c² exactly. These are the ones you will see most often.
| a | b | c | Check |
|---|---|---|---|
| 3 | 4 | 5 | 9 + 16 = 25 |
| 5 | 12 | 13 | 25 + 144 = 169 |
| 8 | 15 | 17 | 64 + 225 = 289 |
| 7 | 24 | 25 | 49 + 576 = 625 |
| 20 | 21 | 29 | 400 + 441 = 841 |
| 12 | 35 | 37 | 144 + 1225 = 1369 |
| 9 | 40 | 41 | 81 + 1600 = 1681 |
| 11 | 60 | 61 | 121 + 3600 = 3721 |
This simple rule solves everyday problems in building, design and travel. Here is where it saves you time.
Builders mark 3 ft and 4 ft along two walls. If the diagonal measures 5 ft, the corner is a true 90°.
A TV or monitor is sold by its diagonal. Use the width and height to confirm the real screen size.
Work out how long a ladder or ramp must be to reach a set height from a safe distance.
Find the direct distance between two points on a map or a graph. It is the basis of the distance formula.
Clear answers to the questions students and DIYers ask most.
It states that in a right triangle, a² + b² = c². Here a and b are the two legs that form the right angle, and c is the hypotenuse, the side opposite the right angle.
Square both legs, add them and take the square root: c = √(a² + b²). For example, legs of 3 and 4 give c = √(9 + 16) = √25 = 5.
Subtract the square of the known leg from the square of the hypotenuse, then take the square root: a = √(c² − b²). For example, c = 13 and b = 5 give a = √144 = 12.
No. It only works for right triangles. For other triangles, use the law of cosines, or try our triangle calculator, which solves any triangle.
It is a set of three whole numbers that satisfy a² + b² = c². The best known is 3, 4, 5. Others include 5, 12, 13 and 8, 15, 17.
Let c be the longest side. If a² + b² equals c², the triangle is right. If it is greater, the triangle is acute. If it is smaller, the triangle is obtuse. The Check tab does this for you.
No. The hypotenuse is always the longest side of a right triangle. So when you solve for a leg, the hypotenuse you enter must be longer than the other leg.
It is named after the Greek mathematician Pythagoras, who lived around 500 BC. However, Babylonian mathematicians recorded Pythagorean triples more than a thousand years earlier.
From homework to home projects, this Pythagorean theorem calculator gives you the exact answer, a clear diagram and the full working. Try it with your own numbers, then explore our other geometry tools.
Open the calculatorResults are rounded to your chosen decimal places. Exact radical forms are shown when the value under the square root is a whole number.