Pythagorean Theorem Calculator | Calculate Hypotenuse ‘c’


Pythagorean Theorem Calculator (Calculate ‘c’)

Your expert tool for solving right-angled triangles.



Enter the length of one of the triangle’s legs.

Please enter a valid positive number.



Enter the length of the other leg.

Please enter a valid positive number.



Select the unit of measurement for sides a and b.

Hypotenuse (c)

5.00 m

9.00

16.00

a² + b²

25.00

The hypotenuse ‘c’ is calculated with the formula: c = √(a² + b²)

Triangle Visualization

b = 4 a = 3 c = 5

Dynamic visualization of the right-angled triangle based on input values.

Hypotenuse ‘c’ vs. Side ‘b’ (for a fixed Side ‘a’)


Side ‘a’ (Fixed) Side ‘b’ Hypotenuse ‘c’
Table showing how hypotenuse ‘c’ changes as side ‘b’ increases, keeping side ‘a’ constant.

What is the Pythagorean Theorem and How to Calculate Using Variables a, b, and c?

The Pythagorean theorem is a fundamental principle in Euclidean geometry that describes the relationship between the three sides of a right-angled triangle. It states that the area of the square whose side is the hypotenuse (the side opposite the right angle, denoted as ‘c’) is equal to the sum of the areas of the squares on the other two sides (the legs, denoted as ‘a’ and ‘b’). This powerful relationship allows you to calculate the length of a missing side when you know the lengths of the other two. Our calculator is specifically designed to help you calculate the variable ‘c’ when you provide the variables ‘a’ and ‘b’.

This theorem is not just an abstract mathematical concept; it has numerous practical applications, from construction and architecture to navigation and physics. Anyone who needs to calculate distances, ensure right angles, or work with triangular shapes will find this theorem, and our calculator, immensely useful.

The Formula to Calculate ‘c’ and Its Explanation

The relationship discovered by the ancient Greek mathematician Pythagoras is expressed through a simple and elegant formula. When you need to calculate using variables a, b, and c in a right triangle, this is the equation you’ll use.

The core formula is:

a² + b² = c²

To specifically solve for the hypotenuse ‘c’, we rearrange the formula by taking the square root of both sides. This gives us the formula our calculator uses:

c = √(a² + b²)

Variables Used in the Pythagorean Theorem
Variable Meaning Unit Typical Range
a The length of one leg of the right triangle. Length (m, ft, in, etc.) Any positive number
b The length of the other leg of the right triangle. Length (m, ft, in, etc.) Any positive number
c The length of the hypotenuse (the longest side, opposite the right angle). Length (m, ft, in, etc.) Must be greater than both a and b

Practical Examples of How to Calculate Using Variables a, b, and c

The best way to understand the power of this calculation is through real-world examples. Here are a couple of scenarios where you would need to calculate the variable ‘c’.

Example 1: Screen Size Calculation

You want to buy a new TV. A TV’s advertised size is its diagonal length. The space you have fits a TV that is 40 inches wide (side ‘a’) and 22.5 inches tall (side ‘b’). What is the screen size (hypotenuse ‘c’)?

  • Input a: 40 inches
  • Input b: 22.5 inches
  • Calculation: c = √(40² + 22.5²) = √(1600 + 506.25) = √2106.25
  • Result (c): 45.9 inches. You can fit a 46-inch TV in that space.

Example 2: Construction and Ladders

A contractor needs to use a ladder to reach a window that is 12 feet up a wall. For safety, the base of the ladder must be placed 5 feet away from the wall. How long must the ladder (‘c’) be to reach the window?

  • Input a (height): 12 feet
  • Input b (distance from wall): 5 feet
  • Calculation: c = √(12² + 5²) = √(144 + 25) = √169
  • Result (c): 13 feet. The contractor needs a ladder that is at least 13 feet long.

For more examples, check out our guide on Advanced Geometry Formulas.

How to Use This Pythagorean Theorem Calculator

Our tool is designed for simplicity and accuracy. Follow these steps to get your result instantly:

  1. Enter Side ‘a’: In the first input field, type the length of one of the shorter sides of your right triangle.
  2. Enter Side ‘b’: In the second input field, type the length of the other short side.
  3. Select Units: Use the dropdown menu to choose the unit of measurement (e.g., meters, feet, inches). Ensure that both ‘a’ and ‘b’ are in the same unit.
  4. Review Results: The calculator will instantly update, showing the length of the hypotenuse ‘c’ in the results section. You can also see the intermediate values (a² and b²) and a visual representation of your triangle.

The results can be easily copied by clicking the “Copy Results” button for your records. Need to calculate area? Visit our Area Calculator.

Key Factors That Affect the Calculation of ‘c’

While the formula is straightforward, several factors are critical for an accurate result when you calculate using variables a, b, and c.

  • Right Angle is Essential: The theorem only applies to triangles with a perfect 90-degree angle. Using it on other types of triangles will produce an incorrect result.
  • Accuracy of Inputs: The precision of your ‘a’ and ‘b’ inputs directly determines the precision of the calculated ‘c’. Double-check your measurements.
  • Consistent Units: You must use the same unit for both side ‘a’ and side ‘b’. Mixing inches and centimeters, for example, will lead to a meaningless result. Our calculator assumes a consistent unit, which you can specify.
  • Magnitude of ‘a’ and ‘b’: The hypotenuse ‘c’ grows as ‘a’ or ‘b’ (or both) increase. The relationship is not linear; it’s based on the sum of the squares.
  • Identifying the Legs vs. Hypotenuse: Sides ‘a’ and ‘b’ are the legs that form the right angle. Side ‘c’ is always the longest side, opposite the right angle.
  • Application Context: In the real world, factors like the thickness of materials or navigating in three dimensions might require additional calculations. For 3D problems, you might consult a Volume Calculator.

Frequently Asked Questions (FAQ)

1. Can I use this calculator for any triangle?
No, the Pythagorean theorem and this calculator are only valid for right-angled triangles (triangles with one 90-degree angle).
2. What if I have ‘c’ and ‘a’ and need to find ‘b’?
You can rearrange the formula: b = √(c² – a²). This calculator is specifically designed to find ‘c’, but you can find calculators for the other sides, like our Right Triangle Solver.
3. Does it matter which side I label ‘a’ and which I label ‘b’?
No, it does not. Since the formula involves adding a² and b², the order doesn’t change the result (a² + b² is the same as b² + a²).
4. What units can I use?
You can use any unit of length (meters, feet, etc.), as long as you are consistent for both input sides. Our calculator provides a dropdown for common units to help with labeling.
5. Why is the hypotenuse always the longest side?
Because c² is the sum of two positive numbers (a² and b²), ‘c’ must be larger than both ‘a’ and ‘b’ individually.
6. What is a “Pythagorean Triple”?
A Pythagorean triple is a set of three positive integers (a, b, c) that perfectly satisfy the formula a² + b² = c². The most famous example is (3, 4, 5).
7. How is this theorem used in real life?
It’s used in construction to ensure corners are square, in navigation to find the shortest distance between two points, and even in video game design to calculate character movement.
8. What happens if I input a zero or negative number?
A triangle cannot have a side with zero or negative length. Our calculator will show an error and prompt you to enter a positive number, as this is a logical and physical requirement.

© 2026 Your Website. All Rights Reserved.



Leave a Reply

Your email address will not be published. Required fields are marked *