MathSolver AI

Pythagorean Theorem Calculator

In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c².

Enter the two legs. The hypotenuse is the side opposite the right angle.

Solve a problem

No account required. Type, upload, or snap a photo.

Press Ctrl+Enter to solve

Example problems

How this solver works

  1. Read a and b.
  2. Compute sqrt(a²+b²).

Formula

c is the hypotenuse.

Worked examples

3-4-5

  1. 9+16=25
  2. c=5

Answer: 5

Common mistakes

Treating a non-right triangle as right

The theorem requires a right angle.

Related calculators

Related guides

Related formulas

More in this topic

Frequently asked questions

Can I find a leg instead?

Yes: a = sqrt(c² − b²). Rearrange the same formula.

Try the solver again