Home/Mathematics/Pythagorean Theorem

Formula & Calculator

Pythagorean Theorem

Relates the lengths of the two legs of a right triangle to its hypotenuse, one of the oldest and most widely used theorems in mathematics.

MathematicsGeometryDaily Life

Pythagorean Theorem Calculatorc² = a² + b²

c = √( a² + b² )
c = hypotenuse  ·  a, b = legs of the right triangle
⟹ Solvec, a, b
Solve for:
Presets:
c
a: b: c:
✓ Copied!
Side Length Gauge
Short Medium Long Very Long
c² = a² + b²  ·  Valid for right triangles only
c = sqrt(a^2 + b^2)
Pythagorean Theorem

Variables

SymbolQuantityUnit
cLength of the hypotenuse
a, bLengths of the two legs of the right triangle

What it means

The Pythagorean theorem is a fundamental relation in Euclidean geometry: the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. It is used to compute distances in 2D and 3D (Euclidean distance), to find the magnitude of vectors, and in many practical applications such as construction, navigation, and surveying. The theorem is also the basis for the definition of trigonometric functions. There are hundreds of proofs; it is one of the most important and well‑known theorems in mathematics.

Worked example

Pythagorean Theorem – Two Examples

Real‑World
Scenario: Construction worker checks square wall with legs 3 m and 4 m – diagonal 5 m.
ParameterValue
a3 m
b4 m
1c = √(9+16) = √25 = 5 m
Result 5 m ✓ Diagonal
Scenario: Ladder base 6 ft from wall, reaches 8 ft high – find ladder length.
ParameterValue
a6 ft
b8 ft
1c = √(36+64) = √100 = 10 ft
Result 10 ft ✓ Ladder length
Insight: Only for right‑angled triangles. The converse also holds: if c²=a²+b², then right angle.

Common mistakes

  • Pythagorean theorem: c = √(a² + b²) – for a right‑angled triangle (c is the hypotenuse).
  • Units: a, b, and c must be in the same units.
  • Check: Ensure the triangle is right‑angled – if not, use the Law of Cosines.
  • 3D: For 3D distances, use the generalised distance formula.
  • Common mistake: Forgetting the square root – c² = a² + b² is the squared length.

Applications

The Pythagorean theorem, c² = a² + b² (for a right triangle), is one of the oldest and most widely used mathematical theorems. It is used to compute distances, to check right angles, and to derive many trigonometric identities. Engineers use it in construction for squaring foundations, in surveying for distance measurement, and in navigation for path planning. In physics, it combines perpendicular vector components (e.g., velocity, force). In computer graphics, it calculates distances between points. This theorem is a pillar of geometry and is applied daily in countless practical and theoretical contexts, from simple woodworking to complex structural analysis.

  • Distance measurement in surveying, construction, and navigation
  • Vector magnitude computation from perpendicular components
  • Layout and alignment of buildings and structures
  • Derivation of trigonometric identities and angle relationships
  • Computer graphics – distance and collision detection