AI-Powered Math Engine v2.1

Pythagorean Theorem Calculator Find Any Side in Seconds

Solve a² + b² = c² instantly. Enter any two sides of a right triangle and get the missing side with a full step-by-step explanation — or verify whether three lengths even form a right triangle. Part of the Geometry Math Solver toolset.

Enter both legs to find the hypotenuse c.

Quick picks:
3 Modes
Hypotenuse · Leg · Verify
500,000+
Geometry Problems Solved
99.8%
Verified Accuracy Rate

More Than a Basic Hypotenuse Calculator

Most calculators give you a number. We give you understanding — and three solving modes no basic tool offers.

Standard Calculators vs. GeometryMathSolver

Only finds the hypotenuse — can’t solve for a leg

No “Verify Triangle” mode to check if sides are valid

No visual triangle diagram with labeled sides

Raw number output — no formula walkthrough


3 modes: hypotenuse, missing leg, and triangle verification

Live SVG diagram labels a, b, and c with your values

Full step-by-step derivation with substituted values

Pythagorean triples reference built in — recognize patterns instantly

The Core Formula
a² + b² = c²

Where a and b are the two shorter legs meeting at the right angle, and c is the hypotenuse — always the longest side, always opposite the 90° angle.

Rearranged for every use case
c c = √(a² + b²) Find hypotenuse
a a = √(c² − b²) Find leg a
b b = √(c² − a²) Find leg b

What This Calculator Solves

From homework triangles to real-world construction checks — the Pythagorean theorem shows up everywhere. Here are the six most common use cases, all handled in one tool.

Find the Hypotenuse

Know both legs? The calculator applies c = √(a² + b²) and shows every arithmetic step, so you can follow along and check your own work.

Example: a = 6, b = 8 → c = 10

Solve for a Missing Leg

Textbook problems often give you the hypotenuse and one leg. Switch to “Find Missing Leg” mode, and the solver rearranges the formula for you automatically.

Example: c = 13, a = 5 → b = 12

Verify a Right Triangle

Not sure if your three measurements form a right triangle? Enter all three sides and the tool checks whether a² + b² = c² — useful for geometry proofs and construction quality control.

Example: 5, 12, 13 → ✓ Right triangle

Real-World Distance Problems

Construction workers use the 3-4-5 rule to check square corners. Surveyors compute diagonal distances across plots. Navigation calculates straight-line distance between two coordinates on a grid.

Example: ladder 10 ft from wall → find floor distance

Pythagorean Triples Recognition

Triples like 3-4-5 and 5-12-13 are shortcuts — memorizing them saves time on timed tests. The reference table below shows the 10 most useful triples and their multiples.

Example: 3-4-5 scales to 6-8-10 and 9-12-15

Area and Perimeter Output

Once all three sides are known, area and perimeter follow immediately. Area = ½ × a × b. Perimeter = a + b + c. Both are shown in the full solution — no need for a separate triangle calculator.

Example: a = 3, b = 4, c = 5 → Area = 6

Pythagorean Triples Reference Table

Integer side lengths that satisfy a² + b² = c² exactly. Recognize them on tests to skip the calculator entirely.

Leg a Leg b Hypotenuse c Verification
3459 + 16 = 25
5121325 + 144 = 169
8151764 + 225 = 289
7242549 + 576 = 625
202129400 + 441 = 841
9404181 + 1600 = 1681
681036 + 64 = 100
102426100 + 576 = 676

Multiples of any triple (e.g. 3-4-5 × 2 = 6-8-10) also satisfy the theorem. Use the Triangle AI Solver for angle calculations on any of these triangles.

How to Use This Calculator

From input to answer in under 10 seconds.

1

Choose a Mode

Pick Find Hypotenuse, Find Missing Leg, or Verify Triangle from the tabs in the Geometry Math Solver above.

2

Enter Known Sides

Type the values in any unit — centimeters, inches, meters, feet. The theorem is unit-agnostic; just stay consistent.

3

Click Calculate

The answer appears instantly in the result banner, alongside an SVG diagram with your side labels. Quick picks auto-fill common triples.

4

Unlock Full Steps

Click “Unlock Full Solution” to see each substitution, the square and square-root computation, plus area and perimeter.

Who Uses This Calculator

The Pythagorean theorem appears across grade levels and professions — here is how each group uses it.

🎒

Middle & High School Students

Geometry class introduces a² + b² = c² around grade 8. This calculator handles the computation so you can focus on understanding which formula to use and why — the real exam skill.

🏗️

Engineers & Builders

The “Verify Triangle” mode is built for trades: enter three measured lengths to confirm a corner is truly square before pouring concrete or framing a wall.

