Geometry

Pythagorean Theorem Calculator

Fill in any two sides of a right triangle — the two legs, or one leg and the hypotenuse — and this tool solves for the missing side using a² + b² = c².

📌 Enter Two Sides

Leave the unknown side blank — fill in any 2 of the 3 fields.

📊 Result

Fill in any two sides to solve for the third
⚠️

Disclaimer: This tool performs standard mathematical calculations for educational and reference purposes. Always double-check results independently for graded coursework, exams, or safety-critical applications.

Understanding the Pythagorean Theorem

The Pythagorean theorem describes a fixed relationship between the three sides of any right triangle — a triangle containing one 90° angle. It states that the square of the hypotenuse (the longest side, opposite the right angle) equals the sum of the squares of the other two sides, called the legs.

The Formula

a² + b² = c², where a and b are the two legs and c is the hypotenuse. Rearranged, this gives three versions depending on which side is missing: c = √(a² + b²), a = √(c² − b²), or b = √(c² − a²).

Worked Example

A right triangle has legs of 3 units and 4 units. Find the hypotenuse.

  1. Step 1: a² + b² = 3² + 4² = 9 + 16 = 25
  2. Step 2: c = √25 = 5 units

Because 3, 4, and 5 are all whole numbers, this is a well-known Pythagorean triple. Any multiple of it — 6-8-10, 9-12-15, and so on — also forms a valid right triangle with whole-number sides.

Second Worked Example: Finding a Leg

A ladder 13 ft long leans against a wall with its foot 5 ft from the base. How high does it reach? Put 13 in the Hypotenuse box and 5 in Leg b, and leave Leg a empty.

Not every answer is clean. With a hypotenuse of 10 and a leg of 7, the missing side is √(100 − 49) = √51 = 7.1414. And for a screen 48 in wide and 27 in tall, the diagonal is √(48² + 27²) = √3,033 = 55.0727 in. The 3-4-5 “Bonus” note appears only when the three sides are a multiple of 3-4-5, so 5-12-13 does not trigger it even though it is also a valid right triangle.

Common Mistakes

Where You Would Use This

Frequently Asked Questions

The relationship a² + b² = c² comes directly from the geometry of a 90° corner between the two legs. If the angle between those two sides isn't exactly 90°, the squared relationship no longer holds, and you'd need a more general formula like the law of cosines instead.
The hypotenuse is always the longest side of a right triangle, and it's always the side directly opposite the 90° angle. The two shorter sides forming the right angle itself are called the legs.
A 3-4-5 triangle is a right triangle whose three sides are in the exact ratio 3:4:5 (or any multiple of it, like 6-8-10 or 9-12-15). These are called Pythagorean triples because all three side lengths come out as whole numbers, which makes them handy for construction and quick mental checks.

Learn more