📐 Math CalculatorsFree · No signup

Pythagorean Theorem Calculator

Calculate any side of a right triangle using the Pythagorean theorem (a² + b² = c²). Find hypotenuse or missing leg instantly.

About the Pythagorean Theorem Calculator

A Pythagorean theorem calculator finds the missing side of any right triangle when you know two of the three sides. The Pythagorean theorem — a^2 + b^2 = c^2, where c is the hypotenuse (longest side, opposite the right angle) and a and b are the two legs — is one of the most fundamentally important and widely applied relationships in mathematics. It appears in geometry, trigonometry, coordinate geometry, physics, engineering, architecture, navigation, computer graphics, and everyday practical measurement. Need to know if a corner is truly square when laying tile? Pythagorean theorem. Calculating the diagonal of a television or computer screen from width and height dimensions? Pythagorean theorem. Finding the straight-line distance between two points on a coordinate plane? Distance formula, which is simply the Pythagorean theorem applied to the x and y coordinate differences. Our calculator solves for any missing side — the hypotenuse or either leg — and also checks whether three given side lengths form a valid right triangle.

Formula

c = sqrt(a^2 + b^2) | a = sqrt(c^2 - b^2) | Distance formula: d = sqrt((x2-x1)^2 + (y2-y1)^2)

How It Works

Finding the hypotenuse: c = sqrt(a^2 + b^2). Example: legs a=3, b=4. c = sqrt(9+16) = sqrt(25) = 5. This 3-4-5 right triangle is the most famous Pythagorean triple. Finding a leg: a = sqrt(c^2 - b^2). Example: hypotenuse c=10, leg b=6. a = sqrt(100-36) = sqrt(64) = 8. This is the 6-8-10 triple (2x the 3-4-5 family). Checking if a triangle is a right triangle: test if a^2 + b^2 = c^2 exactly (where c is the longest side). 5^2 + 12^2 = 25+144=169 = 13^2. Yes, 5-12-13 is a right triangle. Pythagorean triples — integer combinations satisfying the theorem exactly — include: 3-4-5, 5-12-13, 8-15-17, 7-24-25, and all their multiples.

Tips & Best Practices

  • The 3-4-5 right triangle is the classic carpentry square check: measuring 3 feet along one wall, 4 feet along the perpendicular wall, and verifying the diagonal is exactly 5 feet confirms a perfect 90-degree corner.
  • TV and monitor screen sizes are measured diagonally. A 55-inch TV with a 16:9 aspect ratio has width = 55 x (16/sqrt(16^2+9^2)) = 55 x 0.8723 = 47.98 inches and height = 55 x (9/18.36) = 26.97 inches.
  • Pythagorean theorem in 3D: the spatial diagonal of a box with dimensions a, b, c is d = sqrt(a^2 + b^2 + c^2). This is the 3D extension of the 2D theorem.
  • The converse of the Pythagorean theorem is equally important: if a^2 + b^2 = c^2, then the triangle IS a right triangle. This is used to verify perpendicularity in construction and engineering.
  • Egyptian triangle (3-4-5): ancient Egyptian engineers used knotted ropes divided into 12 equal segments to form 3-4-5 triangles as a practical way to create right angles for pyramid and temple construction.
  • Distance between GPS coordinates: for small distances, the Pythagorean theorem applied to latitude and longitude differences (converted to the same distance unit) gives a good approximation before needing the more complex Haversine formula.
  • Pythagorean theorem proof: there are over 370 known distinct mathematical proofs of this theorem, including a visual proof attributed to U.S. President James Garfield submitted to the New England Journal of Education in 1876.
  • Trigonometry connection: sin, cos, and tan ratios in a right triangle are defined using the sides whose relationships are governed by the Pythagorean theorem. The fundamental trigonometric identity sin^2(theta) + cos^2(theta) = 1 is the Pythagorean theorem normalised to the unit circle.

Who Uses This Calculator

Students in geometry, algebra, and trigonometry classes use the Pythagorean theorem calculator to solve homework problems and verify manual calculations. Carpenters, builders, and DIY home renovators use the 3-4-5 method to square corners when laying flooring, framing walls, and installing tile. Surveyors calculate distances and heights using right triangle geometry. Game developers use the distance formula (derived from the Pythagorean theorem) for collision detection, movement calculations, and pathfinding algorithms. Architects calculate rafter lengths, stair run-and-rise dimensions, and structural diagonal bracing lengths. Physics students apply it to vector decomposition (finding resultant magnitudes from component vectors). Sports analysts calculate true distances and angles in field geometry.

Optimised for: USA · Canada · UK · Australia · Calculations run in your browser · No data stored

Frequently Asked Questions

What is the Pythagorean theorem?

For a right triangle: a² + b² = c², where c is the hypotenuse. If a=3 and b=4, then c=5 (the famous 3-4-5 triangle).