Missing Leg Calculator

Missing Leg Calculator
Find the unknown side of a right triangle. Solve with the Pythagorean theorem from the hypotenuse and one leg, or use an angle and the hypotenuse to get both legs at once.
All sides must use the same unit, such as inches, feet, or centimeters. In angle mode, the opposite leg faces the angle you enter and the adjacent leg sits next to it. Results are rounded to two decimal places.

What the Missing Leg Calculator Does

Every right triangle has three sides, and finding the one you do not know is one of the most common geometry tasks in school, trades work, and everyday home projects. The Missing Leg Calculator above solves that task in two ways. Give it a hypotenuse and one leg, and it returns the other leg using the Pythagorean theorem. Give it an angle and the hypotenuse, and it uses sine and cosine to find both legs at once. You type in two values, press calculate, and the tool does the algebra for you.

A right triangle is a triangle with one corner that is exactly 90 degrees. The side across from that right angle is the hypotenuse, and it is always the longest side. The other two sides are called the legs. A leg can sit beside the right angle on either side. When you know the hypotenuse and one leg, the missing leg is locked in by the Pythagorean theorem. When you know an angle and the hypotenuse, trigonometry locks both legs in. This article explains both routes step by step, with worked examples, the mistakes people make most often, and practice problems you can check with the calculator.

The Pythagorean Theorem Explained

The Pythagorean theorem states that in any right triangle, the square of the hypotenuse equals the sum of the squares of the legs. In symbols, a squared plus b squared equals c squared, where a and b are the legs and c is the hypotenuse. Squaring a side means multiplying it by itself. A square with a side length of 3 has an area of 9, and the theorem says the square built on the hypotenuse has exactly the same area as the two squares built on the legs combined.

This relationship was known to Babylonian mathematicians over three thousand years ago, and the Greek mathematician Pythagoras gave it the proof that carries his name today. It only applies to right triangles. It does not work for triangles with three acute angles or one obtuse angle. The right angle is what makes the equation true, so before you use the theorem, confirm that one angle is 90 degrees or that the problem says the triangle is a right triangle.

To find a missing leg, rearrange the formula. Start with a squared plus b squared equals c squared. Subtract a squared from both sides to isolate b squared, which gives b squared equals c squared minus a squared. Take the square root of both sides, and you get b equals the square root of c squared minus a squared. The hypotenuse value must be the larger number under the square root, because the hypotenuse is the longest side. If you mix up the hypotenuse and a leg, you can end up with a negative number under the square root, which has no real answer and tells you something went wrong.

Step-by-Step Worked Examples

The most famous right triangle has sides 3, 4, and 5. If the hypotenuse is 5 and one leg is 3, the missing leg is the square root of 25 minus 9, which is the square root of 16, which equals 4.

Take a ladder leaning against a wall. The ladder is the hypotenuse at 13 feet, the base sits 5 feet from the wall, and you want the height where the ladder touches the wall. Square both known sides to get 169 and 25. Subtract to get 144. Take the square root to get 12 feet. The wall height is 12 feet. Notice that the unknown leg turned out longer than the known leg, which is perfectly fine. A leg can be longer than the other leg as long as it is shorter than the hypotenuse.

Here is a decimal example like the ones on the calculator. A hypotenuse of 10.5 and a known leg of 7.25 give 110.25 minus 52.5625, which equals 57.6875. The square root of 57.6875 is about 7.6. The calculator rounds to two decimal places, so it shows 7.60. For schoolwork, two decimals are usually enough. For carpentry, you might round to the nearest eighth of an inch, but the math steps are identical.

Another classic comes from coordinate geometry. Suppose two points on a map sit at 0,0 and 6,8. The horizontal change is 6 and the vertical change is 8, and these act as the legs of a right triangle. The hypotenuse, which is the straight-line distance, is the square root of 36 plus 64, which is the square root of 100, which equals 10. Distance formulas are just the Pythagorean theorem in disguise, and the same solving steps apply whenever one leg is unknown.

Solving With an Angle and the Hypotenuse

Sometimes you do not know either leg, but you know one angle and the hypotenuse. Trigonometry solves this in one step per side. In a right triangle, the sine of an angle equals the length of the side opposite that angle divided by the hypotenuse. The cosine of an angle equals the adjacent side divided by the hypotenuse. Multiply both sides by the hypotenuse, and the formulas become simple: opposite equals hypotenuse times sine of the angle, and adjacent equals hypotenuse times cosine of the angle.

