📐 Pythagorean Theorem Calculator

Find a missing leg or hypotenuse using a² + b² = c², or check whether three side lengths form a right triangle.

📐 Find the Missing Side
Result
Missing Side
Formula Used
📐

Choose the unknown side, enter the other two, and calculate

✅ Check if a Triangle is Right-Angled
Result
Verdict
a² + b²

Enter three side lengths to check if they form a right triangle

Guide

About the Pythagorean Theorem Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This Pythagorean theorem calculator finds a missing leg or hypotenuse of any right triangle using the equation a² + b² = c², and separately checks whether three given side lengths actually form a right triangle. Named after the ancient Greek mathematician Pythagoras, this is one of the oldest and most widely applied theorems in geometry — connecting algebra to the physical shape of a triangle. Whether you need a quick find-hypotenuse calculator for homework, a right-triangle calculator to verify a construction corner, or an a²+b²=c² calculator to check if a triangle is right, acute, or obtuse, this free tool shows the exact formula and substituted numbers behind every result.

What the Pythagorean Theorem Measures

The theorem describes a fixed relationship between the three sides of a right triangle: the sum of the squares of the two legs (the sides forming the 90° angle) always equals the square of the hypotenuse (the longest side, opposite the right angle). This isn't an approximation — it holds exactly for every right triangle, regardless of size, which is why it can be used both to calculate an unknown side and to test whether a triangle is right-angled at all.

Who Should Use This Calculator

This tool is built for students verifying geometry homework, builders and DIYers squaring up a wall or foundation corner, carpenters sizing a diagonal brace, surveyors and navigators computing straight-line distances, and engineers or designers who need a fast, accurate right-triangle calculation without manually rearranging the formula by hand.

Why the Pythagorean Theorem Matters

Because it converts a purely geometric shape into simple algebra, the theorem underlies distance formulas, vector math, trigonometry, and countless practical measurements. A single equation — a² + b² = c² — lets you find any one side of a right triangle from the other two, or confirm that a corner is truly square, without a protractor or angle finder.

Real-World Applications

Construction crews use the 3-4-5 rule (a scaled Pythagorean triple) to square building corners. Carpenters use it to size diagonal braces. Navigators and pilots use it to compute straight-line distance from north-south and east-west offsets. TV and monitor diagonal sizes are calculated the same way from width and height. Physicists use it to resolve vector components, and the formula is the direct ancestor of the 2D and 3D distance formulas used in computer graphics and GPS mapping.

Tips for Accurate Results

  • Make sure all three side lengths use the same unit of measurement before entering them.
  • When solving for a missing leg, remember the hypotenuse must always be strictly greater than either leg — if it isn't, no valid triangle exists.
  • Use the Check mode with decimal inputs cautiously — the calculator allows a tiny rounding tolerance so measured (not perfectly exact) triangles still register correctly as right triangles.
Formula

The Pythagorean Theorem Formula, Explained

How this calculator solves for a missing side and checks for a right angle

Core Theorem
a² + b² = c²

Find the Hypotenuse
c = √(a² + b²)

Find a Missing Leg
a = √(c² − b²)  or  b = √(c² − a²)

Right-Triangle Check
Sort the three sides so the largest is c, then compare a² + b² to c²

Where:
a, b = the two legs of a right triangle (the sides forming the 90° angle).
c = the hypotenuse — the longest side, opposite the right angle.
📐

The Hypotenuse Is Always Longest

The hypotenuse is opposite the largest angle (90°), so it must be strictly longer than either leg — a quick sanity check on any input.

🔢

Pythagorean Triples

Whole-number solutions like (3,4,5), (5,12,13), and (8,15,17) — plus any multiple of them, like (6,8,10) — satisfy a²+b²=c² exactly.

🔺

Right vs Acute vs Obtuse

Comparing a²+b² to c² also classifies any triangle: equal means right, a²+b² > c² means acute, a²+b² < c² means obtuse.

⚙️ Why This Formula Works

Squaring each leg and comparing the sum to the squared hypotenuse works because a right angle produces a very specific geometric relationship — one provable by rearranging squares built on each side of the triangle. Because this relationship is exact (not approximate), it can run in two directions: forward to calculate an unknown side, or backward to test whether a 90° angle exists at all.

