Calcady
Home / Scientific / Pythagorean Theorem Engine

Pythagorean Theorem Engine

Solve for any side of a right triangle using the Pythagorean theorem. Enter two known sides to find the third, with step-by-step algebraic work and Pythagorean triple verification.

a² + b² = c²

Hypotenuse

5

Step-by-Step

a² + b² = c²
3² + 4² = c²
9 + 16 = c²
25 = c²
c = √25
c = 5
Email LinkText/SMSWhatsApp

The Pythagorean Theorem

One of the most fundamental theorems in mathematics, the Pythagorean Theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c².

Definitions

  • Legs (a, b): The two sides that form the right angle (90°).
  • Hypotenuse (c): The longest side, opposite the right angle.

Real-World Uses

  • Construction — verifying square corners (the 3-4-5 rule)
  • Navigation — calculating straight-line (Euclidean) distance
  • Computer graphics — distance between two points on screen
  • Surveying — measuring inaccessible distances

Classic Triples 💡

Pythagorean triples are integer solutions: (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25). Any multiple of a triple is also a triple — e.g. (6, 8, 10) = 2 × (3, 4, 5).

Quick Answer: How does the Pythagorean Theorem Calculator work?

Select which side to solve for (Leg A, Leg B, or Hypotenuse C), enter the two known sides, and the calculator instantly computes the missing side with step-by-step algebraic work.

Core Formula

a² + b² = c² | c = √(a² + b²) | a = √(c² − b²)

Where a, b = legs (sides touching the right angle), c = hypotenuse (longest side, opposite the right angle). All sides must be positive.

Real-World Applications

Construction & Framing

The "3-4-5 method" is used on every construction site to verify right angles. Carpenters measure 3 ft and 4 ft along two edges, then check the diagonal is exactly 5 ft. For larger structures, 6-8-10 or 9-12-15 (multiples of 3-4-5) provide better precision over longer distances.

Navigation & GPS

GPS calculates "as-the-crow-flies" distance between two points using the Pythagorean theorem extended to 3D: d = √(Δx² + Δy² + Δz²). Every pixel-distance computation in computer graphics, every pathfinding algorithm in games, and every CAD distance measurement reduces to this formula.

Common Pythagorean Triples

Triple (a, b, c) Verification Type Common Use
3, 4, 59 + 16 = 25 ✓PrimitiveConstruction squaring
5, 12, 1325 + 144 = 169 ✓PrimitiveRoof pitch calculations
8, 15, 1764 + 225 = 289 ✓PrimitiveSurveying diagonals
7, 24, 2549 + 576 = 625 ✓PrimitiveLong-distance checks
6, 8, 1036 + 64 = 100 ✓2× (3,4,5)Scaled construction

Geometry Best Practices (Pro Tips)

Do This

  • Always verify: c must be the longest side. The hypotenuse is always opposite the 90° angle and always the longest side. If your calculated "hypotenuse" is shorter than a leg, you've swapped sides. This is the #1 student error.

Avoid This

  • Don't apply the theorem to non-right triangles. a² + b² = c² only works when there is a 90° angle. For oblique triangles, use the Law of Cosines. Applying the Pythagorean theorem to a 60° triangle gives an answer that's wrong by ~13%.

Frequently Asked Questions

Does the Pythagorean theorem work in 3D?

Yes — extend it to 3D with d = √(x² + y² + z²). This works by applying the theorem twice: first find the diagonal in the xy-plane, then use that diagonal as one leg with z as the other. This extends to any number of dimensions.

What is a Pythagorean triple?

A set of three positive integers (a, b, c) where a² + b² = c². The smallest is (3, 4, 5). All primitive triples can be generated by the formula (m²−n², 2mn, m²+n²) for coprime m > n > 0. Any multiple of a triple (e.g., 6,8,10 = 2×3,4,5) is also a valid triple.

How do builders use the 3-4-5 method?

Mark 3 ft along one edge and 4 ft along the adjacent edge from the corner. Measure the diagonal — if it's exactly 5 ft, the corner is 90°. For more precision on larger structures, use 6-8-10, 9-12-15, or even 12-16-20 (all multiples of 3-4-5).

What is the converse of the Pythagorean theorem?

If a² + b² = c² holds for a triangle's three sides, then the triangle must contain a right angle opposite side c. If a² + b² > c², it's an acute triangle. If a² + b² < c², it's obtuse. This lets you classify any triangle just from its side lengths.

Related Math Calculators