🆕 Newly Added Calculators:

🔺 Pythagorean Theorem Calculator

Muhammad Yasir Yasin
By Muhammad Yasir Yasin · Updated 11 Nov 2026 Founder · 20 Year+ Telecom + IT Expert
Muhammad Yasir Yasin

Muhammad Yasir Yasin

Founder, metacalculator.org

Muhammad Yasir Yasin is a Telecom + IT expert from Pakistan with 20+ years of proven experience — the career documented on his LinkedIn. He has been in pure IT since 1998, and works as a crypto consultant & trader since 2016. He is the founder of metacalculator.org, seotools.metacalculator.org (SEO Tools) and metatrendonline.com (Digital Products Market Place): free tools built to give clear, checked answers, with no sign-ups and no paywalls.

Every calculator here is built from the published formula, tested by hand, and explained in plain words.

Pythagorean Theorem Calculator

Result

In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². It is the most used theorem in geometry — behind maps, construction layouts and game physics.

Choose what to solve for. To find the hypotenuse, enter both legs; to find a missing leg, enter the hypotenuse as Side A and the known leg as Side B.

How to use this calculator

Choose whether to find the hypotenuse or a missing leg, enter the two known sides, and press Calculate.

  1. Pick Solve for: Hypotenuse if you know both legs, or Missing leg if you know the hypotenuse and one leg.
  2. Type the first known side into Side A; in leg mode this must be the hypotenuse.
  3. Type the second known side into Side B; in leg mode this is the known leg.
  4. Press Calculate and read the missing side as the headline result.

Pythagorean Theorem Worked Example

Step 1 — square the legs: 3² = 9; 4² = 16.

Step 2 — add: 9 + 16 = 25.

Step 3 — take the root: c = √25 = 5.

The extras now printed with it: the triangle’s area is ½ × 3 × 4 = 6, and its perimeter is 3 + 4 + 5 = 12.

Run it backwards and the theorem subtracts instead: with hypotenuse 10 and one leg 6, the missing leg is √(10² − 6²) = √64 = 8 — which is why the solve-for switch exists. Not every answer is a whole number: legs of 1 and 1 give c = √2, and the exact answer is √2 (≈ 1.414) — the calculator shows the radical first and the decimal after it, because √2 is the truth and 1.414 is the summary.

What is the Pythagorean theorem?

In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a squared + b squared = c squared. It only applies to triangles with a 90-degree angle.

The oldest theorem you will ever use

In a right-angled triangle, the square on the hypotenuse equals the sum of the squares on the other two sides: a² + b² = c². Carpenters used it to square foundations millennia before Pythagoras lent it his name, and it remains the working tool behind ladders against walls, diagonal braces, screen sizes and every distance formula in coordinate geometry — including the one in this site’s Distance Calculator.

Triples: the triangles that come out whole

Some leg pairs conspire to give a whole-number hypotenuse; those sets are the Pythagorean triples, and builders have memorised the small ones for centuries because a 3-4-5 triangle is the fastest way to lay out a true right angle with nothing but a rope or tape.

Leg aLeg bHypotenuse c
345
51213
81517
72425
202129

Every multiple of a triple is a triple too — 6-8-10 is just 3-4-5 doubled.

Which side is the hypotenuse?

Always the one opposite the right angle, and always the longest side. If your "hypotenuse" comes out shorter than a leg, the numbers were entered in the wrong slots — the calculator flags that case rather than rooting a negative. And remember the theorem’s one condition: the triangle must be right-angled. For any other triangle you need the cosine rule, which is the Triangle Calculator’s job.

Frequently asked questions

What is the hypotenuse of a right triangle with legs 6 and 8?

c = √(6² + 8²) = √100 = 10. The same triangle has area 24 and perimeter 24, which the calculator now reports alongside.

How do I find a missing leg?

Rearrange the theorem: leg = √(c² − other leg²). With hypotenuse 10 and leg 6, the missing leg is √(100 − 36) = √64 = 8. Choose "missing leg" in the solve-for switch.

Why does the calculator show √2 instead of just 1.414?

Because √2 is exact and 1.414 is rounded. For legs of 1 and 1 the hypotenuse is exactly √2; the decimal follows in brackets for measuring, but the radical is the answer a maths problem wants.

What is a Pythagorean triple?

Three whole numbers that satisfy a² + b² = c² — 3-4-5 is the famous one, and 5-12-13, 8-15-17, 7-24-25 and 20-21-29 follow it. Any scaled copy (like 6-8-10) is also a triple.

Does the theorem work for triangles without a right angle?

No. It is exactly equivalent to the triangle having a right angle. For slanted triangles, use the cosine rule in the Triangle Calculator — the Pythagorean theorem is its special case when the angle is 90°.