Skip to main content

Pythagorean Theorem Calculator

Calculate using the Pythagorean theorem with interactive right triangle visualizations and comprehensive geometric analysis

Category: Mathematics

Pythagorean Theorem Calculator Inputs

Enter values to calculate

Length of the first leg of the right triangle (enter 0 if unknown)

Length of the second leg of the right triangle (enter 0 if unknown)

Length of the hypotenuse (longest side, enter 0 if unknown)

Select a Pythagorean triple or choose Custom

Enable JavaScript for interactive calculation and step-by-step results.

Pythagorean Theorem Calculator Formula

Equation

a^2 + b^2 = c^2

Excel Formula

=POWER(a,2)+POWER(b,2)=POWER(c,2)

Variables

  • Leg a (units) — Length of the first leg of the right triangle (enter 0 if unknown)
  • Leg b (units) — Length of the second leg of the right triangle (enter 0 if unknown)
  • Hypotenuse c (units) — Length of the hypotenuse (longest side, enter 0 if unknown)
  • Triangle Type — Select a Pythagorean triple or choose Custom

How the Pythagorean Theorem Calculator Works

Remember that $a^2 + b^2 = c^2$ formula from school? That's the Pythagorean theorem, and it's way more useful than you might think! Named after the ancient Greek mathematician Pythagoras (though he probably wasn't the first to discover it), this theorem is your go-to tool for working with right triangles—those triangles with one perfect 90-degree corner. Whether you're hanging a picture frame, building a deck, navigating with GPS, or just trying to figure out if your TV will fit diagonally through a doorway, the Pythagorean theorem has got your back. This calculator makes it super easy: plug in any two side lengths, and it instantly calculates the third. No complicated math required—we've got you covered!.

The core relationship is a^2 + b^2 = c^2. Typical inputs include Leg a, Leg b, Hypotenuse c, Triangle Type.

Enter your values in the pythagorean theorem calculator above, review the step-by-step solution, and compare against the worked examples below so you can see how each input changes the result. This free online mathematics tool is built for homework, design checks, and professional verification.

Pythagorean Theorem Calculator Theory & Explanation

What Exactly Is the Pythagorean Theorem?

Picture a right triangle—you know, one with that perfect square corner. Now give names to the sides: the two sides that form the right angle are called **legs** (let's call them a and b), and the longest side opposite the right angle is the **hypotenuse** (that's c). Here's the magical relationship Pythagoras discovered over 2,500 years ago:

**The square of the hypotenuse equals the sum of the squares of the legs.**

In math terms: a^2 + b^2 = c^2

What does "square" mean here? Just multiply the number by itself. So if side a is 3 units long, then a^2 = 3 × 3 = 9. Simple!

**Here's the cool visual:** If you actually draw squares on each side of the triangle, the areas of the two smaller squares (on the legs) add up exactly to the area of the largest square (on the hypotenuse). It's like a geometric puzzle that always fits perfectly!

**Important:** This only works for **right triangles** (triangles with a 90-degree angle). Try it on any other triangle and the math just won't check out. The right angle is the magic ingredient!

a^2 + b^2 = c^2

How to Find a Missing Side (The Easy Way)

Got a right triangle but missing one measurement? No problem! The Pythagorean theorem lets you find any missing side if you know the other two. Here's how:

**Scenario 1: Finding the Hypotenuse (longest side)**

You know both legs (a and b), and need to find the hypotenuse (c):

• Square each leg: a^2 and b^2 • Add them together: a^2 + b^2 • Take the square root: c = √(a^2 + b^2)

**Example:** Legs are 3 and 4 units. Find the hypotenuse. c = √(3^2 + 4^2) = √(9 + 16) = √(25) = 5 units. Classic 3-4-5 triangle!

**Scenario 2: Finding a Leg**

You know the hypotenuse (c) and one leg (say b), need to find the other leg (a):

• Square the hypotenuse: c^2 • Square the known leg: b^2 • Subtract: c^2 - b^2 • Take the square root: a = √(c^2 - b^2)

**Example:** Hypotenuse is 10, one leg is 6. Find the other leg. a = √(10^2 - 6^2) = √(100 - 36) = √(64) = 8 units.

**Pro tip:** The hypotenuse is **always** the longest side. If your calculation gives you a hypotenuse shorter than one of the legs, check your math—something went wrong!

a = √(c^2 - b^2), \quad c = √(a^2 + b^2)

Famous Pythagorean Triples (Shortcut Alert!)

Some right triangles have super nice, whole-number side lengths. These are called **Pythagorean triples**, and memorizing a few will save you tons of time:

• **3-4-5**: The most famous! 3^2 + 4^2 = 9 + 16 = 25 = 5^2 ✓ • **5-12-13**: 5^2 + 12^2 = 25 + 144 = 169 = 13^2 ✓ • **8-15-17**: 8^2 + 15^2 = 64 + 225 = 289 = 17^2 ✓ • **7-24-25**: 7^2 + 24^2 = 49 + 576 = 625 = 25^2 ✓

**Bonus:** Any **multiple** of these also works! For example, if 3-4-5 works, then so does 6-8-10 (just double everything), or 9-12-15 (triple), or 30-40-50 (×10). This is super handy in construction when you need to scale things up.

Carpenters love the 3-4-5 triple for checking if corners are square: measure 3 feet on one side, 4 feet on the other—if the diagonal is exactly 5 feet, you've got a perfect right angle!

Real-World Applications (It's Not Just Homework!)

The Pythagorean theorem is everywhere once you start looking. Here are just a few examples:

**1. Construction & Carpentry** Building a deck? Need to make sure it's square? Use the 3-4-5 method! Measuring diagonals to check if foundations are rectangular? Pythagorean theorem.

**2. Navigation** GPS systems use it constantly. Flying from point A to point B but need to account for altitude changes? The horizontal distance and vertical distance (altitude) form the legs, and your actual straight-line distance is the hypotenuse.

**3. TV & Screen Sizes** Ever wonder why TVs are measured diagonally? That diagonal is the hypotenuse! If a TV is 40 inches wide and 22.5 inches tall, the diagonal is √(40^2 + 22.5^2) ≈ 46 inches. That's your screen size!

**4. Sports Fields** Baseball diamonds are squares with 90-foot sides. What's the distance from home plate to second base (the diagonal)? √(90^2 + 90^2) ≈ 127.3 feet.

**5. Ladder Safety** Placing a ladder safely? The distance from the wall (base) and the height you want to reach (height) determine how long your ladder needs to be (hypotenuse). Safety guidelines say the base should be about 1/4 of the height for stability.

**6. Smartphone Screens** That "6-inch phone" has a 6-inch diagonal screen, not length or width! The actual dimensions might be 5.2 inches by 3 inches, where √(5.2^2 + 3^2) ≈ 6 inches.

See? The Pythagorean theorem is silently working in the background of everyday life!

Pythagorean Theorem Calculator Worked Examples

Worked Example

Inputs

  • a: 3
  • b: 4
  • c: 0

Result: c = 5.0000

Explanation

Using the Pythagorean theorem: 3² + 4² = 9 + 16 = 25, so c = √25 = 5

Second Scenario

Inputs

  • a: 4.75
  • b: 4
  • c: 0

Result: c = 5.0000

Explanation

This scenario uses different inputs (a = 4.75, b = 4, c = 0) to show how changing one variable affects the pythagorean theorem result. Run the calculator above with these values to get the exact updated output with step-by-step work.

Common Pythagorean Theorem Calculator Use Cases

  • Homework and exam practice
  • Engineering and science coursework
  • Quick verification of hand calculations
  • Pythagorean Theorem homework and study
  • Pythagorean Theorem design and analysis

Pythagorean Theorem Calculator FAQs

Does the Pythagorean theorem work for all triangles?

No, the Pythagorean theorem only works for right triangles (triangles with one 90-degree angle). For other types of triangles, you would use different formulas like the Law of Cosines.

How do I know which side is the hypotenuse?

The hypotenuse is always the longest side of a right triangle and is opposite to the right angle. It is the side that does not form the right angle.

Can the Pythagorean theorem be used with negative numbers?

No, the Pythagorean theorem deals with lengths, which are always positive. However, the theorem can be extended to work with coordinates in the coordinate plane, where negative values represent direction.

What are Pythagorean triples?

Pythagorean triples are sets of three positive integers (a, b, c) that satisfy the Pythagorean theorem. Common examples include (3, 4, 5), (5, 12, 13), and (8, 15, 17).

What does the Pythagorean Theorem Calculator calculate?

It applies the formula on this page to your inputs and returns the primary result plus any supporting values shown in the output panel.