Walk through an example. An angle of 30 degrees and a hypotenuse of 10 give an opposite leg of 10 times the sine of 30 degrees. The sine of 30 degrees is 0.5, so the opposite leg is 5. The adjacent leg is 10 times the cosine of 30 degrees. The cosine of 30 degrees is about 0.866, so the adjacent leg is about 8.66. Together with the hypotenuse of 10, these three sides form a valid triangle because 5 squared plus 8.66 squared is very close to 100, with the tiny gap coming from rounding.

Try another angle to build intuition. With a 45 degree angle and a hypotenuse of 12, the sine and cosine of 45 degrees are equal at about 0.7071. Both legs come out to about 8.49. This is the isosceles right triangle, where the two legs match. At the extremes, a small angle like 10 degrees gives a short opposite leg and a long adjacent leg, because the triangle is stretched flat along the adjacent side. A large angle like 80 degrees flips that pattern. The calculator handles any angle strictly between 0 and 90 degrees and rejects values outside that range, because a right triangle has no room for a second right angle.

Remember to set your method to degrees, not radians. The calculator above takes degrees, which is what school problems and construction angles use. A scientific calculator in radian mode treats 30 as 30 radians, a huge number, and returns nonsense for a triangle. If your answer looks wildly wrong, the degree versus radian setting is the first thing to check.

Common Mistakes and How to Avoid Them

The number one mistake is using the wrong side as the hypotenuse. Students sometimes plug the longest side into a leg position, which produces a negative number under the square root. The rule is simple. Look at the three numbers and find the largest one. That one is the hypotenuse. It sits opposite the right angle and across the longest stretch of the triangle.

The second mistake is forgetting to take the square root. After computing c squared minus a squared, some students stop and report that difference as the answer. That number is the missing leg squared, not the missing leg. Always finish with the square root. If the problem asks for the leg itself, a squared value is only half the work.

The third mistake is rounding too early. Rounding an intermediate step to two decimal places and then taking the square root can push the final answer off by more than the rounding error suggests. Keep at least four decimal places in the middle of the calculation, then round once at the end. The calculator above keeps full precision internally and rounds only for display.

The fourth mistake involves units. Mixing inches with feet, or centimeters with meters, produces answers with no meaning. Convert everything to one unit before you start. A ladder of 13 feet with a base of 5 feet gives a height in feet. A drawing measured in centimeters gives an answer in centimeters.

The fifth mistake is using the theorem on a triangle that is not right. The formula a squared plus b squared equals c squared is only guaranteed for right triangles. If the problem does not mention a right angle, a square corner, or perpendicular sides, verify the angle before using the calculator in hypotenuse mode.

Real-World Applications

Carpenters use the missing leg calculation constantly. Squaring a corner before pouring a foundation relies on the 3-4-5 rule. Measure 3 feet along one edge, 4 feet along the other, and adjust until the diagonal between the marks is exactly 5 feet. When the diagonal is right, the corner is square. The same trick works in any size. Multiply the triple by any number and the proportions hold, so a 6-8-10 check covers a larger foundation.

Roof framing is another daily application. A rafter is the hypotenuse of a right triangle, with the run as one leg and the rise as the other. Roofers who know the rafter length and the run can compute the rise to cut the birdsmouth joint correctly. Stair builders do the same thing. The total rise of a staircase and the total run form the legs, and the stringer that the steps sit on is the hypotenuse.

Navigation and surveying lean on the same math. Surveyors measure two sides of a right triangle across uneven ground and compute the third without crossing a river or a fence. Pilots correct for wind by treating the intended heading, the wind push, and the resulting track as a right triangle. Hikers read map distances, flat projections, and combine them with elevation gain to find the true slope distance they will walk.

Screen sizes use the theorem too. A television listed as 55 inches is 55 inches on the diagonal. Combine that with the screen width and you can solve for the height, or check whether the set fits an entertainment center. Phone, tablet, and laptop screens are sold the same way. The missing leg formula tells you the hidden dimension behind the advertised diagonal.

Practice Problems With Answers

Work through these problems with a pencil first, then check your answers with the Missing Leg Calculator. Keep four decimal places in your intermediate steps and round the final answer to two decimals.

  1. Hypotenuse 13, known leg 5. Find the missing leg. Answer: 12.
  2. Hypotenuse 25, known leg 7. Find the missing leg. Answer: 24.
  3. Hypotenuse 17, known leg 8. Find the missing leg. Answer: 15.
  4. Hypotenuse 9.4, known leg 4.1. Find the missing leg. Answer: about 8.46.
  5. Angle 30 degrees, hypotenuse 20. Find the opposite leg. Answer: 10.
  6. Angle 30 degrees, hypotenuse 20. Find the adjacent leg. Answer: about 17.32.
  7. Angle 60 degrees, hypotenuse 14. Find the opposite leg. Answer: about 12.12.
  8. A 15-foot ladder sits 9 feet from a wall. Find how high it reaches. Answer: 12 feet.

