Pythagorean Theorem Calculator
How do I find the hypotenuse?
Result
How it is calculated
The hypotenuse comes from the Pythagorean theorem: c = √(a² + b²), where a and b are the two legs that meet at the right angle, in any one unit of length. The tool also returns the area, a × b / 2, and the perimeter, a + b + c. Area comes out in the square of your unit and the other two in the unit itself.
Both legs must be greater than zero; zero or negative values give no result. Answers are rounded to two decimals for display only, so a hypotenuse like √2 is shown as 1.41 although the true value continues. It only works when you know the legs, not when one of them is the missing side.
Worked example
Take legs a = 5 and b = 12. First square them: 25 and 144, which add up to 169. The square root of 169 is the hypotenuse, 13.00. The area is 5 × 12 / 2 = 30.00, and the perimeter is 5 + 12 + 13 = 30.00. Because 5, 12 and 13 are whole numbers, this is a Pythagorean triple and the result has no rounding.
Common mistakes
- Entering the hypotenuse as one of the legs. The tool assumes both inputs are the shorter sides next to the right angle, so the result will be too large.
- Mixing units, such as one leg in centimetres and the other in metres.
- Applying it to a triangle that has no right angle; the theorem does not hold there.
- Reading the area as a length: it is in square units, while the hypotenuse and perimeter are in plain units.
About this calculator
This tool applies the Pythagorean theorem (a² + b² = c²) to a right triangle's two legs to find the length of the hypotenuse, the side opposite the right angle, and then also reports the triangle's area and perimeter using those three side lengths. The relationship holds only for right triangles, so the calculator assumes a 90-degree angle between the two given sides.
It is used by students checking geometry and trigonometry homework, and in a surprising number of practical situations: carpenters and builders squaring a corner or cutting a diagonal brace, electricians and installers figuring out the shortest cable run between two points at different heights, and anyone measuring the diagonal of a screen, room or piece of furniture from its width and height. Because the theorem shows up anywhere two perpendicular measurements need to be turned into a straight-line distance, it's one of the most reused formulas outside the classroom.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
- NATO Phonetic Alphabet Converter
No calculators found
Comments (1)
A handy real-world use is checking that a corner is square. Measure 3 along one wall and 4 along the other, and the diagonal between those marks should read 5; enter other leg pairs here to get the diagonal you should expect. The tool takes the two legs only and returns the hypotenuse, so it cannot find a missing leg when you know the hypotenuse. Is that the case you need? Let us know.