Pythagorean Theorem Calculator

Calculate hypotenuse or legs of right triangles using a² + b² = c² formula. Features interactive visualization, detailed calculation steps, and supports multiple input modes for students and professionals.

Calculate
Pythagorean Triples
Learn & Examples

Triangle Sides

Enter any two sides to calculate the third side

Settings

Find Pythagorean Triples

Understanding the Pythagorean Theorem

The Formula:
a² + b² = c²

Where:
a and b are the lengths of the two legs (shorter sides)
c is the length of the hypotenuse (longest side, opposite the right angle)

History

The Pythagorean theorem is named after the ancient Greek mathematician Pythagoras (c. 570–495 BC), although evidence suggests that Babylonian mathematicians understood this relationship over 1,000 years earlier.

Common Pythagorean Triples

  • (3, 4, 5): 3² + 4² = 9 + 16 = 25 = 5²
  • (5, 12, 13): 5² + 12² = 25 + 144 = 169 = 13²
  • (8, 15, 17): 8² + 15² = 64 + 225 = 289 = 17²
  • (7, 24, 25): 7² + 24² = 49 + 576 = 625 = 25²

Real-World Applications

  • Construction: Ensuring corners are square (90°)
  • Navigation: Calculating shortest distance between two points
  • Architecture: Designing roofs, ramps, and stairs
  • Physics: Resolving vectors into components
  • Computer Graphics: Calculating distances in 2D and 3D space

Interactive Examples

Example 1
a=3, b=4
Find c
Example 2
a=5, c=13
Find b
Example 3
a=8, b=15
Find c
Instant results No signup required Standard formulas Free to use

Frequently Asked Questions about Pythagorean Theorem Calculator

Can I use the Pythagorean theorem calculator for 3D problems?

Indirectly, yes. In 3D geometry (like finding the diagonal of a box), you apply the theorem twice. First find the diagonal across the floor (d² = a² + b²), then use that diagonal as one leg with the height (space diagonal² = d² + h²). Our calculator handles each 2D step perfectly – just do them sequentially.

How do I calculate the hypotenuse if I only know one leg and the area?

You can’t directly, but here’s the two-step workaround: If area = 12 and one leg = 4, then the other leg = (area*2)/4 = 6. Now you have both legs, so enter them to find the hypotenuse. The tool doesn’t do the area-to-leg conversion automatically, but the formula is straightforward.

Why does the calculator sometimes show “error” when I enter three numbers?

That’s a feature, not a bug. If you enter all three sides and they don’t satisfy a² + b² = c² (within 0.0001 tolerance), the tool warns you. This prevents you from trusting a wrong triangle. For example, entering 3, 4, 6 triggers an error because 3²+4²=25, not 36. It’s a quick verification tool for checking your work.

What’s the difference between “primitive” and “non-primitive” Pythagorean triples?

A primitive triple has sides that share no common divisor other than 1. Example: (3,4,5) is primitive because 3,4,5 have no common factor. (6,8,10) is non-primitive because it’s just 2×(3,4,5). The “Pythagorean Triples” tab separates them so you can study the base patterns first.

Does this tool work on my phone’s browser?

Yes, and it’s designed for it. The input fields are large enough to tap, the canvas drawing resizes, and all buttons are thumb-friendly. No app download required. Open Safari, Chrome, or Firefox on iOS or Android – it works the same as on a desktop.

Can I embed this Pythagorean theorem calculator on my own website?

Currently, the tool lives on HeyCalc. But because it’s entirely client-side, you’re free to link to it from your class page, forum, or internal wiki. No attribution is required, though it’s appreciated. We built it as a public utility, not a lead magnet.

Follow us on Google News