Pythagorean Theorem Calculator

Calculate the hypotenuse or missing leg of a right triangle using the Pythagorean theorem. Free online with instant formula display.

Embed this tool

Result

5
c = √(3² + 4²) = √25.00

Advertisement

Ad

Solve Right Triangles in Seconds

The Pythagorean theorem is one of the most useful formulas in mathematics, engineering, construction, and everyday problem solving. Our free Pythagorean theorem calculator lets you find any missing side of a right triangle as soon as you enter the other two. Whether you are checking a diagonal measurement, laying out a square corner, or finishing a geometry assignment, the tool handles the arithmetic and displays the formula so you can verify every step.

What This Calculator Does

The calculator is built around the classic relationship a² + b² = c². The letters a and b represent the two legs that meet at the right angle, while c represents the hypotenuse opposite that angle. You can switch between two modes:

  • Find Hypotenuse — enter both legs and get the longest side.
  • Find Missing Leg — enter the hypotenuse and one leg to recover the other leg.

Both modes validate your inputs and show the exact expression used, so the result is never a mysterious number.

How to Use the Tool

  1. Choose the mode that matches what you know.
  2. Type the two known side lengths into the input fields.
  3. Read the missing side in the result panel.
  4. Check the formula line to see how the answer was derived.

All calculations run locally in your browser. No data is sent to a server, so you can use the calculator on-site, in the field, or during an exam review without worrying about connectivity or privacy.

Real-World Use Cases

Right triangles hide in many practical situations. Carpenters use the theorem to confirm that a frame is square by measuring diagonals. DIY enthusiasts rely on it to cut braces, shelves, or ramp supports. Surveyors and landscapers apply it to calculate slopes and distances without climbing every hill. Students and teachers use it for homework, worksheets, and quick classroom demonstrations. Even programmers working on graphics, physics, or game development reach for the theorem when computing distances between points.

Worked Example

Imagine you need to find the diagonal of a rectangular garden bed that measures 6 feet by 8 feet. The diagonal forms the hypotenuse of a right triangle whose legs are 6 and 8.

a² + b² = c²
6² + 8² = c²
36 + 64 = c²
100 = c²
c = √100 = 10

The diagonal is exactly 10 feet long. If the numbers were not a perfect triple, the calculator would still return an accurate decimal answer and keep the formula visible for your notes.

Tips for Accurate Results

  • Use the same unit for every side. Mixing feet and inches will give a wrong answer unless you convert first.
  • Remember that the hypotenuse must always be the largest value. If it is not, double-check which angle is the right angle.
  • For very large or very small numbers, rely on the decimal result rather than rounding early.
  • If a side comes back as zero or an error appears, confirm that you entered positive lengths and that the hypotenuse is longer than either leg.

Frequently Asked Questions

The Pythagorean theorem is a fundamental rule of Euclidean geometry. In any right triangle, the square of the hypotenuse (the side opposite the 90° angle) equals the sum of the squares of the two legs. It is written as a² + b² = c².

Related Tools