Pythagorean Theorem Calculator
Solve the Pythagorean theorem (a² + b² = c²) for any unknown side of a right triangle. This free hypotenuse calculator computes the hypotenuse or missing leg length from the other two sides, generates a proportional visual diagram on canvas, and shows the square root steps. Whether you need to find the hypotenuse, calculate a missing side, or verify a Pythagorean triple, this tool provides instant, accurate results with step-by-step explanations.
How to Use the Pythagorean Theorem Calculator
Interactive calculator available after JavaScript loads.
Loading calculator...
Lead Mathematician — PhD Applied Mathematics, MIT, Former Quant Analyst, Published researcher
Looking for a deeper explanation?
Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.
Mathematical Formula & Logic
Step-by-Step Worked Calculation
Scenario: Finding the Hypotenuse c
Find the hypotenuse of a right-angled triangle with leg side a = 3 and leg side b = 4.
Step 1: Formula: c = sqrt(a² + b²).
Step 2: Square both legs: 3² = 9 and 4² = 16.
Step 3: Add the squared values: 9 + 16 = 25.
Step 4: Take the square root: sqrt(25) = 5. Hypotenuse length c is 5.
How to Use the Pythagorean Theorem Calculator
- 1. Select the side you want to solve for (Leg a, Leg b, or Hypotenuse c).
- 2. Enter the values for the other two sides in the input fields.
- 3. View the computed value and the step-by-step math proof below.
- 4. Check the dynamically rendered triangle on the canvas.
- 5. Copy or share your right triangle solution results.
What Is a Pythagorean Theorem Calculator?
The Pythagorean theorem states that in a right triangle, the square of the hypotenuse (c) equals the sum of the squares of the two legs: a² + b² = c². This fundamental relationship allows you to find any missing side length when the other two are known.
Why This Calculation Matters
The Pythagorean theorem is one of the most important and widely used theorems in mathematics. It forms the foundation for trigonometry, analytic geometry, and the distance formula. It is essential in construction, navigation, engineering, physics, and computer science.
Historical Background
While named after Greek philosopher Pythagoras (570-495 BCE), evidence shows the theorem was known to Babylonian mathematicians around 2000 BCE. Indian mathematician Baudhayana described it around 800 BCE. The first known formal proof was given by Euclid around 300 BCE.
Common Mistakes to Avoid
- Using the theorem on non-right triangles (it only applies to right triangles)
- Forgetting to square the side lengths before adding or subtracting
- Misidentifying which side is the hypotenuse (it is always opposite the 90° angle)
- Taking the square root of a negative number (which would indicate an impossible triangle)
- Confusing the legs with the hypotenuse when rearranging the formula
E-E-A-T Authority & Trust Statement
This calculator is for educational and informational purposes only. Always verify critical calculations with authoritative sources.
Frequently Asked Questions
Complete indexable directory of answers (17 questions)
How do I use the Pythagorean theorem calculator?
Enter any two sides of a right triangle and the calculator finds the third. Select which side you want to solve for (leg a, leg b, or hypotenuse c), enter the known values, and get instant results with step-by-step math.
What is the Pythagorean theorem formula?
The Pythagorean theorem states that a² + b² = c², where a and b are the legs and c is the hypotenuse. To find the hypotenuse: c = √(a² + b²). To find a leg: a = √(c² - b²).
Who discovered the Pythagorean theorem?
The theorem is attributed to Pythagoras, an ancient Greek philosopher and mathematician (570-495 BCE). However, Babylonian mathematicians used similar rules as early as 2000 BCE, and Indian mathematician Baudhayana described it around 800 BCE.
Can this solve any triangle?
No, the Pythagorean theorem only applies to right-angled triangles (triangles with one 90-degree angle). For non-right triangles, use the law of cosines instead.
What is a Pythagorean triple?
A Pythagorean triple is a set of three positive integers (a, b, c) that satisfy a² + b² = c². Common examples include (3, 4, 5), (5, 12, 13), (8, 15, 17), and (7, 24, 25).
What is the hypotenuse?
The hypotenuse is the longest side of a right triangle, always opposite the 90-degree angle. It is always greater than either leg. In the formula a² + b² = c², c represents the hypotenuse.
How do I find a missing leg?
If you know the hypotenuse and one leg, rearrange the formula: a = √(c² - b²) or b = √(c² - a²). Subtract the known leg squared from the hypotenuse squared, then take the square root.
Can the Pythagorean theorem be used in 3D?
Yes. In 3D space, the distance between two points is d = √((x₂-x₁)² + (y₂-y₁)² + (z₂-z₁)²). This extends the 2D Pythagorean theorem to three dimensions using the space diagonal formula.
What is the converse of the Pythagorean theorem?
The converse states: if a² + b² = c² for a triangle with sides a, b, c, then the triangle is a right triangle. This is used to verify whether a triangle has a right angle.
How does the Pythagorean theorem relate to distance formula?
The distance formula d = √((x₂-x₁)² + (y₂-y₁)²) is derived directly from the Pythagorean theorem. The horizontal and vertical distances are the legs, and the straight-line distance is the hypotenuse.
What are some real-world applications?
The Pythagorean theorem is used in construction (ensuring square corners), navigation (calculating straight-line distances), surveying (measuring land), computer graphics (distance calculations), and physics (vector decomposition).
What is a right triangle?
A right triangle has exactly one 90-degree angle. The side opposite the right angle is the hypotenuse (longest side). The other two sides are called legs. Right triangles are fundamental in trigonometry and geometry.
Can I use this calculator to verify if a triangle is right-angled?
Yes. Enter the three sides and check if a² + b² = c² (where c is the longest side). If the equation holds, the triangle is right-angled. If not, it is not a right triangle.
Is this Pythagorean theorem calculator free?
Yes, this free Pythagorean theorem calculator is 100% free with no signup required. Calculate hypotenuse and missing legs online with instant step-by-step results.
What mathematical formula does the Pythagorean Theorem Calculator use?
The Pythagorean Theorem Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.
How can I verify the Pythagorean Theorem Calculator results manually?
Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.
What types of inputs does the Pythagorean Theorem Calculator accept?
The Pythagorean Theorem Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.