Calculadora do Teorema de Pitágoras

Dados os dois catetos de um triângulo retângulo, calcula a hipotenusa.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Hipotenusa
5,0000 m

Formula

c = √(a² + b²)

About this calculator

The Pythagorean Theorem Calculator is an online tool that determines the hypotenuse of a right triangle from the lengths of the two legs. The calculation is based on the famous Pythagorean theorem: the square of the hypotenuse equals the sum of the squares of the legs. Simply enter the lengths of legs a and b, and the calculator applies the formula c = √(a² + b²) to obtain the hypotenuse value. The result is displayed with up to four decimal places, ensuring accuracy for most applications.

You can use this calculator in various practical situations. For example, in construction, to determine the length of a sloping beam in a roof or the height of a ladder leaning against a wall. It is also useful in woodworking projects when calculating the diagonal of a rectangular piece, or in navigation and surveying to measure indirect distances. Whenever you need to find the unknown side of a right triangle, this tool streamlines the process.

It is important to remember that the Pythagorean theorem only applies to right triangles, i.e., those with a 90-degree angle. Make sure the entered values correspond to the legs, which are the sides forming the right angle. The hypotenuse is always the side opposite the right angle and the longest side of the triangle. If the provided values do not form a valid right triangle, the calculator will display an error message.

Also, ensure that the units of measurement are consistent. If the legs are entered in meters, the hypotenuse will also be in meters. The calculator does not perform unit conversion, so verify that both values are in the same unit. For calculations involving very large or small numbers, the tool handles decimals well, but avoid entering negative values, as lengths cannot be negative.

Frequently asked questions

What if I have the hypotenuse and one leg?

To find the other leg, use the formula a = √(c² - b²) or b = √(c² - a²). This calculator currently only computes the hypotenuse, but you can apply the same logic manually.

Can I use this calculator for non-right triangles?

No. The Pythagorean theorem only works for right triangles. For other triangles, use the Law of Cosines.

How accurate is the result?

The result is rounded to up to four decimal places. For higher precision, use a scientific calculator.

What if I enter negative values?

The calculator will display an error message because lengths cannot be negative. Enter only positive numbers.

Can I use different units for each leg?

No. Both legs must be in the same unit for a consistent result. Convert the units before entering.

Other Geometria calculators