Missing Leg Calculator: Find Leg b from Hypotenuse c and Leg a
Find the missing leg b of a right triangle from the hypotenuse c and known leg a. Enter both values to calculate b instantly.
Find the missing leg b of a right triangle from the hypotenuse c and known leg a. Enter both values to calculate b instantly.
Missing Leg From c and a Calculator
This calculator finds Missing leg b using b = √(c² - a²).
Enter inputs to calculate Missing leg b.
Missing leg b
Result
-
Solution Steps
Formula:b = √(c² - a²)
Live Visualization
Missing Leg From c and a Diagram
What This Tool Solves
Use this page when the hypotenuse and leg a are known, but the other leg is missing. The calculator rearranges the Pythagorean theorem to subtract the known leg from the hypotenuse before taking the square root.
Known values
Hypotenuse c and leg a
Finds
Missing leg b
Main formula
b = √c² - a²
Required check
c must be greater than a
Identify the Hypotenuse and Missing Leg
The diagram marks c and a as the values you already know. The vertical leg b is highlighted as the missing side that this calculator solves.
Diagram Key
Known side a = known
Leg a is the known leg along the base of the right triangle.
Side to find b = find
Leg b is the unknown leg solved by subtracting a² from c².
Known side c = known
Hypotenuse c is the known longest side opposite the right angle.
c must be the hypotenuse, not one of the legs.
If c is less than or equal to a, the inputs do not form a valid right triangle.
The result b uses the same unit as c and a.
Formula to Find a Missing Leg
The calculation uses the Pythagorean theorem, which relates the squares of the two legs to the square of the hypotenuse. To isolate the missing leg, rearrange the equation step by step.
Step 1: Start with the Pythagorean theorem. The squares of the two legs add up to the square of the hypotenuse.
Step 2: Subtract a² from both sides. This isolates the square of the missing leg.
Step 3: Take the positive square root. Side lengths are positive, so use the principal root. The entire expression c² − a² stays inside the radical.
Where a is the known leg, b is the missing leg, and c is the hypotenuse. The hypotenuse sits opposite the right angle and is always the longest side.
Why subtract? The original equation adds both leg squares to get the hypotenuse square. When the hypotenuse and one leg are already known, subtract the known leg’s square from the hypotenuse’s square to isolate the unknown leg’s square. Then take the square root. Never subtract the leg from the hypotenuse directly — always subtract their squares.
a2+b2=c2
b2=c2−a2
b=c2−a2
How to Find Leg b from c and a
Identify the hypotenuse, which lies opposite the 90° angle. It is always the longest side.
Enter the hypotenuse c into the first input field.
Enter the known leg a into the second input field.
Check that both measurements use the same unit.
Click Calculate to find the missing leg b.
Review the result and the step-by-step solution shown below the calculator.
Verify the answer by checking that a² + b² equals c².
Quick Example
A quick preview: with c = 13 and a = 5, the missing leg is b = 12. See the detailed worked examples below for five complete solutions with diagrams.
b=132−52=144=12
Detailed Worked Examples
Example 1: Standard 5–12–13 Triangle
Problem: Find the missing leg of a right triangle with hypotenuse c = 13 cm and known leg a = 5 cm.
Verification: 5² + 12² = 25 + 144 = 169 = 13². The known leg, missing leg, and hypotenuse form a valid right triangle.
Example 2: Ladder Against a Wall
Problem: A 5 m ladder rests against a vertical wall. Its base is 3 m from the wall. Find the height reached by the ladder.
Given: c = 5 m (ladder), a = 3 m (ground distance). Find: b (wall height).
Calculation: b = √(5² − 3²) = √(25 − 9) = √16 = 4 m
Answer:The ladder reaches 4 m up the wall.
Figure: The vertical wall (b = 4 m), horizontal ground distance (a = 3 m), and ladder (c = 5 m). This is a geometric model assuming a vertical wall and level ground, not a ladder-safety assessment.
Example 3: Rectangular Room Diagonal
Problem: A rectangular room has a diagonal of 17 ft and one side measuring 8 ft. Find the other side.
Given: c = 17 ft (diagonal), a = 8 ft. Find: b.
Calculation: b = √(17² − 8²) = √(289 − 64) = √225 = 15 ft
Answer:The other side is 15 ft.
Figure: Top-down view. The diagonal (c = 17 ft) divides the rectangle into two right triangles. The known side (a = 8 ft) and missing side (b = 15 ft) form the right angle.
Example 4: A Result That Requires Rounding
Problem: Given c = 10 m and a = 7 m, find b.
Calculation: b = √(10² − 7²) = √(100 − 49) = √51 ≈ 7.141428 m
Answer:b ≈ 7.14 m, rounded to two decimal places.
Verification: 7² + (√51)² = 49 + 51 = 100 = 10².
Keep the exact value (√51) during intermediate calculations and round only at the final step. Rounding early introduces errors that compound in multi-step problems.
Example 5: Ramp Geometry
Problem: A straight ramp has a length of 13 m and a horizontal run of 12 m. Find its vertical rise.
Given: c = 13 m (ramp), a = 12 m (run). Find: b (rise).
Calculation: b = √(13² − 12²) = √(169 − 144) = √25 = 5 m
Answer:The vertical rise is 5 m.
Figure: The ramp (c = 13 m) as hypotenuse, horizontal run (a = 12 m), and vertical rise (b = 5 m). This calculation does not establish compliance with accessibility or building regulations.
When Can You Calculate a Missing Leg?
For a valid non-degenerate right triangle, the measurements must satisfy three conditions: c > 0, a > 0, and c > a. The missing leg is then b = √c² − a².
Case 1: Hypotenuse smaller than the known leg. If c = 4 and a = 5, then b = √16 − 25 = √−9. The expression under the square root is negative, so these inputs cannot form a real right triangle with c as the hypotenuse.
Case 2: Hypotenuse equal to the known leg. If c = 5 and a = 5, then b = √25 − 25 = 0. This is a degenerate case, not a valid triangle.
Case 3: Zero or negative measurements. Side lengths must be positive. The calculator rejects zero and negative inputs.
Case 4: Inconsistent units. Both measurements must use the same unit. If c is in meters and a is in centimeters, convert one before calculating.
Use these checks first:
c is opposite the 90° angle.
c is greater than a.
Both values are positive.
c and a use the same unit.
Where Is the Missing Leg Formula Used?
The general pattern: when a straight-line diagonal or sloped length and one perpendicular distance are known, the other perpendicular distance follows from the Pythagorean theorem. This works only when the geometry forms a right triangle.
Construction and framing. Carpenters check square corners by measuring the diagonal of a rectangular frame. If the diagonal (c) and one side (a) are known, the missing side (b) confirms the layout before cutting lumber.
Room and floor-plan measurements. When planning furniture or flooring, the diagonal of a room and one wall length give the other wall length without moving obstacles.
Ladder and wall geometry. Given a ladder length and its distance from the wall, the height it reaches follows directly. This is a geometric model, not a safety assessment.
Ramp and slope calculations. From the slope length and horizontal run, the vertical rise is determined. This does not establish code compliance.
How to Check Your Missing Leg Calculation
Verify every result before using it. For the 5–12–13 example: 5² + 12² = 25 + 144 = 169 = 13².
The output labeled Missing leg b is the length of the other leg that forms the right angle with a. It is not the hypotenuse and should be shorter than c.
A valid result must satisfy:
b is greater than zero.
b is shorter than c.
a² + b² equals c², allowing for rounding in the displayed value.
The result uses the correct unit.
Common Mistakes When Finding a Missing Leg
The most common error is treating c as a leg. Here c must be the hypotenuse: the longest side, opposite the right angle.
Another frequent mistake is adding the squares instead of subtracting. Addition (a² + b²) finds a hypotenuse; subtraction (c² − a²) finds a missing leg from the hypotenuse.
Avoid these mistakes:
Confusing the hypotenuse with a leg. If you put the leg value in the c field, the formula solves the wrong problem. Correct: c is always the longest side.
Adding squares instead of subtracting. Wrong: b = √c² + a². Correct: b = √c² − a².
Forgetting the square root. Wrong: b = c² − a². Correct: take the square root of the difference.
Wrong square-root grouping. Wrong:√c² − a² (which equals c − a). Correct: √c² − a², with the entire difference inside the radical.
Entering a ≥ c. The known leg cannot equal or exceed the hypotenuse. Correct: verify c > a before calculating.
Mixing units. Wrong: c = 5 m, a = 30 cm. Correct: convert to the same unit first (c = 500 cm, a = 30 cm).
Rounding too early. Wrong: rounding √51 to 7.14 mid-calculation. Correct: keep full precision until the final answer.
Answers to the most common right-triangle solving questions.
01 How do I find the missing leg from the hypotenuse and one leg?
Square the hypotenuse (c²), square the known leg (a²), subtract, and take the square root: b = √c² − a². Enter both values in the calculator above for an instant result with steps.
02 Why do I subtract instead of add?
The Pythagorean theorem adds the leg squares to get the hypotenuse square (a² + b² = c²). When you already know the hypotenuse, rearrange: subtract the known leg square from the hypotenuse square to isolate the missing leg square, then take the root.
03 How do I know which side is the hypotenuse?
The hypotenuse is always the longest side and sits opposite the 90° angle. If your three measurements are 5, 12, and 13, the hypotenuse is 13.
04 What happens if the known leg is equal to or longer than the hypotenuse?
If a = c, the result is b = 0 (degenerate, not a triangle). If a > c, the square root of a negative number has no real solution. Both cases are rejected as invalid.
05 Can the missing leg be a decimal?
Yes. For example, c = 10 and a = 7 gives b = √51 ≈ 7.14. Keep full precision during calculations and round only the final answer.
06 How can I check whether the answer is correct?
Verify that a² + b² = c². For the 5–12–13 example: 25 + 144 = 169. Also confirm b > 0, b < c, and the unit matches your inputs.
07 Can I use different measurement units?
Both inputs must use the same unit. If c is in meters and a is in centimeters, convert one first. The result uses the input unit.
08 Can this calculator also find an unknown angle?
No, this mode finds only the missing leg b. To find angles, use the Right Triangle Angle Calculator.