# Pythagorean theorem calculator

# Pythagorean theorem calculator:

The Pythagorean theorem states that in a right triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. Mathematically, it can be expressed as:

**c^2 = a^2 + b^2**

where c is the length of the hypotenuse, and a and b are the lengths of the other two sides.

To use the calculator, simply input the lengths of the two legs of the right triangle, and the calculator will calculate the length of the hypotenuse using the Pythagorean theorem.

**Here’s an example:**

Suppose you have a right triangle with legs of length 3 and 4. What is the length of the hypotenuse?

Using the Pythagorean theorem:

c^2 = a^2 + b^2 c^2

= 3^2 + 4^2 c^2

= 9 + 16 c^2

= 25

c = √25

c = 5

So the length of the hypotenuse is 5.

Here’s the calculator: