terican

Last verified · v1.0

Calculator · math

Pythagorean Theorem Triangle Calculator

Calculate any side of a right triangle using the Pythagorean theorem. Enter two known sides to instantly find the hypotenuse or a missing leg.

FreeInstantNo signupOpen source

Inputs

Unknown Side Length

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Unknown Side Lengthunits

The formula

How the
result is
computed.

What Is the Pythagorean Theorem?

The Pythagorean theorem is one of the most fundamental relationships in all of geometry, establishing that in every right triangle the square of the hypotenuse equals the sum of the squares of the two shorter sides. Attributed to the ancient Greek mathematician Pythagoras of Samos (c. 570–495 BC), the theorem has been independently proved in over 370 documented ways — more than any other theorem in mathematics. A right triangle is defined by the presence of exactly one 90° interior angle.

The Core Formula

The standard algebraic expression of the Pythagorean theorem is:

c² = a² + b²

Where c is the hypotenuse — always the side opposite the right angle and always the longest side — and a and b are the two shorter sides called legs. Rearranging this equation allows calculation of any unknown side when the other two are known:

  • To find the hypotenuse: c = √(a² + b²)
  • To find leg a: a = √(c² − b²)
  • To find leg b: b = √(c² − a²)

Geometric Interpretation

Beyond the algebraic formula, the Pythagorean theorem has a profound geometric meaning: the area of the square constructed on the hypotenuse equals the combined area of the squares constructed on the two legs. This visual interpretation, known as the geometric proof, demonstrates that the relationship is not merely numerical but reflects a fundamental property of space and right angles themselves. Ancient mathematicians used this geometric understanding to develop elegant visual proofs long before modern algebraic notation existed.

Understanding the Calculator Variables

Solve For

This setting determines which side is unknown. Select Hypotenuse when both legs are known. Select Leg when the hypotenuse and one leg are known and the second leg must be found.

Side 1

When solving for the hypotenuse, Side 1 is leg a — one of the two shorter sides of the triangle. When solving for a missing leg, Side 1 must be the hypotenuse c, which is always the longest side.

Side 2

When solving for the hypotenuse, Side 2 is leg b. When solving for a missing leg, Side 2 is the known leg and must be shorter in length than the hypotenuse entered in Side 1.

Worked Example: Solving for the Hypotenuse

A right triangle has legs of a = 3 and b = 4. To find the hypotenuse:

  • c² = 3² + 4² = 9 + 16 = 25
  • c = √25 = 5

This is the famous 3-4-5 Pythagorean triple — the integer right triangle most widely used in construction to verify square corners without specialized instruments.

Worked Example: Solving for a Missing Leg

A right triangle has a hypotenuse of c = 13 and one known leg of b = 5. To find the missing leg:

  • a² = 13² − 5² = 169 − 25 = 144
  • a = √144 = 12

This yields the 5-12-13 Pythagorean triple, another integer solution regularly used in engineering and surveying contexts.

Real-World Applications

The Pythagorean theorem underpins calculations across many professional disciplines and everyday situations:

  • Construction: Builders apply the 3-4-5 rule to confirm right angles in foundations, wall framing, and tile layouts.
  • Navigation: The theorem forms the basis of the coordinate-plane distance formula, enabling straight-line distance calculations between two geographic points.
  • Screen measurement: Television and monitor diagonal measurements represent the hypotenuse of the screen width and height.
  • Structural engineering: Engineers compute brace lengths and load paths in trusses and steel frames.
  • Surveying: Land surveyors determine horizontal distances across sloped or uneven terrain.
  • Photography: The diagonal field of view in camera sensors relies on Pythagorean calculations for determining lens requirements and coverage areas.

Important Limitations

The Pythagorean theorem is valid only for right triangles. For oblique triangles — those with no 90° angle — the Law of Cosines applies instead: c² = a² + b² − 2ab·cos(C). The Law of Cosines reduces to the Pythagorean theorem when C = 90°, because cos(90°) = 0, eliminating the correction term entirely.

Sources and Further Reading

For a foundational introduction including visual proofs, visit Khan Academy's Intro to the Pythagorean Theorem. For a rigorous geometric treatment of right-triangle properties and derivations, see the reference at Clark University's Right Triangles page. Applied examples and triangle similarity extensions are covered at Maricopa Open Mathematics and practical library guidance is available at CCCUA DIY Maths: The Pythagorean Theorem.

Reference

Frequently asked questions

What is the Pythagorean theorem and how does it work?
The Pythagorean theorem states that in any right triangle the square of the hypotenuse equals the sum of the squares of the two legs: c² = a² + b². It applies exclusively to right triangles — those containing exactly one 90° interior angle. With any two sides known, the formula allows calculation of the third side using basic arithmetic and a square root operation.
How do you calculate the hypotenuse of a right triangle?
To calculate the hypotenuse, square each leg individually, add the two results together, then take the square root of the sum using the formula c = √(a² + b²). For example, with legs of 6 and 8: c = √(36 + 64) = √100 = 10. The hypotenuse is always the longest side and always sits opposite the right angle.
How do you find a missing leg using the Pythagorean theorem?
Rearrange the Pythagorean formula to isolate the unknown leg: a = √(c² − b²). For a triangle with a hypotenuse of 17 and a known leg of 8: a = √(289 − 64) = √225 = 15. Always verify that the value entered as the hypotenuse is genuinely the longest side — entering a leg value in that field produces an incorrect answer that appears mathematically valid.
What are Pythagorean triples and why are they useful?
Pythagorean triples are sets of three positive integers that satisfy a² + b² = c² exactly, with common examples including 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Because these relationships involve whole numbers, builders and engineers can verify right angles in the field without relying on decimal measurements or precision instruments, making on-site checks faster and eliminating accumulated rounding error.
Does the Pythagorean theorem apply to all types of triangles?
No — the Pythagorean theorem is valid only for right triangles that contain exactly one 90° interior angle. For acute or obtuse triangles, the Law of Cosines must be used instead: c² = a² + b² − 2ab·cos(C). The Law of Cosines simplifies directly to the Pythagorean theorem when angle C equals 90°, because cos(90°) equals zero, which eliminates the correction term entirely.
What unit does the Pythagorean theorem calculator return results in?
The calculator result always carries the same unit as the values entered for the two known sides. Entering legs measured in meters produces a hypotenuse in meters; entering values in feet or inches yields a result in those same units. Both Side 1 and Side 2 must use an identical unit of measurement — mixing units such as feet and inches without first converting will produce a numerically plausible but mathematically incorrect answer.