Skip to content
D DocNectar

Free Pythagorean Theorem Calculator

Find the hypotenuse of a right triangle from its two legs, with every step shown.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

The Pythagorean theorem is one of the most useful formulas in geometry, connecting the three sides of any right triangle.

This calculator finds the length of the hypotenuse given the two legs of a right triangle, showing the full working at each step.

How it works

Enter the lengths of the two legs (the two shorter sides that meet at the right angle). The calculator squares each leg, adds the results together, and takes the square root to find the hypotenuse — the longest side, opposite the right angle.

  1. Enter leg a.
  2. Enter leg b.
  3. Click Calculate to see your results.

Examples

A classic 3-4-5 triangle

Legs of 3 and 4 give a hypotenuse of 5, since 3² + 4² = 9 + 16 = 25, and √25 = 5.

Who should use it

  • Checking geometry homework involving right triangles.
  • Finding a diagonal distance, like a TV screen size or a diagonal brace length in construction.

Industry applications

  • Geometry and trigonometry education
  • Construction, carpentry, and engineering measurements

Advantages

  • Instantly finds the hypotenuse from any two leg lengths.
  • Shows the squaring, summing, and square root steps individually.

Limitations

  • Solves for the hypotenuse only — finding a missing leg requires rearranging the formula manually.

Common mistakes to avoid

  • Applying the theorem to a triangle that isn't a right triangle, where it doesn't hold.
  • Mixing up which side is the hypotenuse — it's always the longest side, opposite the right angle, never one of the two legs.

Best practices

  • Double-check that the triangle actually has a right angle before applying this formula — it only works for right triangles.

Tips

  • The Pythagorean theorem is exactly how diagonal TV and monitor sizes are measured — the diagonal is the hypotenuse of the screen's width and height.

Frequently asked questions

Yes, with no signup and no limit on how many calculations you run.
It states that in a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c².
No — the Pythagorean theorem only applies to right triangles, which have one 90-degree angle. For triangles without a right angle, use the Law of Cosines instead.
This calculator solves for the hypotenuse from two legs — the most common use case. To find a missing leg, rearrange the formula to b = √(c² - a²) and calculate manually.

Get new calculators and guides in your inbox

No spam — just new tools like Pythagorean Theorem Calculator and practical guides.

Favorites