The Pythagorean theorem applies to a right-angled triangle and connects the two shorter sides, called legs, with the longest side opposite the right angle, called the hypotenuse. This calculator uses the two leg lengths to find the hypotenuse, making it handy for diagonal measurements, layout work, ramps, ladders, braces, screens, and geometry exercises. It removes the repeated squaring, adding, and square-root work while keeping the reasoning visible enough to check by hand.
Quick Answer
If the legs are a and b, the hypotenuse is c = β(aΒ² + bΒ²). The theorem applies only when the angle between sides a and b is exactly 90 degrees.
The Relationship Hidden in a Right Triangle
The familiar equation aΒ² + bΒ² = cΒ² can be read as an area statement. Build a square on each leg, and their combined area equals the area of the square built on the hypotenuse. To recover a length rather than an area, add the two squared leg lengths and take the positive square root. Length is never negative in this setting, so the negative mathematical root is discarded.
The hypotenuse is not merely "the slanted side." It is specifically the side across from the right angle and is always the longest side of a right triangle. The two legs can be equal, as in an isosceles right triangle, or quite different, as in a long shallow ramp. Their orientation does not matter: horizontal and vertical labels can swap without changing c. What matters is that the legs meet at a right angle and both use the same unit of length.
The result often becomes an input to a distance problem. The straight-line separation between two points on a coordinate grid is the hypotenuse of a right triangle whose legs are the horizontal and vertical changes, which is why the Distance Formula Calculator rests on the same relationship.
How to Use the Pythagorean Theorem Calculator
- Confirm that the triangle has a right angle between the two known sides.
- Measure the first leg and record its unit.
- Measure the second leg in the same unit.
- Enter both leg lengths in the calculator.
- Read the hypotenuse and attach the same length unit to it.
- Compare the result with the longer leg; the hypotenuse should be longer than either leg but shorter than the two legs added together.
A Brace Length Calculated Step by Step
Imagine a rectangular frame whose brace spans 9 feet horizontally and 12 feet vertically. Square each leg: 9Β² = 81 and 12Β² = 144. Add the squares to get 225. The hypotenuse is β225, so the diagonal brace is 15 feet. This is the 9β12β15 family, a scaled version of the fundamental 3β4β5 triangle.
A second useful check uses decimal measures. Legs of 2.5 meters and 6 meters give 6.25 + 36 = 42.25, whose square root is 6.5 meters. Clean results like these are helpful checks, although many practical measurements produce an irrational length that should be rounded only after the square root is taken.
- Legs of 5 and 12 units produce a hypotenuse of 13 units.
- Legs of 8 and 15 units produce a hypotenuse of 17 units.
- Equal legs of 10 units produce a hypotenuse of about 14.14 units.
Mistakes That Distort the Diagonal
The most common mistake is adding the legs first and then squaring their sum. The theorem squares each side separately before adding. Another is applying it to any triangle with a long side, even when the included angle is not 90 degrees; a triangle that looks almost square at the corner can produce a materially different diagonal. Construction work should therefore begin from an actually established right angle, not a visual guess.
Unit mixing creates a quieter error. If one leg is 3 feet and the other is 18 inches, convert before calculating: 18 inches is 1.5 feet, giving a hypotenuse of about 3.35 feet. Entering 3 and 18 as matching numbers produces nonsense. Also avoid truncating a square root too early when the hypotenuse feeds another calculation. A ladder or brace may then be cut to the display precision required by the job, but intermediate design work should retain extra digits.
Finally, remember what the theorem does not do. It gives a straight-line length across a flat right triangle. It does not account for material thickness, mounting offsets, sag, or the extra stock needed at the ends of a physical brace. Those are practical additions after the geometric length has been found.
Using the Converse to Test a Right Angle
The theorem can be run in reverse. If three side lengths satisfy aΒ² + bΒ² = cΒ², with c the longest, the triangle formed by those sides is right-angled. Carpenters use the 3β4β5 relationship for this purpose: mark 3 units along one edge and 4 along an adjoining edge, then adjust the corner until the diagonal measures 5. Scaled versions such as 6β8β10 or 9β12β15 preserve the same check. Measurement tolerance matters, however; a diagonal that is merely close may indicate an approximately square corner rather than an exact mathematical right angle.
The converse also helps validate entered values before a brace or ramp is cut. If a proposed triangle has sides 7, 10, and 13, the squares give 49 + 100 = 149, not 169, so it is not a right triangle. Forcing its longest side into the ordinary hypotenuse calculation as though one leg were missing would answer a different problem. Establish the angle first, or use the side relationship to test it, then use the calculator for the unknown hypotenuse when the two legs are known.
Measurements from a tape should be taken between the same reference points that define the triangle. If hooks, brackets, or wall faces offset the endpoints, include those offsets deliberately in the leg dimensions or subtract them from the diagonal plan. A mathematically exact hypotenuse can still miss the installed length when the physical endpoints are not the geometric corners.
From Triangle Sides to Practical Diagonals
Checking whether a foundation or frame is square, sizing a television from its diagonal, planning a guy line, and estimating a direct route all reduce to this same calculation. For coordinate-based work, the distance tool linked above packages the idea for points; for broader problem sets, browse the Mathematics Calculators collection. Enter the right two sides, keep the units consistent, and the hypotenuse follows directly from the theorem.