Pythagorean Theorem Calculator

Solve a²+b²=c² for right triangles.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter any two sides of a right triangle and leave the third at 0 to find the missing one. Legs 5 and 6 give a hypotenuse of 7.81025.

How to use

1
Step 1
Enter the two sides you know.
2
Step 2
Leave the unknown side as 0.
3
Step 3
Press Calculate.

How it works

In a right triangle the square of the hypotenuse equals the sum of the squares of the legs. To find a leg, subtract: a = √(c² − b²). Whole-number triples such as 3-4-5, 5-12-13 and 8-15-17 are called Pythagorean triples.

a² + b² = c²

Worked example

A non-triple pair of legs

Input
a = 5, b = 6
Output
c = 7.81025
Walkthrough
25 + 36 = 61, and √61 = 7.81025.

Limitations

  • Exactly two sides must be given; entering all three returns an error.
  • The hypotenuse must be the longest side.

Questions

What is c if a = 3 and b = 4?
With a = 3 and b = 4, the hypotenuse c is 5, since √(9 + 16) = 5.
What is the missing leg if the other leg is 12 and the hypotenuse is 13?
The missing leg is 5, since √(13² − 12²) = √25.
What is the hypotenuse for legs 5 and 6?
7.81025.

Features

  • Solves for any side
  • Instant
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • The essence of calculus

    3Blue1Brown

    Visual calculus story that complements symbolic solvers.

    Watch on YouTube
  • Vectors | Essence of linear algebra

    3Blue1Brown

    Linear algebra intuition for matrix and vector tools.

    Watch on YouTube
  • Math is Fun

    Math is Fun

    Clear explainers that pair well with calculator-style tools.

  • OpenStax Math

    OpenStax

    Free textbooks for algebra through calculus.