Pythagorean Theorem Calculator
Find the hypotenuse or missing side of a right triangle instantly and get angles, area, perimeter, altitude, and step-by-step calculations.
Was this calculator helpful?
Your feedback helps us improve our calculators.
What Is a Pythagorean Theorem Calculator?
A Pythagorean theorem calculator is an online tool that finds the missing side of a right triangle when you know the other two sides. It uses the Pythagorean theorem formula, (a2+b2=c2), where (a) and (b) are the two legs and (c) is the hypotenuse.
This calculator does more than find a missing side. It can also calculate the two acute angles, altitude to the hypotenuse, area, perimeter, and other useful measurements of the right triangle.
You can enter regular side lengths or values containing square roots, such as (25). This makes the Pythagoras calculator useful for students, teachers, builders, engineers, and anyone who needs to solve right-triangle measurements quickly.
How to Use the Pythagorean Theorem Calculator
You only need to know two sides of the right triangle. The calculator will determine the third.
1. Identify the Two Known Sides
Decide which two side lengths you already know:
Side a – one leg of the right triangle
Side b – the other leg
Hypotenuse c – the longest side, opposite the (90∘) angle
Remember that (c) must always be the hypotenuse and therefore the longest side.
2. Enter the Side Values
Enter your two known measurements into the appropriate fields and leave the unknown side empty.
Each side can be entered in the form:
kr
This allows the calculator to work with both ordinary numbers and radical values.
For example, you can enter values such as:
5
or
25
A blank component is treated as 1, making it easier to enter values that do not require both parts of the radical expression.
3. Leave the Unknown Side Blank
Do not enter a value for the side you want to calculate.
For example, if you know Side (a) and Side (b), leave Hypotenuse (c) blank. If you know (b) and (c), leave Side (a) blank.
4. Click Calculate
Click the Calculate button. The calculator applies the correct form of the Pythagorean theorem and solves the right triangle.
5. Review Your Results
Depending on your inputs, the result section can show:
Side (a)
Side (b)
Hypotenuse (c)
Angle (α) in degrees
Angle (β) in degrees
Right angle of (90∘)
Angle (α) in radians
Angle (β) in radians
Altitude to (c) ((h))
Area
Perimeter
Calculation steps
The calculation steps are especially useful when you want to understand the math or check a solution manually.
Use Clear when you want to remove the current values and start a new calculation.
Pythagorean Theorem Formula
The Pythagorean theorem formula describes the relationship between all three sides of a right triangle:
a2+b2=c2
Where:
(a) = first leg of the right triangle
(b) = second leg of the right triangle
(c) = hypotenuse
The hypotenuse is the side directly opposite the (90^\circ) angle and is always the longest side of a right triangle.
The Pythagoras theorem formula states that the square of the hypotenuse equals the sum of the squares of the other two sides.
You can rearrange this equation depending on which side is unknown.
Formula to Find the Hypotenuse
If you know both legs, use:
c=a2+b2
Square Side (a) and Side (b), add the results, and then take the square root.
Formula to Find Side a
If you know the hypotenuse (c) and Side (b), use:
a=c2−b2
Because you are finding a leg rather than the hypotenuse, subtract the square of the known leg from the square of the hypotenuse.
Formula to Find Side b
If Side (a) and the hypotenuse are known, use:
b=c2−a2
The same rule applies: square the hypotenuse, subtract the square of the known leg, and take the square root.
How to Do the Pythagorean Theorem Step by Step
If you are wondering how to do the Pythagorean theorem manually, the process depends on which side you need to find.
For a missing hypotenuse:
Identify the two legs of the right triangle.
Write the formula (a2+b2=c2).
Substitute the known side lengths.
Square both known values.
Add the squared values.
Take the square root of the result.
Check that the hypotenuse is longer than either leg.
For example, suppose:
a=6,b=8
Start with:
a2+b2=c2
Substitute the values:
62+82=c2
Square each number:
36+64=c2
Add them:
100=c2
Take the square root:
c=100
Therefore:
c=10
So, a right triangle with legs of 6 and 8 has a hypotenuse of 10.
When finding a missing leg, the process is slightly different because you subtract the known leg's square from the hypotenuse's square.
Pythagorean Theorem Example
One of the easiest ways to understand the theorem is with a 3-4-5 right triangle.
Suppose:
a=3
and
b=4
To find the hypotenuse:
c=a2+b2
Substitute the values:
c=32+42
Square both numbers:
c=9+16
Add:
c=25
Therefore:
c=5
The three side lengths are:
3, 4, 5
They satisfy:
32+42=52
because:
9+16=25
The numbers 3, 4, and 5 form a Pythagorean triple because all three are positive integers that satisfy the Pythagorean equation.
Example: Finding a Missing Leg
Suppose the hypotenuse is 13 and Side (a) is 5. We need to find Side (b).
Use:
b=c2−a2
Substitute the values:
b=132−52
b=169−25
b=144
b=12
Therefore, the missing leg is 12.
Example Using Radical Side Lengths
The Pythagoras theorem calculator can also work with side lengths written using square roots.
For example, suppose:
a=25
and:
b=3
Find the hypotenuse using:
c=a2+b2
Substitute the values:
c=(25)2+32
Square each value:
c=20+9
Therefore:
c=29
The hypotenuse is:
29
or approximately:
5.385
Supporting radical values is useful when solving geometry problems where the exact side length contains a square root.
Where Is the Pythagorean Theorem Used?
The Pythagorean theorem is useful whenever a problem can be represented by a right triangle. It helps calculate an unknown length when two perpendicular measurements are already known.
Construction and Carpentry
Builders and carpenters can use the Pythagorean theorem to check right angles, calculate diagonal measurements, plan framing, and verify rectangular layouts.
For example, the common 3-4-5 triangle can be used to create or check a (90^\circ) corner.
Architecture and Engineering
Architects and engineers may use right-triangle calculations when working with slopes, structural dimensions, diagonal supports, ramps, roofs, and other designs involving perpendicular measurements.
Finding Diagonal Distance
If you know the length and width of a rectangle, you can find its diagonal using:
d=l2+w2
For a rectangle that is 6 units long and 8 units wide:
d=62+82
d=36+64
d=10
So, the diagonal is 10 units.
Surveying and Mapping
Right-triangle relationships can help calculate straight-line distances when horizontal and vertical distances are known.
This same mathematical idea is used in the distance formula for coordinate geometry.
Education
Students can use a Pythagoras theorem calculator to solve geometry problems and check manual calculations.
The calculation steps can also help students understand how the formula works instead of simply giving them the missing side.
Computer Graphics
Distance calculations based on the Pythagorean relationship are useful in coordinate systems, graphics, games, and other applications where the straight-line distance between points is needed.
Benefits of Using a Pythagoras Calculator
A Pythagoras calculator makes right-triangle calculations faster while also providing information that can help you understand the complete triangle.
Find a missing side quickly: Enter any two valid side lengths and calculate the third without doing every step manually.
Reduce arithmetic mistakes: Squaring values, subtracting numbers, and calculating square roots manually can lead to errors. A calculator helps reduce these routine calculation mistakes.
Work with radical values: You can enter values in (kr) form, which is useful when a geometry problem contains exact square-root measurements.
Get more than a side length: Along with the missing side, the calculator can provide acute angles, radians, altitude, area, and perimeter.
Review calculation steps: The displayed steps make it easier to check how the results were obtained.
Check homework or manual calculations: Students and teachers can compare manually calculated answers with the calculator results.
Who Can Use the Pythagorean Theorem Calculator?
The calculator can be useful for anyone working with right triangles, including:
Students learning geometry or trigonometry
Teachers preparing or checking examples
Engineers working with right-triangle measurements
Architects estimating diagonal or sloped lengths
Builders and carpenters checking dimensions
Surveyors working with distances
DIY users planning rectangular or diagonal layouts
You do not need advanced mathematics knowledge to use the calculator. However, you should be able to identify whether the triangle is a right triangle and which side is the hypotenuse.
Common Mistakes When Using the Pythagorean Theorem
The formula is straightforward, but a few common mistakes can produce incorrect answers.
Using the Formula on a Non-Right Triangle
The standard Pythagorean theorem formula:
a2+b2=c2
applies to right triangles.
Do not use it as a general missing-side formula for every triangle.
Choosing the Wrong Hypotenuse
The hypotenuse is always:
Opposite the (90∘) angle
The longest side of a right triangle
Represented by (c) in the standard formula
Incorrectly treating a leg as (c) will lead to the wrong calculation.
Adding When Finding a Missing Leg
You add the squares when finding the hypotenuse:
c=a2+b2
But when finding a leg, you subtract:
a=c2−b2
or:
b=c2−a2
Forgetting the Square Root
Suppose:
c2=100
The hypotenuse is not 100. You must take the square root:
c=100=10
Rounding Too Early
Rounding an intermediate result too soon can make the final answer less precise, especially when working with irrational numbers or radical values.
Keep the exact value or additional decimal places until the final step whenever possible.
Entering Radical Values Incorrectly
When entering a value such as:
32
make sure 3 is used as the coefficient and 2 as the value under the square root.
Correctly entering each part helps the pythagorean theorem calculator interpret the side length as intended.
Mixing Measurement Units
All side lengths should use the same unit.
For example, do not enter Side (a) in meters and Side (b) in feet without converting one of them first.
Tips for More Accurate Results
A few simple checks can make your calculations more reliable.
Confirm the (90∘) angle: The Pythagorean theorem should be used when the triangle is right-angled.
Identify the hypotenuse first: Look for the side opposite the (90∘) angle. It should also be the longest side.
Use consistent units: Convert all measurements to the same unit before calculating.
Check your radical input: When using (kr) values, make sure the coefficient and radicand are entered in their correct fields.
Avoid unnecessary early rounding: Keep exact values or sufficient decimal places until the final result.
Review the calculation steps: Use the displayed steps to verify how the missing side and additional triangle measurements were calculated.
Pythagorean Triples
A Pythagorean triple is a set of three positive integers that satisfies:
a2+b2=c2
The most familiar example is:
3, 4, 5
because:
32+42=52
9+16=25
Other common Pythagorean triples include:
(5, 12, 13)
(7, 24, 25)
(8, 15, 17)
(9, 40, 41)
Multiples of a Pythagorean triple also satisfy the equation. For example, multiplying 3-4-5 by 2 gives:
6, 8, 10
and:
62+82=102
These number patterns can be helpful when recognizing or checking right triangles.
Limitations of the Pythagorean Theorem
The Pythagorean theorem is powerful, but it has a specific purpose.
The basic equation:
a2+b2=c2
describes the relationship between the side lengths of a right triangle. If the triangle does not contain a (90∘) angle, this equation should not be used as the standard formula for finding its missing side.
For non-right triangles, other methods such as the Law of Cosines or Law of Sines may be appropriate depending on the information available.
Also remember that a calculated answer is only as reliable as the measurements entered. If your original measurements are approximate, the resulting side lengths and other measurements will also be approximate.
Frequently Asked Questions (FAQs)
What is the Pythagorean theorem formula?
The Pythagorean theorem formula is:
a2+b2=c2
Here, (a) and (b) are the legs of a right triangle and (c) is the hypotenuse. The formula states that the sum of the squares of the two legs equals the square of the hypotenuse.
How do you calculate the hypotenuse?
To calculate the hypotenuse when both legs are known, use:
c=a2+b2
For example, if (a=5) and (b=12):
c=52+122
c=25+144
c=13
Therefore, the hypotenuse is 13.
How do you find a missing side using the Pythagorean theorem?
If the hypotenuse is missing, use:
c=a2+b2
If one of the legs is missing, rearrange the equation:
a=c2−b2
or:
b=c2−a2
You must know two side lengths to calculate the third using these formulas.
What are a, b, and c in the Pythagorean theorem?
In:
a2+b2=c2
(a) and (b) represent the two legs that meet at the right angle. (c) represents the hypotenuse, which is opposite the (90∘) angle.
Is c always the hypotenuse?
Yes, in the standard notation for the Pythagorean theorem, (c) represents the hypotenuse.
The hypotenuse is the longest side of a right triangle and is directly opposite the right angle.
Can the Pythagorean theorem be used on any triangle?
No. The equation:
a2+b2=c2
applies specifically to a right triangle.
For a triangle without a (90∘) angle, another method may be required to calculate an unknown side.
How do you find a missing leg of a right triangle?
If you know the hypotenuse and one leg, subtract the square of the known leg from the square of the hypotenuse and take the square root.
For Side (a):
a=c2−b2
For Side (b):
b=c2−a2
For example, if (c=10) and (b=8):
a=102−82
a=100−64
a=6
What is a Pythagorean triple?
A Pythagorean triple is a set of three positive integers that satisfies:
a2+b2=c2
For example, 3, 4, and 5 form a Pythagorean triple because:
32+42=52
Can this Pythagoras calculator calculate square-root values?
Yes. The Pythagorean theorem calculator supports side values written in (kr) form. This is useful for geometry problems where a side has an exact radical value such as (25).
Enter the coefficient and the value under the square root in their corresponding input fields.
What is the difference between the Pythagorean theorem and Pythagoras theorem?
There is no mathematical difference. Pythagorean theorem and Pythagoras theorem are commonly used names for the same right-triangle relationship:
a2+b2=c2
The preferred wording can vary by country or educational system.
Can the Pythagorean theorem calculator find angles?
Yes. After solving the right triangle, the Pythagorean theorem calculator can display the two acute angles (α) and (β) in degrees and radians, along with the (90∘) right angle.
The two acute angles always satisfy:
α+β=90∘
Can the pythagorean theorem calculator find the area and perimeter?
Yes. Once all three side lengths are known, the calculator can determine the area and perimeter of the right triangle.
Area:
A=2ab
Perimeter:
P=a+b+c
Does the hypotenuse always have to be the longest side?
Yes. In every right triangle, the hypotenuse is the side opposite the (90∘) angle and is always longer than either individual leg.
Final Takeaway
The Pythagorean theorem calculator provides a simple way to solve a right triangle when any two valid side lengths are known. Using the relationship:
a2+b2=c2
you can find the hypotenuse or a missing leg without working through every calculation manually.
The calculator also goes beyond the basic Pythagoras theorem formula by providing angles, altitude, area, perimeter, and detailed calculation steps. Its support for radical values makes it useful for both simple and more advanced right-triangle problems.
For the best results, make sure you are working with a right triangle, enter all measurements in consistent units, and remember that (c) is always the hypotenuse.
Helpful Resources
Pro Tips
Always use c for the longest side (the hypotenuse).
If c is not the largest value, the triangle is invalid for this theorem.
Use precision control when you need rounded outputs.