🎓

College Students & Test Prep

ACT, SAT, and GRE geometry sections test Pythagorean triples repeatedly. Use the triples table above to train pattern recognition so you never need to compute during a timed exam.

Pythagorean Theorem Calculator: The Complete Guide to a² + b² = c²

The Pythagorean theorem is one of the oldest and most useful relationships in all of mathematics. Whether you are a student working through a geometry worksheet, a contractor checking the squareness of a foundation, or a developer computing distances in a 2D grid, the formula a² + b² = c² shows up constantly. A reliable Pythagorean theorem calculator removes the arithmetic friction and lets you focus on the concept — which side is the hypotenuse, which formula rearrangement applies, and whether the answer is reasonable.

This guide covers everything you need: how the theorem works, the three ways to apply it, how to recognize Pythagorean triples by sight, and where the theorem appears in the real world. For broader right triangle problems involving angles, check out the Triangle AI Solver on this site.

What Is the Pythagorean Theorem?

In any right triangle — one containing exactly one 90° angle — the relationship between the three sides is always the same. The two shorter sides, called legs and usually labeled a and b, are the sides that form the right angle. The longest side, called the hypotenuse and labeled c, is always directly opposite the right angle.

The theorem states: the square of the hypotenuse is equal to the sum of the squares of the two legs. Written symbolically: a² + b² = c². This is not an approximation — it is an exact relationship that holds for every right triangle without exception, regardless of the units of measurement or the specific angle values.

The theorem is named after the Greek mathematician Pythagoras (circa 570–495 BC), though evidence of its use appears in Babylonian clay tablets dating back to 1800 BC. The key contribution attributed to Pythagoras and his school is the first rigorous mathematical proof of the relationship — the idea that it must be true, not merely observed to be true.

Pro Tip

To quickly verify whether a triangle is a right triangle without calculating angles, just check whether a² + b² = c² where c is the longest side. If the equation holds exactly, it is a right triangle. This is called the converse of the Pythagorean theorem — it goes both directions.

Three Ways to Apply the Formula

Because a² + b² = c² contains three variables, knowing any two of them is enough to find the third. This gives three distinct calculation modes, each requiring a simple algebraic rearrangement of the original formula.

  • Finding the hypotenuse (c): When both legs are known, apply c = √(a² + b²) directly. Square each leg, add the results, and take the square root. This is the most common version seen in textbooks — “find the length of the diagonal,” “how far apart are the two points,” “what is the length of the ramp.”
  • Finding a missing leg (a or b): When the hypotenuse and one leg are given, rearrange to isolate the unknown leg. To find a: a = √(c² − b²). To find b: b = √(c² − a²). Notice that you subtract rather than add. This mode appears in problems where the diagonal is measured and you need one of the perpendicular components — ladder problems, slope problems, and coordinate geometry problems frequently take this form.
  • Verifying a right triangle: When all three sides are given, treat the longest as c and check whether a² + b² equals c². If it does, the triangle is a right triangle. If a² + b² is greater than c², the triangle is acute (all angles below 90°). If a² + b² is less than c², the triangle is obtuse (one angle above 90°).

Pythagorean Triples: The Test-Taking Shortcut

A Pythagorean triple is a set of three positive integers that satisfy a² + b² = c² exactly, producing a hypotenuse with no irrational square root. The smallest and most famous is 3-4-5, verified by 9 + 16 = 25. Other primary triples include 5-12-13, 8-15-17, 7-24-25, and 20-21-29.

Any integer multiple of a Pythagorean triple is itself a triple. Multiply 3-4-5 by 2 and you get 6-8-10; multiply by 3 and you get 9-12-15. This scaling property is crucial for standardized test problems, which often present a recognizable triple in disguise. If you see a right triangle with sides 30 and 40, the hypotenuse is 50 — it is simply the 3-4-5 triple multiplied by 10. Recognizing this pattern saves the 20 seconds you would otherwise spend computing √(900 + 1600).

The reference table above lists the eight most common triples. Memorizing the primary triples — 3-4-5, 5-12-13, 8-15-17, and 7-24-25 — and their immediate doubles covers the vast majority of integer-sided right triangle problems you will encounter in high school geometry and on the SAT, ACT, and GRE.

Real-World Applications of the Pythagorean Theorem

