Pythagorean Theorem Calculator

Find any side of a right triangle using the Pythagorean theorem (a² + b² = c²).

a² + b² = c²

a
+
b
=
c

c (hypotenuse)

5

Step-by-Step

c² = a² + b²
c² = 3² + 4²
c² = 9 + 16
c² = 25
c = √25 = 5.
Common Pythagorean Triples
abc (hypotenuse)
345
51213
81517
72425
6810
91215
121620
202129

How to Use the Pythagorean Theorem Calculator

  1. Select what to solve for. Choose the hypotenuse (c) if you know both legs. Choose leg a or leg b if you know one leg and the hypotenuse. The unknown field grays out automatically.
  2. Enter the two known sides. All values must be in the same unit (feet, meters, inches, etc.). The calculator applies the formula and shows a step-by-step solution.
  3. Verify it is a right triangle. The Pythagorean theorem only works for right triangles (one 90-degree angle). If you have an oblique triangle, you need the law of cosines instead.

Practical example: a ramp rises 4 feet vertically over a horizontal distance of 10 feet. The ramp length = √(4² + 10²) = √(16 + 100) = √116 = 10.77 feet. The reference table below lists common Pythagorean triples where all three sides are whole numbers.

Pythagorean Theorem and Applications

a² + b² = c²

Find hypotenuse: c = √(a² + b²)
Find leg a:      a = √(c² - b²)
Find leg b:      b = √(c² - a²)

Where a and b are the legs and c is the hypotenuse.

Worked examples:

Known valuesFindCalculationAnswer
a=3, b=4c√(9+16)c = 5
a=5, c=13b√(169-25)b = 12
a=6, b=8c√(36+64)c = 10
a=7, c=25b√(625-49)b = 24

The 3-4-5 rule in construction: to verify a right angle, measure 3 feet along one wall and 4 feet along the adjacent wall. The diagonal between those two points should be exactly 5 feet. This is the most widely used Pythagorean triple in practice.

Frequently Asked Questions

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². The hypotenuse is always the side opposite the 90-degree angle and is always the longest side. The theorem works in both directions: if a² + b² = c², the triangle is a right triangle. Pythagoras (570-495 BC) is credited with the proof, though Babylonian mathematicians used the relationship 1,000 years earlier.

Related Calculators