🧮

Pythagorean Theorem Calculator – Find Missing Side (a² + b² = c²)

Pythagorean Theorem

Fill in any two side lengths, leave the third empty, then click "Calculate".

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

The Pythagorean Theorem Calculator instantly finds the missing side of any right triangle. Enter the two known sides (leg a, leg b, or hypotenuse c) and leave the unknown side blank – the calculator will compute the remaining length, show the algebraic steps, and display the result. Perfect for students, carpenters, engineers, and anyone working with right triangles.

a (leg)b (leg)c (hypotenuse)

Pythagorean Theorem Formula

$$a^2 + b^2 = c^2$$

In a right triangle, the side opposite the right angle is the hypotenuse (c). The other two sides are legs (a and b). The theorem states that the square of the hypotenuse equals the sum of squares of the legs.

//

Step‑by‑Step Proof of the Pythagorean Theorem

Proof using area rearrangement (classic geometric proof):

  1. Consider a right triangle with legs $a$ and $b$, hypotenuse $c$.
  2. Construct a large square of side length $a + b$. Inside it, draw four copies of the triangle, arranged so that their hypotenuses form a smaller square of side $c$ (the classic “Bhide” or “Garfield” arrangement).
  3. The area of the large square = $(a + b)^2 = a^2 + 2ab + b^2$.
  4. This area also equals the area of the four triangles plus the area of the small square (side $c$): $$4 \times \left( \frac{ab}{2} \right) + c^2 = 2ab + c^2.$$
  5. Set the two expressions equal: $$a^2 + 2ab + b^2 = 2ab + c^2.$$
  6. Subtract $2ab$ from both sides: $$a^2 + b^2 = c^2.$$
  7. Thus, the square of the hypotenuse equals the sum of the squares of the legs. ∎

This proof requires no advanced algebra – only simple area formulas and cutting/rearranging shapes. It has been known for thousands of years.

Understanding the Pythagorean Theorem

The theorem is named after the ancient Greek mathematician Pythagoras, though it was known to earlier civilisations. It only holds for right triangles – triangles containing a 90° angle. The theorem can also be reversed: if a² + b² = c² for a triangle, then the triangle is right‑angled.

Pythagorean triples are integer solutions like (3,4,5), (5,12,13), and (8,15,17). Our example buttons include several common triples.

What is the Pythagorean Theorem and How Does It Work?
The Pythagorean theorem states that in a right‑angled triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides (legs). Mathematically: a² + b² = c². This theorem is fundamental in geometry, trigonometry, and many real‑world fields. Our Pythagorean Theorem Calculator instantly solves for any missing side – just enter the two known lengths, and the calculator finds the third, showing every algebraic step exactly as you would write it on paper.

How to Use This Calculator – Step by Step
Using the calculator is simple: (1) Enter the length of side a (one leg) – e.g., 3. (2) Enter the length of side b (the other leg) – e.g., 4. (3) Leave side c (hypotenuse) empty. Click Calculate. The missing hypotenuse appears as 5, with a full step‑by‑step solution. Alternatively, enter the hypotenuse and one leg to find the missing leg. The example buttons provide pre‑filled Pythagorean triples for quick testing.

Step‑by‑Step Manual Calculation (Student Paper Style)
Step 1: Write the theorem: a² + b² = c².
Step 2: Substitute known values: 3² + 4² = c².
Step 3: Square each number: 9 + 16 = c².
Step 4: Add: 25 = c².
Step 5: Take square root: c = √25 = 5.
Our calculator automates this process for any numbers, including decimals and large values.

Real‑World Applications of the Pythagorean Theorem
Construction and Carpentry: Ensuring foundations are square (3‑4‑5 rule).
Navigation and Surveying: Calculating straight‑line distances between two points.
Computer Graphics: Determining distance between pixels or 3D objects.
Physics: Resolving force vectors and finding resultants.
Sports: Calculating the shortest path on a baseball diamond or soccer field.
This calculator helps professionals and students apply the theorem quickly and accurately.