🎯 When to Use Each Mode

  • Find the Missing Side: you know two sides of a right triangle and need the third
  • Check if Right-Angled: you have all three side lengths and need to confirm a 90° corner
  • Use the 3-4-5 rule (or any Pythagorean triple) when squaring a physical corner without tools

📋 Assumptions

  • The triangle is assumed to genuinely be (or being tested for being) a right triangle
  • All input side lengths are positive real numbers in the same unit
  • The hypotenuse must be strictly greater than either individual leg

⚠️ Limitations of the Formula

  • Does not apply directly to non-right triangles — use the Law of Cosines instead
  • Cannot compute a real result if the given "hypotenuse" isn't longer than the known leg
  • Decimal/measured inputs need a small rounding tolerance when checking for a right angle
Walkthrough

Step-by-Step: How to Use the Pythagorean Theorem Calculator

From choosing a mode to reading your result

Pick a mode

Choose "Find the Missing Side" to solve for a leg or hypotenuse, or "Check if a Triangle is Right-Angled" to test three known side lengths.

Select the unknown side (missing-side mode)

Choose whether the hypotenuse (c), leg a, or leg b is unknown from the dropdown — the input fields update automatically.

Enter the two known side lengths

Type in the two sides you already know. Make sure all three sides use the same unit of measurement.

Click "Calculate"

The calculator applies a² + b² = c², rearranged for whichever side is missing, and displays the substituted formula.

Or switch to Check mode and enter three sides

Enter all three side lengths and click "Check" to see whether they form a right, acute, or obtuse triangle.

Read the result

Review the computed side length or right-triangle verdict, along with the a²+b² vs c² comparison shown beneath it.

Example

Worked Example

Finding a hypotenuse, then confirming it with the right-triangle check

Scenario

A carpenter has a right triangle brace with legs of 3 ft and 4 ft. What length should the diagonal (hypotenuse) piece be cut to — and does 3-4-5 actually form a right angle?

Leg a3 ft
Leg b4 ft
Hypotenuse c? (solve)
Step 1 — Square both legs: a² = 3² = 9, b² = 4² = 16.
Step 2 — Add the squares: 9 + 16 = 25.
Step 3 — Take the square root: c = √25 = 5 ft.
Step 4 — Verify with the Check mode: enter sides 3, 4, 5. Sorted, the largest is 5, so c² = 25.
Step 5 — Compare: a² + b² = 9 + 16 = 25, and c² = 25. Since they're equal, this confirms a right triangle — the classic 3-4-5 rule used to square building corners.
Hypotenuse (c)
5 ft
a² + b²
25
Verdict
Right Triangle

Explanation: Because 3² + 4² exactly equals 5², the 3-4-5 triangle is a genuine Pythagorean triple — this is precisely why builders measure 3 units along one wall, 4 units along a perpendicular wall, and confirm the diagonal is exactly 5 units to guarantee a true 90° corner, without needing a protractor.

Interpretation

Understanding Your Result

What the missing-side value and the right-triangle verdict actually mean

ComparisonTriangle TypeWhat It Means
a² + b² = c²Right triangleThe triangle has exactly one 90° angle, opposite side c
a² + b² > c²Acute triangleAll three angles are less than 90°
a² + b² < c²Obtuse triangleOne angle is greater than 90°, opposite side c

Reading the missing-side result: in Find the Missing Side mode, the number shown is the exact length (in your input unit) that completes a valid right triangle with the two values you entered.

Typical ranges: the hypotenuse must always exceed both legs individually, but must be less than their sum (a + b) — otherwise the "triangle" would be a straight line or wouldn't close at all.

How to verify manually: square your computed side, add or subtract as appropriate, and confirm the result matches a² + b² = c² using a basic calculator — this is exactly the check the calculator performs automatically in Check mode.

Use Cases

Practical Use Cases for the Pythagorean Theorem Calculator

Where a and b and c meet the real world

🎓

School & college geometry homework

Check right-triangle side and classification problems step by step.

🏗️

Construction & foundation squaring

Use the 3-4-5 rule to confirm a wall or foundation corner is exactly 90°.

🪜

Staircase & ramp design

