Free Online Pythagorean Theorem Calculator

A Pythagorean theorem calculator finds the missing side of a right triangle from the other two, using the relationship a² + b² = c².

Your data is processed entirely in your browser and never sent to any server.

Instant results 100% private No signup needed
Right triangle: a² + b² = c² (c is the hypotenuse)

How to Use This Calculator

  1. Pick the side you want to solve for: hypotenuse c, leg a, or leg b.
  2. Type the two known side lengths into the labelled inputs.
  3. Read the computed value of the missing side along with the formula used.

What Is a Pythagorean Theorem?

The Pythagorean theorem is the cornerstone of plane geometry: in any right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides. Knowing two sides lets you compute the third.

Three rearrangements cover every case. To find the hypotenuse c from legs a and b: c = √(a² + b²). To find a leg given the hypotenuse c and the other leg: a = √(c² − b²) or b = √(c² − a²). This tool handles all three with a mode selector.

Validation catches impossible triangles — if you claim c ≤ a or c ≤ b, the hypotenuse isn't the longest side and the inputs are rejected. Applications are everywhere geometry meets the real world: construction (squaring a foundation), navigation (straight-line distance), graphics (sprite hit detection), and physics (resolving vectors into perpendicular components).

Frequently Asked Questions

What is the Pythagorean theorem?
In a right triangle, a² + b² = c² where c is the hypotenuse. Works for any right triangle.
Which side is the hypotenuse?
The longest side, opposite the right angle. Always use it as c in the formula.
Does it work for non-right triangles?
No — use the Law of Cosines for other triangles. The Pythagorean theorem only applies to 90° angles.

Published by the WeGotEveryTool team. We build and test every tool in-house and update pages when the underlying spec, formula, or recommendation changes.

Reviewed: May 2026. Disclaimer: this tool is provided as-is for general informational use. For decisions with material consequences (medical, legal, financial, security) verify results against a qualified professional source.

Related Math & Calculators