Free Tool

Pythagorean Theorem Calculator

Find the missing side of a right triangle.

No signup requiredInstant resultsStep-by-step solutions

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.

Still not sure that Formula Bot is right for you?

Let ChatGPT, Claude, or Perplexity do the thinking for you. Click a button and see what your favorite AI says about Formula Bot.

More Calculators

Free Derivative Calculator

Compute symbolic derivatives instantly with step-by-step rules and an interactive graph of f(x) and f'(x).

Free Unit Converter Online

Convert between units of length, weight, temperature, volume, speed, time, and area instantly.

Free Fraction Calculator Online

Add, subtract, multiply, and divide fractions instantly with step-by-step simplification to lowest terms.

Free Statistics Calculator Online

Compute mean, median, mode, standard deviation, variance, quartiles, and a full five-number summary from any dataset.

Free Compound Interest Calculator Online

Calculate compound interest with year-by-year breakdowns, future value, and effective annual rate.

Free Probability Calculator Online

Compute combinations (nCr), permutations (nPr), and factorials (n!) instantly with step-by-step formula expansions.

Free Complex Number Calculator Online

Perform complex number arithmetic, find conjugates, magnitude, and polar form with step-by-step solutions.

Free Integral Calculator

Compute indefinite and definite integrals instantly with AI-powered step-by-step solutions.

Free Number Base Converter Online

Convert numbers between binary, octal, decimal, and hexadecimal instantly with all representations shown at once.

Free Limit Calculator

Evaluate limits of functions instantly with a table of approaching values from left, right, or both sides.

Free Percentage Calculator Online

Calculate percentages three ways: find X% of Y, what percent X is of Y, or percentage change.

Free Regression Calculator Online

Compute the line of best fit (y = mx + b), R-squared, correlation coefficient, predictions, and residuals from any dataset.

Free Polynomial Roots Calculator Online

Find real and complex roots of quadratic, cubic, and quartic polynomials with step-by-step solutions.

Free Summation Calculator (Sigma Notation)

Compute sigma notation sums instantly with individual terms and partial sums displayed step by step.

Free Factoring Calculator Online

Find GCD, LCM, and prime factorizations instantly with step-by-step Euclidean algorithm and trial division.

Free Expression Simplifier

Simplify algebraic expressions instantly with a breakdown of the rules applied and an expanded form.

Free Matrix Calculator Online

Compute determinant, inverse, transpose, multiplication, eigenvalues, and rank — with step-by-step explanations.

Free Vector Calculator Online

Compute dot product, cross product, magnitude, unit vectors, and angle between vectors — with step-by-step formulas.

Free Equation Solver Online

Solve linear systems (Ax = b) and quadratic equations (ax^2+bx+c = 0) instantly with step-by-step solutions and verification.

Free Tip Calculator Online

Calculate tips and split bills with ease.

Free GPA Calculator Online

Calculate your grade point average instantly.

Free Square Footage Calculator Online

Calculate area for any shape and convert between units.

Free Square Root Calculator Online

Find square roots with step-by-step solutions.

Free Final Grade Calculator Online

Find out what you need on your final exam.

Free Quadratic Formula Calculator Online

Solve quadratic equations step by step.

Free Annuity Calculator Online

Calculate annuity payments and values.

Free Dividend Calculator Online

Calculate dividend yield and income projections.

Free Long Division Calculator Online

Solve long division with detailed steps.

Age Calculator - Calculate Your Exact Age

Calculate your exact age in years, months, and days.

Slope Calculator - Find Slope from Two Points

Find the slope and equation of a line.

Free Future Value Calculator Online

Calculate how your investments grow over time.

Free Discount Calculator Online

Calculate sale prices and savings instantly.

Free Scientific Notation Calculator Online

Convert and calculate with scientific notation.

Log Calculator - Calculate Logarithms Online

Calculate logarithms with any base.

Free Rounding Calculator Online

Round numbers to any decimal place.

Free Markup Calculator Online

Calculate markup percentage and profit margins.

Free Mixed Number Calculator Online

Add, subtract, multiply, and divide mixed numbers.

Free Exponent Calculator Online

Calculate powers and exponents step by step.

Free Significant Figures Calculator Online

Count and round significant figures.

Free Midpoint Calculator Online

Find the midpoint between two coordinate points.

Free Percent Error Calculator Online

Calculate percent error for experiments and data.

Free GCF & LCM Calculator Online

Find the GCF and LCM of any numbers.

Free Decimal to Fraction Online

Convert decimals to fractions in lowest terms.

Ready to Solve More Problems?

Sign up for free and unlock unlimited calculations, saved history, and more.

Get Started Free