Find the stringer (diagonal) length from a staircase's total rise and run.

🪚

Carpentry & framing

Size a diagonal brace needed to keep a rectangular frame square.

🧭

Navigation & surveying

Compute straight-line distance from north-south and east-west offsets.

📡

GPS & mapping

The theorem underlies the coordinate distance formula used in mapping software.

🧮

Physics & vector resolution

Resolve a vector into components, or find a resultant displacement or force.

🖥️

Screen & display sizing

Calculate a TV or monitor's diagonal size from its width and height.

🎮

Computer graphics & game dev

Compute on-screen distances and collision boundaries between objects.

📊

Data analysis & statistics

Euclidean distance calculations (built on this theorem) are core to clustering algorithms.

🏛️

Architecture & drafting

Verify diagonal measurements on blueprints and floor plans.

🎨

Everyday DIY & crafts

Square up a picture frame, garden bed, or furniture project quickly.

Sports field marking

Confirm square corners when laying out a field or court.

Pros & Cons

Advantages and Limitations

What this Pythagorean theorem calculator does well, and where it doesn't apply

✅ Advantages

  • Free, instant, and requires no signup or account
  • Runs entirely in your browser — no data ever leaves your device
  • Two tools in one: find a missing side, or check if a triangle is right-angled
  • Shows the fully substituted formula behind every result
  • Automatically classifies a triangle as right, acute, or obtuse from the check mode
  • Removes manual square-root and squaring arithmetic errors
  • Useful across construction, carpentry, navigation, and school contexts alike
  • Validates inputs and flags an invalid hypotenuse before computing
  • Accepts decimal inputs for precise, real-world measurements
  • Fast-loading and fully mobile-friendly
  • Consistent, error-free results every time
  • Free to use as many times as needed, with no calculation limit

⚠️ Limitations

  • Only applies to right triangles — cannot solve a general (non-right) triangle
  • Cannot compute a missing leg if the given hypotenuse isn't longer than the known leg
  • Displays decimal results rounded to a fixed number of places, which can hide tiny precision loss
  • Assumes all three side lengths are already in the same, consistent unit
  • Right-triangle check uses a small rounding tolerance, so extremely close-but-not-exact triangles may be misclassified
  • Does not calculate triangle angles directly — only side-length relationships
  • Not a substitute for the Law of Cosines/Sines on oblique (non-right) triangles
Reference

Right vs Acute vs Obtuse Triangle Classification

How the same a²+b² vs c² comparison sorts any triangle into one of three types

TypeConditionLargest AngleExample Sides
Right trianglea² + b² = c²Exactly 90°3, 4, 5
Acute trianglea² + b² > c²Less than 90°4, 5, 6
Obtuse trianglea² + b² < c²Greater than 90°3, 4, 6

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Assuming any side can be treated as the hypotenuse — only the longest side can be c
  • Trying to solve for a leg when the entered "hypotenuse" is actually shorter than the leg
  • Mixing units (e.g. feet for one side, inches for another) before calculating
  • Forgetting to take the square root after summing or subtracting the squares
  • Applying a²+b²=c² directly to a non-right triangle
  • Rounding intermediate steps too early, compounding small errors in the final answer

💡 Expert Tips & Best Practices

  • Sort your three sides from smallest to largest before checking for a right angle — the largest is always c
  • Use a known Pythagorean triple (3-4-5, 5-12-13) to sanity-check the calculator's output mentally
  • Pair this tool with the Distance Calculator when your right triangle comes from coordinate points
  • For non-right triangles, use the Triangle Calculator, which applies the Law of Cosines and Law of Sines
  • Double-check that your "hypotenuse" input is genuinely the longest side before solving for a leg
📝

Summary: This Pythagorean theorem calculator gives you an instant, free way to find a missing leg or hypotenuse using a² + b² = c², and to check whether three side lengths form a right, acute, or obtuse triangle — with the formula and steps shown. Pair it with related tools like the Distance Calculator and Triangle Calculator for a fuller picture of triangle and coordinate geometry.

FAQ

Frequently Asked Questions

Common questions about the Pythagorean theorem

