Pythagorean Theorem Calculator
Find missing sides of right triangles with step-by-step solutions
Drag & drop or click to add images or PDF
What is the Pythagorean Theorem?
The Pythagorean theorem is a fundamental relation in Euclidean geometry among the three sides of a right triangle. It states that the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides (legs).
where:
- and are the lengths of the two legs
- is the length of the hypotenuse (the longest side)
Solving for Each Side
- Hypotenuse:
- Leg :
- Leg :
Historical Note
Named after the ancient Greek mathematician Pythagoras (c. 570–495 BC), this theorem was known to Babylonian mathematicians over a thousand years earlier. It is one of the most proven theorems in mathematics, with hundreds of distinct proofs.
Pythagorean Triples
A Pythagorean triple consists of three positive integers , , that satisfy . Common examples:
How to Solve Using the Pythagorean Theorem
Step-by-Step Process
- Identify the right angle and label the sides: , (legs) and (hypotenuse)
- Determine which side is unknown
- Substitute the known values into
- Solve for the unknown side
- Simplify the result (exact or decimal form)
Finding the Hypotenuse
Given legs and :
Example: If and , then .
Finding a Leg
Given hypotenuse and one leg :
Example: If and , then .
Checking if a Triangle is Right
Given three sides, check if (where is the longest side):
- If : right triangle
- If : acute triangle
- If : obtuse triangle
Distance Formula Connection
The distance between two points and is derived from the Pythagorean theorem:
Common Formulas
| Known | Unknown | Formula |
|---|---|---|
| , | ||
| , | ||
| , | ||
| All three | Verify | Check |
Common Mistakes to Avoid
- Confusing the hypotenuse with a leg — the hypotenuse is always the longest side opposite the right angle. Using it as a leg in the formula gives wrong results.
- Forgetting to take the square root — after computing , you must take to get , not leave it as .
- Subtracting in the wrong direction — when finding a leg, compute , not (which would give a negative number under the radical).
- Applying the theorem to non-right triangles — the Pythagorean theorem only works for right triangles. For other triangles, use the Law of Cosines.
- Rounding too early — keep the exact value under the square root as long as possible to maintain accuracy.
Examples
Frequently Asked Questions
No, it only works for right triangles (triangles with one 90-degree angle). For non-right triangles, you need to use the Law of Cosines: c squared equals a squared plus b squared minus 2ab times cosine of angle C.
The hypotenuse is always the side opposite the right angle (the 90-degree angle). It is always the longest side of the right triangle.
Common Pythagorean triples include (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25), and (9, 40, 41). Any multiple of a Pythagorean triple is also a triple, for example (6, 8, 10) is a multiple of (3, 4, 5).
Yes. For example, a right triangle with legs 1 and 1 has hypotenuse equal to the square root of 2, which is approximately 1.414. Only Pythagorean triples produce integer results for all three sides.
Related Solvers
Related Guides
Try AI-Math for Free
Get step-by-step solutions to any math problem. Upload a photo or type your question.
Start Solving