The theorem is not confined to geometry class. It underlies a surprising range of practical calculations across multiple fields.

  • Construction and carpentry: The 3-4-5 rule is the oldest squaring technique in the world. Builders measure 3 units along one wall and 4 units along the adjacent wall; if the diagonal between those points is exactly 5 units, the corner is perfectly square. Modern builders use a Pythagorean theorem calculator to scale this check to room dimensions — for example, checking a 12 × 16 room with a 20-foot diagonal.
  • Navigation and GPS: Straight-line distance on a flat map is computed directly from the theorem. If you travel 3 km east and 4 km north, your displacement from the starting point is 5 km. GPS satellites extend this to three-dimensional space using the distance formula, which is itself derived from the Pythagorean theorem applied twice.
  • Physics — resultant vectors: When two forces or velocities act at right angles, the resultant magnitude is their Pythagorean combination. A boat traveling 8 m/s downstream while the current pushes it 6 m/s sideways has a resultant speed of 10 m/s — directly from 6² + 8² = 10².
  • Computer graphics: Every click-and-drag selection tool, every collision detection algorithm, and every camera ray in a 3D renderer computes distances using the Pythagorean theorem. The distance between two pixels at coordinates (x₁, y₁) and (x₂, y₂) is √((x₂−x₁)² + (y₂−y₁)²), which is exactly c = √(a² + b²) with a = Δx and b = Δy.

Common Mistakes When Using the Pythagorean Theorem

A few mistakes appear repeatedly among students who are new to the theorem. Knowing them in advance prevents wasted time on exams and homework.

  • Assigning c to the wrong side: The hypotenuse is always the longest side and always opposite the right angle. A common error is assigning c to a leg because the diagram is rotated or the problem numbers the sides in a non-standard order. Always identify the 90° angle first, then label its opposite side as c.
  • Forgetting to take the square root: After computing a² + b², you have c² — not c. The extra step of taking the square root is easy to omit when working quickly. Always confirm your final answer makes geometric sense: the hypotenuse must be longer than either leg.
  • Using the formula for non-right triangles: The Pythagorean theorem works only for right triangles. If the problem does not state or imply a 90° angle, the theorem does not apply. Use the Law of Cosines instead for arbitrary triangles.
  • Subtracting instead of adding when finding c: When solving for a leg, you subtract (a = √(c² − b²)). When solving for the hypotenuse, you add (c = √(a² + b²)). Mixing these up is the most frequent arithmetic error.

The Geometry Math Solver is designed specifically to prevent these errors. The three-mode interface makes it impossible to accidentally add when you should subtract, and the live diagram ensures you always see which side is c before you calculate. Whether you need a quick hypotenuse check or a full step-by-step derivation for a homework problem, the calculator handles it — one formula, three modes, zero guesswork.

Frequently Asked Questions

Everything about using a Pythagorean theorem calculator effectively.

What is the Pythagorean theorem formula?
For any right triangle with legs a and b and hypotenuse c, the formula is a² + b² = c². The hypotenuse is always the longest side, directly opposite the right (90°) angle.
How do I find the hypotenuse using this calculator?
Select the “Find Hypotenuse” tab, enter both legs in the a and b fields, and click Calculate. The tool applies c = √(a² + b²) and displays the answer along with a labeled triangle diagram.
Can I solve for a missing leg, not just the hypotenuse?
Yes. Switch to the “Find Missing Leg” tab, enter the hypotenuse and one known leg, and the calculator solves for the other leg using a = √(c² − b²). This mode is unique to this tool — most basic hypotenuse calculators only solve for c.
What is a Pythagorean triple and why does it matter?
A Pythagorean triple is a set of three whole numbers that satisfy a² + b² = c² exactly. The most famous is 3-4-5 (9 + 16 = 25). Others include 5-12-13 and 8-15-17. Recognizing these on a timed test means you can skip calculation entirely and write the answer directly — a major time saver on the SAT and ACT.
Does the Pythagorean theorem work for all triangles?
No — only for right triangles (those with exactly one 90° angle). For acute or obtuse triangles, you need the Law of Cosines: c² = a² + b² − 2ab·cos(C). The “Verify Triangle” mode on this calculator tells you whether your three sides produce a right triangle, an acute triangle, or an obtuse triangle.
How do I check if three sides form a right triangle?
Use the “Verify Triangle” tab: enter all three side lengths and click Calculate. The calculator automatically identifies the longest side as c and checks whether a² + b² equals c². If the equation holds, it is a right triangle. This mode is used in construction to verify that corners are square before framing.
Does it matter what unit I use — meters, feet, or centimeters?
The formula works in any consistent unit system. If a = 3 meters and b = 4 meters, then c = 5 meters. The same numbers in feet give c in feet. Just make sure you do not mix units within the same calculation — do not enter a in centimeters and b in meters.

Solve Any Right Triangle Problem

Use the calculator above for the Pythagorean theorem — or get step-by-step solutions for proofs, angle calculations, area, and more.