What is the Pythagorean theorem?
For a right triangle with legs a and b and hypotenuse c (the side opposite the right angle), a² + b² = c². It relates the lengths of the three sides of any right triangle and is one of the oldest and most widely used results in geometry.
How do you find the hypotenuse of a right triangle?
c = √(a² + b²), where a and b are the two legs. For example, a triangle with legs 3 and 4 has a hypotenuse of √(9+16) = √25 = 5. Select "Hypotenuse (c)" in the calculator's Find the Missing Side mode and enter both legs.
How do you find a missing leg of a right triangle?
Rearrange the theorem: a = √(c² − b²) or b = √(c² − a²), where c is the hypotenuse. The hypotenuse must always be longer than either leg, otherwise no valid right triangle exists.
How can you tell if a triangle is a right triangle from its side lengths?
Sort the three sides so c is the largest, then check whether a² + b² = c² (within a small rounding tolerance). If they're equal, it's a right triangle; if a²+b² is greater the triangle is acute, and if it's less the triangle is obtuse.
What is the 3-4-5 triangle rule used in construction?
Builders measure 3 units along one wall, 4 units along a perpendicular wall, and check that the diagonal between those two points is exactly 5 units. Since 3²+4²=5² (9+16=25), this confirms a perfect 90° corner without needing a protractor — any multiple of 3-4-5 (like 6-8-10) works the same way.
What is the difference between a right, acute, and obtuse triangle?
Comparing the sum of the squares of the two shorter sides (a²+b²) to the square of the longest side (c²) tells you the triangle type: equal means a right triangle, a²+b² greater than c² means an acute triangle (all angles under 90°), and a²+b² less than c² means an obtuse triangle (one angle over 90°).
Can the Pythagorean theorem be used on any triangle?
No — the theorem a²+b²=c² only applies directly to right triangles. For non-right triangles, you need the Law of Cosines instead, which generalizes the relationship by adding a term involving the cosine of the included angle.
Why must the hypotenuse be the longest side?
The hypotenuse is opposite the right angle, and in any triangle the longest side is always opposite the largest angle. Since a right angle (90°) is the largest angle in a right triangle, the hypotenuse must be strictly longer than either leg.
What happens if the hypotenuse I enter is not greater than the other leg?
The calculator shows an alert and will not compute a result, because c² − b² (or c² − a²) would be zero or negative, making the square root undefined or invalid for a real triangle. Double-check that the hypotenuse is genuinely the longest of the two known values.
How is the Pythagorean theorem used in real life?
It's used to square up walls and foundations in construction (the 3-4-5 rule), calculate a TV or monitor's diagonal size from its width and height, find straight-line navigation distance from north-south and east-west offsets, resolve vector components in physics, and determine diagonal bracing lengths in carpentry.
What are Pythagorean triples?
A Pythagorean triple is a set of three positive whole numbers (a, b, c) that satisfy a²+b²=c² exactly, such as (3,4,5), (5,12,13), (8,15,17), and (7,24,25). Any whole-number multiple of a triple, like (6,8,10), is also a valid triple.
How accurate is the right-triangle check's tolerance?
The calculator allows a very small rounding tolerance (a tiny fraction of c²) when comparing a²+b² to c², so that triangles entered with rounded decimal measurements still register as right triangles. Exact whole-number inputs like 3, 4, 5 will match precisely.
Can side lengths be decimals, or must they be whole numbers?
Side lengths can be any positive decimal value, not just whole numbers — the calculator accepts values like 3.5 or 7.25. Whole-number Pythagorean triples are just easier to recognize and memorize, not a requirement of the theorem itself.
How do I calculate the diagonal of a rectangle or screen using this theorem?
Treat the rectangle's width and height as legs a and b, then solve for the hypotenuse c = √(a²+b²). This is exactly how TV and monitor diagonal sizes are calculated from their width and height measurements.
What is the difference between the Pythagorean theorem and the Law of Cosines?
The Pythagorean theorem (a²+b²=c²) is a special case that only works for right triangles. The Law of Cosines, c² = a² + b² − 2ab·cos(C), works for any triangle and reduces to the Pythagorean theorem when angle C is exactly 90° (since cos(90°) = 0).
Learn More

Authoritative Resources on the Pythagorean Theorem

Trusted educational references to go deeper on right-triangle geometry

Related Calculators

Explore other geometry tools