# Pythagorean Theorem Calculator

- URL: https://betteranalyst.com/pythagorean-theorem

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

Find the missing side of a right triangle.

- No signup required
- Instant results
- Step-by-step solutions

What are you solving for?

Solve for aSolve for bSolve for c (hypotenuse)

Side a

Side b

Calculate

Press Enter to submit

Better Analyst AI data analysis

## Go beyond one calculation with Better Analyst

Upload an Excel, CSV, or PDF file to analyze a complete dataset, ask follow-up questions, create charts, and get clear answers in seconds.

No credit card required. Free plan included.

[Try Better Analyst free](https://app.betteranalyst.com/signup?returnUrl=/dashboard)

## What Is a Pythagorean Theorem Calculator?

A **Pythagorean theorem calculator** finds the missing side of a right triangle using the relationship a² + b² = c², where c is the hypotenuse (the longest side, opposite the right angle) and a and b are the two legs. Enter any two sides, and the calculator instantly solves for the third.

The tool provides both **exact answers** (in simplified radical form) and **decimal approximations**, making it useful for math homework requiring exact expressions and practical applications needing measurement-ready numbers.

## Common Use Cases

- **Geometry homework** - Solve right triangle problems with step-by-step work shown
- **Construction** - Calculate diagonal measurements, rafter lengths, and bracing dimensions
- **Navigation** - Find straight-line distances when you only know horizontal and vertical components
- **DIY projects** - Ensure corners are square by checking the 3-4-5 triangle relationship
- **Architecture** - Determine roof slopes, staircase dimensions, and structural diagonal braces
- **Land surveying** - Calculate distances across terrain using right triangle relationships

## Why the Pythagorean Theorem Is Tricky in Practice

- **Identifying the hypotenuse** - Students sometimes plug the hypotenuse into a or b instead of c, getting wrong answers
- **Solving for a leg** - Finding a leg requires subtraction under the square root (c² - b²), not addition
- **Simplifying radicals** - The square root of 50 should be expressed as 5 times the square root of 2, not left unsimplified
- **Real-world measurement** - Actual measurements have decimals, making the arithmetic messier than textbook examples

## How It Works

When solving for the **hypotenuse** (c), the calculator squares both legs, adds them together, and takes the square root: c = the square root of (a² + b²). When solving for a **leg** (a or b), it rearranges the formula: a = the square root of (c² - b²). The operation changes from addition to subtraction.

The calculator checks that the inputs form a valid right triangle. The hypotenuse must always be the **longest side**. If you enter two sides where the supposed hypotenuse is shorter than or equal to a leg, the triangle is impossible and the calculator will flag the error.

### Example

Legs: **a = 5**, **b = 12**. Find the hypotenuse c.

c² = 5² + 12² = 25 + 144 = **169**. c = the square root of 169 = **13**. This is a Pythagorean triple (5-12-13), so the answer is an exact integer.

## Key Examples

- **3, 4, ?** - Hypotenuse = 5 (the most famous Pythagorean triple: 3-4-5)
- **5, ?, 13** - Missing leg = 12 (another classic triple: 5-12-13)
- **1, 1, ?** - Hypotenuse = the square root of 2, approximately 1.4142 (isosceles right triangle)
- **8, 15, ?** - Hypotenuse = 17 (Pythagorean triple: 8-15-17)
- **7, 9, ?** - Hypotenuse = the square root of 130, approximately 11.4018 (not a perfect triple)

## Benefits of Using a Pythagorean Theorem Calculator

- **Solve for any side** - Enter the two known sides and the calculator determines which formula to use
- **Exact and decimal** - Get simplified radical form for math class and decimal approximations for real-world use
- **Error prevention** - Avoid common mistakes like forgetting to take the square root or mixing up addition and subtraction
- **Step-by-step work** - See each calculation step so you can follow along and learn the process
- **Input validation** - The calculator catches impossible triangles before you waste time on invalid calculations

## Frequently Asked Questions

### What is a Pythagorean triple?

A **Pythagorean triple** is a set of three positive integers that satisfy a² + b² = c². Common examples include 3-4-5, 5-12-13, 8-15-17, and 7-24-25. Multiples of these also work: 6-8-10 is just 2 times the 3-4-5 triple. These are useful shortcuts for quick mental math.

### Does the Pythagorean theorem work for all triangles?

No. It only works for **right triangles** (triangles with one 90-degree angle). For non-right triangles, you need the Law of Cosines: c² = a² + b² - 2ab cos(C). However, you can use the Pythagorean theorem to test whether a triangle is right-angled by checking if a² + b² equals c².

### How do I know which side is the hypotenuse?

The hypotenuse is always the side **opposite the right angle** and is always the **longest side** of a right triangle. In a diagram, it's typically the slanted side. If you're given three sides and asked to verify a right triangle, the largest number is the candidate for c.

### Can I use this for 3D distance calculations?

Yes, by applying the theorem **twice**. First find the diagonal across the base (using two dimensions), then use that diagonal and the height as the two legs to find the 3D diagonal. The formula becomes d = the square root of (x² + y² + z²).

### What if my answer has a square root that won't simplify?

Some answers remain as **irrational numbers** in radical form. For example, the hypotenuse of a triangle with legs 2 and 3 is the square root of 13, which cannot be simplified further. In these cases, the decimal approximation (approximately 3.6056) is the practical answer.

### How is the Pythagorean theorem used in construction?

Builders use the **3-4-5 method** to verify right angles. Measure 3 feet along one wall and 4 feet along the adjacent wall. If the diagonal between those points is exactly 5 feet, the corner is perfectly square. This ancient technique is still the fastest way to check corners on a job site.

Compare your options

## Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

1. [01ChatGPTOpen a balanced comparison prompt in ChatGPT.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.

## More Calculators

- ### [Free Statistics Calculator Online](https://betteranalyst.com/statistics-calculator)
- ### [Free Derivative Calculator](https://betteranalyst.com/derivative-calculator)
- ### [Free Fraction Calculator Online](https://betteranalyst.com/fraction-calculator)
- ### [Free Unit Converter Online](https://betteranalyst.com/unit-converter)
- ### [Free Compound Interest Calculator Online](https://betteranalyst.com/compound-interest-calculator)
- ### [Free Probability Calculator Online](https://betteranalyst.com/probability-calculator)
- ### [Free Integral Calculator](https://betteranalyst.com/integral-calculator)
- ### [Free Complex Number Calculator Online](https://betteranalyst.com/complex-number-calculator)
- ### [Percentage Calculator — Percent & Change](https://betteranalyst.com/percentage-calculator)
- ### [Free Regression Calculator Online](https://betteranalyst.com/regression-calculator)
- ### [Free Number Base Converter Online](https://betteranalyst.com/base-converter)
- ### [Free Limit Calculator](https://betteranalyst.com/limit-calculator)
- ### [Free Factoring Calculator Online](https://betteranalyst.com/factoring-calculator)
- ### [Free Polynomial Roots Calculator Online](https://betteranalyst.com/polynomial-roots-calculator)
- ### [Free Summation Calculator (Sigma Notation)](https://betteranalyst.com/summation-calculator)
- ### [Free Expression Simplifier](https://betteranalyst.com/expression-simplifier)
- ### [Free Matrix Calculator Online](https://betteranalyst.com/matrix-calculator)
- ### [Free Vector Calculator Online](https://betteranalyst.com/vector-calculator)
- ### [Free Equation Solver Online](https://betteranalyst.com/equation-solver)
- ### [Free Tip Calculator Online](https://betteranalyst.com/tip-calculator)
  [Calculate tips and split bills with ease.](https://betteranalyst.com/tip-calculator)
- ### [Free GPA Calculator Online](https://betteranalyst.com/gpa-calculator)
  [Calculate your grade point average instantly.](https://betteranalyst.com/gpa-calculator)
- ### [Free Square Footage Calculator Online](https://betteranalyst.com/square-footage)
  [Calculate area for any shape and convert between units.](https://betteranalyst.com/square-footage)
- ### [Free Square Root Calculator Online](https://betteranalyst.com/square-root)
  [Find square roots with step-by-step solutions.](https://betteranalyst.com/square-root)
- ### [Free Final Grade Calculator Online](https://betteranalyst.com/final-grade)
  [Find out what you need on your final exam.](https://betteranalyst.com/final-grade)
- ### [Free Quadratic Formula Calculator Online](https://betteranalyst.com/quadratic-formula)
  [Solve quadratic equations step by step.](https://betteranalyst.com/quadratic-formula)
- ### [Free Annuity Calculator Online](https://betteranalyst.com/annuity-calculator)
  [Calculate annuity payments and values.](https://betteranalyst.com/annuity-calculator)
- ### [Free Dividend Calculator Online](https://betteranalyst.com/dividend-calculator)
  [Calculate dividend yield and income projections.](https://betteranalyst.com/dividend-calculator)
- ### [Free Long Division Calculator Online](https://betteranalyst.com/long-division)
  [Solve long division with detailed steps.](https://betteranalyst.com/long-division)
- ### [Age Calculator - Calculate Your Exact Age](https://betteranalyst.com/age-calculator)
  [Calculate your exact age in years, months, and days.](https://betteranalyst.com/age-calculator)
- ### [Slope Calculator - Find Slope from Two Points](https://betteranalyst.com/slope-calculator)
  [Find the slope and equation of a line.](https://betteranalyst.com/slope-calculator)
- ### [Free Future Value Calculator Online](https://betteranalyst.com/future-value)
  [Calculate how your investments grow over time.](https://betteranalyst.com/future-value)
- ### [Free Discount Calculator Online](https://betteranalyst.com/discount-calculator)
  [Calculate sale prices and savings instantly.](https://betteranalyst.com/discount-calculator)
- ### [Free Scientific Notation Calculator Online](https://betteranalyst.com/scientific-notation)
  [Convert and calculate with scientific notation.](https://betteranalyst.com/scientific-notation)
- ### [Log Calculator - Calculate Logarithms Online](https://betteranalyst.com/log-calculator)
  [Calculate logarithms with any base.](https://betteranalyst.com/log-calculator)
- ### [Free Rounding Calculator Online](https://betteranalyst.com/rounding-calculator)
  [Round numbers to any decimal place.](https://betteranalyst.com/rounding-calculator)
- ### [Free Markup Calculator Online](https://betteranalyst.com/markup-calculator)
  [Calculate markup percentage and profit margins.](https://betteranalyst.com/markup-calculator)
- ### [Free Mixed Number Calculator Online](https://betteranalyst.com/mixed-number)
  [Add, subtract, multiply, and divide mixed numbers.](https://betteranalyst.com/mixed-number)
- ### [Free Exponent Calculator Online](https://betteranalyst.com/exponent-calculator)
  [Calculate powers and exponents step by step.](https://betteranalyst.com/exponent-calculator)
- ### [Free Significant Figures Calculator Online](https://betteranalyst.com/sig-fig)
  [Count and round significant figures.](https://betteranalyst.com/sig-fig)
- ### [Free Midpoint Calculator Online](https://betteranalyst.com/midpoint-calculator)
  [Find the midpoint between two coordinate points.](https://betteranalyst.com/midpoint-calculator)
- ### [Free Percent Error Calculator Online](https://betteranalyst.com/percent-error)
  [Calculate percent error for experiments and data.](https://betteranalyst.com/percent-error)
- ### [Free GCF & LCM Calculator Online](https://betteranalyst.com/gcf-lcm-calculator)
  [Find the GCF and LCM of any numbers.](https://betteranalyst.com/gcf-lcm-calculator)
- ### [Free Decimal to Fraction Calculator Online](https://betteranalyst.com/decimal-to-fraction)
  [Convert decimals to fractions in lowest terms.](https://betteranalyst.com/decimal-to-fraction)
