Updated Math

Pythagorean Theorem Calculator

Solve missing right-triangle sides, calculate distance between two points, and check whether three sides form a right triangle with clear steps and formulas.

Find c Find a or b Distance Right Triangle Check

Pythagorean Theorem Solver

Choose a mode, enter values, and get the missing side or distance with step-by-step working.

Common Pythagorean triples are integer side lengths that satisfy a² + b² = c². You can use them to sanity-check results or create quick right triangles.
Leg a Leg b Hypotenuse c Scale Factor Examples
345×2 → 6-8-10, ×3 → 9-12-15
51213×2 → 10-24-26
81517×2 → 16-30-34
72425×2 → 14-48-50
94041×2 → 18-80-82
123537×2 → 24-70-74
202129×2 → 40-42-58

What the Pythagorean Theorem Calculator Does

A Pythagorean Theorem Calculator helps you solve right-triangle problems quickly and accurately using one of the most useful relationships in geometry: a² + b² = c². In this equation, a and b are the legs that form the right angle, and c is the hypotenuse, the longest side opposite the 90° angle. This tool is designed for practical problem-solving: find a missing side, compute the distance between two coordinate points, or verify whether three side lengths form a right triangle.

The calculator is built for speed but also for understanding. Instead of returning only a number, it produces clear steps that show where each value comes from, which is helpful for homework, engineering checks, construction layout, and everyday measurement. You can also set decimal precision, add units, and apply a tolerance when checking if a triangle is right (useful when the inputs come from measurements that include rounding).

The Core Formula

The theorem applies only to right triangles. If you know any two sides of a right triangle and one of them is the hypotenuse or both are legs, you can solve for the missing side. The calculator uses the correct rearrangement depending on which side is unknown.

Pythagorean Theorem
a² + b² = c²

Find the Hypotenuse

If you know both legs, the hypotenuse is found by summing their squares and taking the square root. This is the most common use case when you have a right angle and two perpendicular measurements.

Hypotenuse
c = √(a² + b²)

Find a Missing Leg

If you know the hypotenuse and one leg, subtract the known leg’s square from the hypotenuse’s square, then take the square root. A key rule matters here: the hypotenuse must be the largest side. If the hypotenuse is not larger than the known leg, there is no real (non-imaginary) solution for a right triangle.

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

Distance Between Two Points Uses the Same Idea

The distance formula in coordinate geometry is a direct application of the Pythagorean theorem. If you plot two points, the horizontal difference and vertical difference form the legs of a right triangle. The straight-line distance between the points is the hypotenuse.

Distance Formula
d = √((x₂ − x₁)² + (y₂ − y₁)²)

This mode is useful in algebra, analytic geometry, mapping, CAD design, and navigation tasks where you know coordinates but want a direct distance. If your coordinates represent meters on a grid, the output distance is in meters; if they represent pixels, the output is in pixels.

Right Triangle Check and Why Tolerance Matters

When you measure real objects, values often include small errors: tape measures bend, edges are not perfect, and decimals are rounded. A strict equality check (a² + b² equals c² exactly) might fail even when the triangle is effectively right. That is why the calculator includes a tolerance setting for checks.

The check works by sorting the three sides so the largest is treated as the hypotenuse candidate. Then it compares largest² to sum of squares of the other two. If the difference is within your tolerance, the triangle is considered right for practical purposes.

Perimeter and Area for Right Triangles

Once the legs and hypotenuse are known, two other measurements are often useful: perimeter and area. Perimeter is the sum of all three sides. Area in a right triangle is especially simple because the legs are perpendicular, so they act as base and height.

Perimeter
P = a + b + c
Area
A = (a · b) / 2

If you provide units such as centimeters, the perimeter is shown in centimeters and the area is shown in square centimeters. This is a common place people get confused, so the calculator formats the units carefully.

Pythagorean Triples and Fast Mental Checks

A Pythagorean triple is a set of integers that satisfies the theorem exactly. These appear frequently in construction, design, and test questions because they produce clean numbers. The most famous triple is 3-4-5. If you scale every side by the same factor, the new triangle is still right, which makes triples useful for layout.

For example, if you need a right angle in a physical space, you can measure 3 units along one side, 4 units along the other, and confirm the diagonal is 5 units. Scaling the same pattern to 6-8-10 or 9-12-15 helps when you need larger spacing.

How to Use This Calculator

Quick workflow

  1. Select a mode: find hypotenuse, find missing leg, distance between points, or check sides.
  2. Set decimals and optional units at the top.
  3. Enter values and click Calculate or Check.
  4. Review the primary result, equation, and step-by-step breakdown.
  5. Copy results for notes, homework, or reports.

Common Mistakes This Tool Helps You Avoid

  • Using the theorem on non-right triangles: The equation a² + b² = c² is only valid for right triangles.
  • Choosing the wrong hypotenuse: The hypotenuse is always the longest side and opposite the 90° angle.
  • Forgetting squares: The theorem uses squares of sides, not the sides themselves.
  • Negative or zero inputs: Side lengths must be positive.
  • Unit confusion: Perimeter uses linear units; area uses squared units.

Practical Use Cases

The Pythagorean theorem shows up far beyond classrooms. Builders use it to confirm corners are square, engineers use it to compute resultant distances, surveyors use it in coordinate grids, and designers use it when working with diagonal lengths on screens and layouts. If you ever need a straight-line distance across a rectangle, a triangle diagonal, or a precise missing side, the theorem is usually involved.

  • Construction layout: verifying right angles using 3-4-5 or larger scaled triples.
  • DIY and carpentry: calculating rafter braces, diagonal supports, or rectangle diagonals.
  • Navigation and mapping: converting horizontal and vertical changes into direct distance.
  • Coordinate geometry: finding distance between points or checking perpendicular relationships.
  • CAD and 3D work: validating dimensions and diagonals.

Limitations and Assumptions

This calculator assumes Euclidean geometry and right triangles. For non-right triangles, other formulas such as the Law of Cosines are used. When you use the check feature with tolerance, remember it evaluates whether the triangle is approximately right given rounding. For exact proofs, use exact values or rational forms when possible.

FAQ

Pythagorean Theorem Calculator – Frequently Asked Questions

Quick answers about right triangles, distance, missing sides, and common triples.

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the legs: a² + b² = c².

You can use it only for right triangles (triangles with a 90° angle). It does not apply to non-right triangles.

If you know both legs a and b, compute c = √(a² + b²).

If you know hypotenuse c and one leg, compute the other leg with √(c² − known²). The hypotenuse must be the largest side.

Distance is found by forming a right triangle with horizontal and vertical differences: d = √((x₂−x₁)² + (y₂−y₁)²).

They are integer side lengths that satisfy a² + b² = c², such as (3,4,5) and (5,12,13).

Real measurements and decimals can introduce rounding. A small tolerance helps identify near-right triangles reliably.

Yes. When a right triangle’s legs and hypotenuse are known, it can show area (a·b/2) and perimeter (a+b+c).

Yes. Add a unit label for sides (cm, m, in, ft, etc.). Area is shown in squared units.

This calculator is for educational and planning use. For physical measurements, allow for measurement error and rounding.