Common Mistakes When Using the Pythagorean Theorem
Using the wrong side as hypotenuse: The hypotenuse must be the side opposite the right angle (the longest side).
Forgetting to square the sides: Many beginners forget to square a and b before adding.
Adding instead of subtracting when finding a leg: To find leg a, use a² = c² – b², not a² = c² + b².
Rounding too early: Keep several decimals until the final step to avoid precision errors.
Applying the theorem to non‑right triangles: The Pythagorean theorem only works for right triangles. Our calculator checks for validity (e.g., hypotenuse must be larger than each leg).

Pythagorean Triples – Common Integer Solutions
A Pythagorean triple consists of three positive integers (a, b, c) that satisfy a² + b² = c². Examples: (3,4,5), (5,12,13), (8,15,17), (7,24,25), (9,40,41). These triples appear frequently in geometry problems and standardized tests. Our example buttons include several of these triples, allowing you to verify the calculator and understand the pattern.

How to Prove the Pythagorean Theorem (Visual Proof)
One classic proof uses area rearrangement: Draw a square of side a+b. Place four identical right triangles (legs a, b, hypotenuse c) inside. The remaining area is a square of side c. The large square area = (a+b)² = a² + 2ab + b². The four triangles have total area = 4 × (ab/2) = 2ab. So the small square area = (a+b)² – 2ab = a² + b². But the small square is also c². Hence a² + b² = c². Our calculator includes this proof in the step‑by‑step section.

Frequently Asked Questions (Extended)
Can the Pythagorean theorem be used on any triangle? No, only right triangles (one angle = 90°).
What if I get a negative number under the square root? That means the sides cannot form a right triangle (e.g., hypotenuse too short). Our calculator will show an error message.
Does the theorem work for decimal or fractional sides? Yes, the calculator accepts any positive real numbers.
How do I find the hypotenuse if I only know one leg? You need at least two sides. The theorem always requires two known sides to find the third.
What is the difference between the Pythagorean theorem and the distance formula? The distance formula in 2D (d = √[(x₂−x₁)² + (y₂−y₁)²]) is directly derived from the Pythagorean theorem.
Is this calculator accurate for large numbers? Yes, it uses JavaScript’s floating‑point arithmetic with up to 6 decimal places.

How to Use This Calculator for Homework and Exams
Students can use the calculator to check their manual work. First, solve the problem on paper using the step‑by‑step method. Then enter your given sides into the calculator to verify your answer. The calculator’s “Step‑by‑Step Calculation” section shows exactly the same algebraic steps you should write in your notebook. This reinforces learning and helps identify mistakes. Teachers can also use the calculator to generate example problems and solutions.

Use this Pythagorean Theorem Calculator for all your right‑triangle needs. Bookmark it for quick access during homework, exam prep, construction projects, or any time you need to find a missing side. Whether you are a student, teacher, carpenter, or engineer, this tool simplifies the theorem and provides clear, educational solutions.

Frequently Asked Questions about the Pythagorean Theorem

What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse (c) equals the sum of squares of the other two sides (a and b): a² + b² = c².
How do I find the hypotenuse?
If you know the two legs (a and b), the hypotenuse is c = √(a² + b²).
How do I find a missing leg?
If you know the hypotenuse and one leg, the other leg is √(c² - a²) or √(c² - b²).
Can the Pythagorean theorem be used on any triangle?
No, it only works for right triangles (triangles with a 90° angle).
What is a Pythagorean triple?
A set of three positive integers (a,b,c) that satisfy a² + b² = c², e.g., (3,4,5) or (5,12,13).
Does the Pythagorean theorem work for decimal or fractional sides?
Yes, the calculator accepts any positive real numbers including decimals and fractions.
What if I get a negative number under the square root?
That means the sides cannot form a valid right triangle. The calculator will show an error message.