Problems 1, 2, 3, and 8 are Pythagorean triples in disguise, so they come out to clean whole numbers. Problems 4, 6, and 7 need the calculator or careful long division. Problem 5 is the friendly 30-degree case where sine is exactly one half. If your answer differs from the key by more than a hundredth, recheck which side you used as the hypotenuse and whether your calculator was set to degrees.

Quick Reference Checklist

  • Confirm the triangle is a right triangle before using the Pythagorean theorem.
  • Identify the hypotenuse as the longest side, across from the right angle.
  • Use all measurements in the same unit before calculating.
  • Subtract the known leg squared from the hypotenuse squared, then take the square root.
  • In angle mode, opposite equals hypotenuse times sine, adjacent equals hypotenuse times cosine.
  • Keep full precision during the calculation and round only the final answer.

Frequently Asked Questions

What is the formula for finding the missing leg of a right triangle?

The formula is b equals the square root of c squared minus a squared, where c is the hypotenuse and a is the known leg. Square both known sides, subtract the smaller square from the larger one, and take the square root of the result. The hypotenuse must be the larger value under the square root.

How do I find a missing leg when I know the hypotenuse and one leg?

Enter the hypotenuse and the known leg into the calculator in hypotenuse mode. The tool computes c squared minus a squared and returns the square root. For example, a hypotenuse of 5 and a leg of 3 give the square root of 16, which is 4.

Can I use the Pythagorean theorem on any triangle?

No. The Pythagorean theorem only works for right triangles, which have one 90-degree angle. For other triangles you need the law of cosines or the law of sines. Always confirm the right angle before using the calculator in hypotenuse mode.

What is the difference between a leg and the hypotenuse?

The hypotenuse is the side opposite the right angle and is always the longest side. The legs are the two shorter sides that form the right angle. In the formula a squared plus b squared equals c squared, a and b are the legs and c is the hypotenuse.

How do I find both legs if I only know an angle and the hypotenuse?

Switch the calculator to angle mode. It computes the opposite leg as hypotenuse times sine of the angle and the adjacent leg as hypotenuse times cosine of the angle. For a 30-degree angle and a hypotenuse of 10, the opposite leg is 5 and the adjacent leg is about 8.66.

What are Pythagorean triples and why do they matter?

Pythagorean triples are sets of three whole numbers that satisfy the theorem, like 3-4-5, 5-12-13, and 8-15-17. They matter because they give clean answers without decimals, and builders use them to check square corners quickly with the 3-4-5 method.

Why does my calculator show an error when the leg is longer than the hypotenuse?

That error means the inputs are impossible. The hypotenuse is always the longest side of a right triangle, so a leg cannot be longer than it. Swap the two values or recheck your measurements, because one of the numbers is assigned to the wrong side.

Do I need to use the same units for all sides?

Yes. All three sides must be measured in the same unit, or the answer has no meaning. Convert feet to inches, or centimeters to meters, before you calculate. The result comes back in whatever unit you entered.

Should I use degrees or radians for the angle?

Use degrees with this calculator. Most school problems and construction angles are written in degrees. If a tool is set to radians, a value like 30 is treated as 30 radians and the answer will be wrong, so check the mode first.

When should I round my answer?

Round only at the very end of the calculation. Keep full precision through the squaring, subtraction, and square root steps, then round to two decimal places or whatever the problem asks for. Rounding early can move the final answer by more than you expect.

How do carpenters use the missing leg calculation?

Carpenters use the 3-4-5 rule to square corners. They mark 3 units along one edge and 4 along the other, then adjust until the diagonal measures exactly 5. Roofers and stair builders use the same math to find rafter lengths and stringer cuts from rise and run.

What is the 3-4-5 rule in construction?

The 3-4-5 rule is a quick way to check that a corner is square. Measure 3 feet along one side and 4 feet along the other, then measure the diagonal between the marks. A diagonal of exactly 5 feet confirms a right angle. Any scaled version, like 6-8-10, works the same way.

Can the missing leg ever be longer than the known leg?

Yes. The two legs can have any relative sizes. The only rule is that each leg must be shorter than the hypotenuse. A triangle with a hypotenuse of 13, a known leg of 5, and a missing leg of 12 shows this clearly, since 12 is greater than 5.

How do I check my answer is correct?

Plug your answer back into the theorem. Square all three sides and confirm that leg squared plus leg squared equals hypotenuse squared. For the triangle with sides 5, 12, and 13, check that 25 plus 144 equals 169. If it matches, the answer is right.

Is the Missing Leg Calculator free to use?

Yes. The Missing Leg Calculator is free to use as many times as you need. Enter your values, press calculate, and the results appear instantly with no sign-up or payment required.