Example 1: Finding the Hypotenuse
Suppose the legs of a right triangle are \(3\) and \(4\). The hypotenuse is \(c\).
The missing hypotenuse is \(5\). This is the classic \(3\)-\(4\)-\(5\) right triangle.
Use this Pythagoras Theorem Solver to enter values, adjust options, and review results in a compact responsive workspace.
Results are calculated automatically as you enter data.
▼ See explanations and tips below ▼
The Pythagorean theorem explains the relationship between the three side lengths of a right triangle. A right triangle has one angle measuring \(90^\circ\). The two sides that form the right angle are called the legs, and the side opposite the right angle is called the hypotenuse.
The theorem says that the square of the hypotenuse is equal to the sum of the squares of the two legs:
In this formula, \(a\) and \(b\) are the legs, and \(c\) is the hypotenuse. Because the hypotenuse is opposite the right angle, it must be the longest side of a right triangle.
The Pythagorean theorem is useful because it lets you find one missing side length when you already know the other two side lengths. It is one of the most practical formulas in geometry because it connects length, distance, squares, and square roots in a simple way.
The Pythagorean theorem appears anywhere a right angle creates a triangle. Students use it in geometry and algebra, but it also shows up in construction, design, navigation, coordinate geometry, and physics.
For example, if you know the width and height of a rectangle, the diagonal across the rectangle is the hypotenuse of a right triangle. If you know the horizontal and vertical distance between two points on a coordinate grid, the straight-line distance between those points comes from the same idea.
The theorem also helps prevent mistakes. It makes clear that you cannot choose any three positive numbers and expect them to form a right triangle. The two legs and the hypotenuse must satisfy \(a^2 + b^2 = c^2\).
The theorem compares the squares built on the sides of a right triangle. If the legs have lengths \(a\) and \(b\), then the total area of the two smaller squares, \(a^2 + b^2\), equals the area of the square on the hypotenuse, \(c^2\).
To find the hypotenuse, add the squares of the two legs and then take the square root:
To find a missing leg, rearrange the theorem by subtracting the known leg's square from the hypotenuse's square:
or
Only the positive square root is used for side length, because a triangle side cannot have a negative length.
Suppose the legs of a right triangle are \(3\) and \(4\). The hypotenuse is \(c\).
The missing hypotenuse is \(5\). This is the classic \(3\)-\(4\)-\(5\) right triangle.
Suppose the hypotenuse is \(13\) and one leg is \(5\). Let the missing leg be \(b\).
The missing leg is \(12\). A quick check confirms the result:
Some right triangles do not have whole-number side lengths. If the legs are \(5\) and \(7\), then:
The exact answer is \(\sqrt{74}\). The decimal answer is useful for measurement, but it is an approximation.
Suppose you try to find a missing leg when the hypotenuse is \(6\) and the known leg is \(8\).
A positive side length cannot have a negative square. This means the numbers cannot describe a right triangle with \(6\) as the hypotenuse and \(8\) as a leg. The hypotenuse must be longer than either leg.
A missing side result is a length. It uses the same unit as the inputs, as long as both known side lengths were entered in the same unit. For example, if the known sides are measured in centimeters, the result is also in centimeters.
An exact radical such as \(\sqrt{74}\) means the missing side is exactly the square root of \(74\). A decimal shown after \(\approx\) is an approximation. It is easier to use for measuring, but it may be rounded.
The squared value tells you the value before the square root is applied. For example, if the calculator shows \(c^2 = 74\), the side length is not \(74\); it is \(\sqrt{74}\).
A verification line such as \(a^2 + b^2 \approx c^2\) is a check that the side lengths satisfy the Pythagorean theorem. Small differences can happen when a decimal approximation is used.
A triangle preview is helpful for understanding which side is which, but it should be treated as a scaled visual guide rather than a precise drawing.
Use the Pythagorean theorem when:
Do not use it when the triangle is not a right triangle or when you need to solve for angles. Other geometry or trigonometry tools are needed for those cases.
The Pythagorean theorem is powerful, but it depends on clear assumptions:
The calculator does not convert units, solve for angles, or solve general non-right triangles. It also does not accept symbolic entries such as \(\sqrt{2}\), fractions typed as \(3/4\), or variables; use positive numeric side lengths instead.
When solving for a leg, the hypotenuse must be greater than the known leg. If it is not, the result would require the square root of a negative number, which does not represent a real triangle side length.
Displayed decimals are formatted to the calculator's precision, so they may be rounded. Very small nonzero values may appear in exponential notation. Exact radical simplification is available only when the squared value fits the calculator's supported simplification rules.
For schoolwork, measurements, construction sketches, or safety-related decisions, double-check the side labels, units, and rounding. For engineering, building, or safety-critical work, use appropriate professional methods and review.
The hypotenuse is the side opposite the right angle in a right triangle. It is the longest side and is usually labeled \(c\) in the Pythagorean theorem.
Yes, as long as both known side lengths use the same unit. If you enter both sides in meters, the result is in meters. If one side is in inches and the other is in centimeters, convert one of them before calculating.
A radical such as \(\sqrt{74}\) is an exact answer. The decimal after \(\approx\) is an approximation that is easier to read or measure. Both describe the same length, but the radical avoids rounding.
No. The theorem applies only when the triangle has a right angle. For non-right triangles, you may need other triangle methods such as the Law of Cosines or trigonometric relationships.
In a right triangle, the hypotenuse is the longest side. If the entered hypotenuse is shorter than or equal to a leg, subtracting the known leg's square from the hypotenuse's square gives zero or a negative value, which cannot produce a positive missing side length.
The preview is scaled to fit the display, so it is useful for orientation and labeling. It should not be treated as a precise construction drawing or a replacement for measured geometry.
Books and Open Textbooks