📐 Pythagorean Theorem Calculator

Enter any two sides of a right triangle.

Also known as: Hypotenuse Calculator · Right Triangle

Loading calculator…

How to use the Pythagorean Theorem Calculator

  1. Enter your values in the fields above — the defaults show a worked example.
  2. The result updates instantly as you type; change any input to compare scenarios.
  3. Copy or share the result, or open a related calculator below.

How it's calculated

a² + b² = c².

Right triangle with legs a and b and hypotenuse c
Right triangle with legs a and b and hypotenuse c

Frequently asked questions

Is the Pythagorean Theorem Calculator free?
Yes. The Pythagorean Theorem Calculator on CalculatorSprint is completely free with no sign-up. Every calculation runs in your browser, so the numbers you enter are never sent to our servers.
How accurate is the Pythagorean Theorem Calculator?
It uses the method described under “How it’s calculated” and keeps full precision internally, rounding only the displayed result.
Can I use the Pythagorean Theorem Calculator on my phone or offline?
Yes. It works on any phone, tablet or computer. Install CalculatorSprint as an app from your browser menu (Add to Home Screen or Install app) and it keeps working offline.

Read more about the Pythagorean Theorem Calculator

The theorem

In any 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²).

Read more

Pythagorean triples

Some whole-number sides fit exactly: 3-4-5, 5-12-13, 8-15-17, 7-24-25, and any multiple such as 6-8-10. Builders use the 3-4-5 rule to check that corners are square: measure 3 ft along one wall and 4 ft along the other; the diagonal should be exactly 5 ft.

Real-world uses

How long a ladder do you need to reach 12 ft up a wall when its foot is 5 ft away? √(12² + 5²) = √169 = 13 ft. A TV screen’s diagonal, the shortest distance across a rectangular field and the distance between two points on a map grid all use the same formula.

Distance between two points

The distance between (x₁, y₁) and (x₂, y₂) is √((x₂ − x₁)² + (y₂ − y₁)²) — the Pythagorean theorem applied to the horizontal and vertical differences. The slope calculator shows this distance too.

When to use the Pythagorean Theorem Calculator

Use the Pythagorean Theorem Calculator for find the missing side of a right triangle. It is one of 73 free math calculators, and pairs well with the Triangle Calculator, Distance & Midpoint Calculator, Percentage Calculator and Scientific Calculator.

Tips for accurate results

Check that your input uses the expected format (decimals, fractions or one value per line), keep full precision until the final step, and use the worked formula below the result to verify the answer by hand or for homework.

Sources and review

Last reviewed

Sources:

Every calculator is checked against published reference values before release and re-reviewed when laws, rates or guidelines change. Read our methodology and editorial policy. Found a problem? Report it — we fix errors quickly.

Was this helpful?

More Math Calculators

See all Math Calculators →

Popular calculators

Results are estimates for information only. Calculations run privately in your browser.