Pythagorean Theorem Calculator

Find missing sides of right triangles with step-by-step solutions

Drag & drop or click to add images or PDF

Math Input
Find hypotenuse if a=3 and b=4
Find leg b if hypotenuse c=13 and a=5
A ladder 10 ft long leans against a wall. The base is 6 ft from the wall. How high does it reach?

What is the Pythagorean Theorem?

The Pythagorean theorem is a fundamental relation in Euclidean geometry among the three sides of a right triangle. It states that the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides (legs).

a2+b2=c2a^2 + b^2 = c^2

where:

  • aa and bb are the lengths of the two legs
  • cc is the length of the hypotenuse (the longest side)

Solving for Each Side

  • Hypotenuse: c=a2+b2c = \sqrt{a^2 + b^2}
  • Leg aa: a=c2b2a = \sqrt{c^2 - b^2}
  • Leg bb: b=c2a2b = \sqrt{c^2 - a^2}

Historical Note

Named after the ancient Greek mathematician Pythagoras (c. 570–495 BC), this theorem was known to Babylonian mathematicians over a thousand years earlier. It is one of the most proven theorems in mathematics, with hundreds of distinct proofs.

Pythagorean Triples

A Pythagorean triple consists of three positive integers aa, bb, cc that satisfy a2+b2=c2a^2 + b^2 = c^2. Common examples:

  • (3,4,5)(3, 4, 5)
  • (5,12,13)(5, 12, 13)
  • (8,15,17)(8, 15, 17)
  • (7,24,25)(7, 24, 25)

How to Solve Using the Pythagorean Theorem

Step-by-Step Process

  1. Identify the right angle and label the sides: aa, bb (legs) and cc (hypotenuse)
  2. Determine which side is unknown
  3. Substitute the known values into a2+b2=c2a^2 + b^2 = c^2
  4. Solve for the unknown side
  5. Simplify the result (exact or decimal form)

Finding the Hypotenuse

Given legs aa and bb:

c=a2+b2c = \sqrt{a^2 + b^2}

Example: If a=6a = 6 and b=8b = 8, then c=36+64=100=10c = \sqrt{36 + 64} = \sqrt{100} = 10.

Finding a Leg

Given hypotenuse cc and one leg aa:

b=c2a2b = \sqrt{c^2 - a^2}

Example: If c=13c = 13 and a=5a = 5, then b=16925=144=12b = \sqrt{169 - 25} = \sqrt{144} = 12.

Checking if a Triangle is Right

Given three sides, check if a2+b2=c2a^2 + b^2 = c^2 (where cc is the longest side):

  • If a2+b2=c2a^2 + b^2 = c^2: right triangle
  • If a2+b2>c2a^2 + b^2 > c^2: acute triangle
  • If a2+b2<c2a^2 + b^2 < c^2: obtuse triangle

Distance Formula Connection

The distance between two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is derived from the Pythagorean theorem:

d=(x2x1)2+(y2y1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}

Common Formulas

KnownUnknownFormula
aa, bbccc=a2+b2c = \sqrt{a^2 + b^2}
aa, ccbbb=c2a2b = \sqrt{c^2 - a^2}
bb, ccaaa=c2b2a = \sqrt{c^2 - b^2}
All threeVerifyCheck a2+b2=c2a^2 + b^2 = c^2

Common Mistakes to Avoid

  • Confusing the hypotenuse with a leg — the hypotenuse is always the longest side opposite the right angle. Using it as a leg in the formula gives wrong results.
  • Forgetting to take the square root — after computing a2+b2a^2 + b^2, you must take a2+b2\sqrt{a^2 + b^2} to get cc, not leave it as a2+b2a^2 + b^2.
  • Subtracting in the wrong direction — when finding a leg, compute c2a2c^2 - a^2, not a2c2a^2 - c^2 (which would give a negative number under the radical).
  • Applying the theorem to non-right triangles — the Pythagorean theorem only works for right triangles. For other triangles, use the Law of Cosines.
  • Rounding too early — keep the exact value under the square root as long as possible to maintain accuracy.

Examples

Step 1: Apply the Pythagorean theorem: c2=a2+b2c^2 = a^2 + b^2
Step 2: c2=32+42=9+16=25c^2 = 3^2 + 4^2 = 9 + 16 = 25
Step 3: c=25=5c = \sqrt{25} = 5
Answer: c=5c = 5

Step 1: Rearrange: b2=c2a2b^2 = c^2 - a^2
Step 2: b2=13252=16925=144b^2 = 13^2 - 5^2 = 169 - 25 = 144
Step 3: b=144=12b = \sqrt{144} = 12
Answer: b=12b = 12

Step 1: The ladder forms the hypotenuse (c=10c = 10), the distance from wall is one leg (a=6a = 6), and the height is the other leg (bb)
Step 2: b2=c2a2=10262=10036=64b^2 = c^2 - a^2 = 10^2 - 6^2 = 100 - 36 = 64
Step 3: b=64=8b = \sqrt{64} = 8 meters
Answer: b=8b = 8 meters

Frequently Asked Questions

No, it only works for right triangles (triangles with one 90-degree angle). For non-right triangles, you need to use the Law of Cosines: c squared equals a squared plus b squared minus 2ab times cosine of angle C.

The hypotenuse is always the side opposite the right angle (the 90-degree angle). It is always the longest side of the right triangle.

Common Pythagorean triples include (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25), and (9, 40, 41). Any multiple of a Pythagorean triple is also a triple, for example (6, 8, 10) is a multiple of (3, 4, 5).

Yes. For example, a right triangle with legs 1 and 1 has hypotenuse equal to the square root of 2, which is approximately 1.414. Only Pythagorean triples produce integer results for all three sides.

Related Solvers

AreaVolumeQuadratic
Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving