Right Triangle Solver logo
Right Triangle Solver

Side Calculations

Missing Leg Calculator: Find Leg a from Hypotenuse c and Leg b

Find the missing leg a of a right triangle from the hypotenuse c and known leg b. Enter both values to calculate a instantly.

Missing Leg From c and b Calculator

This calculator finds Missing leg a using a = √(c² - b²).

Enter inputs to calculate Missing leg a.

What This Tool Solves

Use this page when you know the hypotenuse and leg b, but need leg a. The calculator rearranges the Pythagorean theorem to subtract the square of the known leg from the square of the hypotenuse, then takes the square root. It keeps the known side b separate from the unknown side a so the formula and result match the labels on your triangle.

Known values

Hypotenuse c and leg b

Finds

Missing leg a

Main formula

a = √c² - b²

Required check

c must be greater than b

Identify the Hypotenuse and Missing Leg

The diagram shows c as the known hypotenuse and b as the known leg. The base leg a is highlighted as the missing value returned by the calculator.

Identify the Hypotenuse and Missing Leg Right triangle diagram with known hypotenuse c, known leg b, and unknown leg a. a = find b = known c = known

Diagram Key

Side to find a = find

Leg a is the unknown base leg solved from c and b.

Known side b = known

Leg b is the known leg that forms the right angle with a.

Known side c = known

Hypotenuse c is the known longest side of the right triangle.

  • The hypotenuse c must be the longest side in the input pair.
  • If c is less than or equal to b, re-check which value is the hypotenuse.
  • The calculated a has the same unit as the values you entered.

Formula to Find Leg a from c and b

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 b² 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² − b² stays inside the radical.

Where a is the missing leg, b is the known leg, and c is the hypotenuse. The hypotenuse is opposite the right angle and is always the longest side.

Why subtract? The original equation adds the squares of both legs to make the square of the hypotenuse. When the hypotenuse and one leg are already known, subtract the square of the known leg from the square of the hypotenuse to isolate the square of the unknown leg. Then take the positive square root. Never subtract the leg from the hypotenuse directly, always subtract their squares.

a2+b2=c2a^2 + b^2 = c^2
a2=c2−b2a^2 = c^2 - b^2
a=c2−b2a = \sqrt{c^2 - b^2}

How to Find Leg a from c and b

  1. Identify the hypotenuse, which sits opposite the 90° angle. It is always the longest side.
  2. Enter the hypotenuse c in the first input field.
  3. Enter the known leg b in the second input field.
  4. Check that both measurements use the same unit.
  5. Click Calculate to find the missing leg a.
  6. Review the result and the step-by-step solution shown below the calculator.
  7. Verify the answer by checking that a² + b² equals c².

Example: Find Leg a

Given: c = 10, b = 6. The missing leg of a right triangle with hypotenuse 10 and leg 6 is 8.

a=102−62a = \sqrt{10^2 - 6^2}
a=100−36a = \sqrt{100 - 36}
a=64a = \sqrt{64}
a=8a = 8

Missing Leg Examples with Step-by-Step Solutions

Example 1: Standard 6-8-10 Triangle

Problem: Find the missing leg of a right triangle with hypotenuse c = 10 cm and known leg b = 6 cm.

Given: c = 10 cm, b = 6 cm. Find: a.

Formula: a = √(c² − b²)

Substitution: a = √(10² − 6²) = √(100 − 36) = √64

Answer: a = 8 cm

Verification: 8² + 6² = 64 + 36 = 100 = 10². The known leg, missing leg, and hypotenuse form a valid right triangle.

Example 2: Find the Missing Leg in a 5-12-13 Triangle

Problem: A right triangle has hypotenuse c = 13 m and known leg b = 5 m. Find the missing leg.

Given: c = 13 m, b = 5 m. Find: a.

Calculation: a = √(13² − 5²) = √(169 − 25) = √144 = 12 m

Answer: a = 12 m

Verification: 12² + 5² = 144 + 25 = 169 = 13².

Example 3: Rectangular Room Diagonal

Problem: A rectangular room has a diagonal of 17 ft and one side measuring 15 ft. Find the other side.

Given: c = 17 ft (diagonal), b = 15 ft. Find: a.

Calculation: a = √(17² − 15²) = √(289 − 225) = √64 = 8 ft

Answer: The missing room dimension is 8 ft.

Room floor plan diagram: 17 ft diagonal as hypotenuse, 15 ft known side as leg b, 8 ft missing side as leg a

Figure: Top-down view. The diagonal (c = 17 ft) splits the rectangle into two right triangles. The known side (b = 15 ft) and the missing side (a = 8 ft) form the right angle.

Why this works: A rectangle's diagonal divides it into two congruent right triangles. The diagonal becomes the hypotenuse, and the two sides become the legs. This is why the same formula that solves abstract triangles also solves room layouts, floor tiles, and screen dimensions.

Example 4: A Decimal Result

Problem: Given c = 10 m and b = 7 m, find a.

Calculation: a = √(10² − 7²) = √(100 − 49) = √51 ≈ 7.141428 m

Answer: a ≈ 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 too early introduces errors that compound in multi-step problems.

Where Is the Missing Leg Formula Used?

The general pattern: when a straight-line diagonal or slope length and one perpendicular distance are known, the other perpendicular distance follows from the Pythagorean theorem. This only works when the geometry forms a right triangle.

Ramp geometry. A straight ramp is 25 m long and rises 7 m vertically. The horizontal run is the missing leg: a = √(25² − 7²) = √(625 − 49) = √576 = 24 m. Here the ramp itself is the hypotenuse because it is the longest side, sloping from ground to platform. The vertical rise is the known leg b, and the ground distance you need is the missing leg a.Ramp diagram: 25 m ramp as hypotenuse, 7 m vertical rise as leg b, 24 m horizontal run as missing leg a

Figure: The ramp (c = 25 m) as hypotenuse, the vertical rise (b = 7 m), and the horizontal run (a = 24 m). This is a geometric model, not a building-code compliance check.

This is a geometric calculation, not a determination of building-code or accessibility compliance.

Roof slope. A roof cross-section forms a right triangle: the sloped surface is the hypotenuse (13 ft), the vertical rise from eave to ridge is the known leg (5 ft), and the horizontal distance the roof covers is the missing leg. Calculate: a = √(13² − 5²) = √(169 − 25) = √144 = 12 ft. Roofers use this to find the horizontal span a roof covers, which determines rafter spacing and material estimates.Roof cross-section diagram: 13 ft slope as hypotenuse, 5 ft vertical rise as leg b, 12 ft horizontal run as missing leg a

Figure: The roof slope (c = 13 ft) as hypotenuse, the vertical rise (b = 5 ft), and the horizontal run (a = 12 ft).

Floor plan measurements. When planning furniture or flooring, a room diagonal and one wall length give the other wall length without moving obstacles, as shown in Example 3 above.

Construction and layout. The formula helps estimate a perpendicular distance when the straight-line diagonal and one perpendicular dimension are known. Field measurements and real-world geometry may include measurement error, so treat results as estimates rather than exact engineering values.

Conditions for a Valid Missing Leg Calculation

For a valid non-degenerate right triangle, the measurements must satisfy: c > b > 0. The missing leg is then a = √(c² − b²).

Case 1: c > b > 0. The expression under the square root is positive and a valid missing leg can be calculated.

Case 2: c = b. The result is a = 0, which describes a degenerate case rather than a valid triangle.

Case 3: c < b. The expression c² − b² is negative. These inputs cannot describe a right triangle with c as the hypotenuse.

Case 4: Zero or negative measurements. Side lengths must be positive. The calculator rejects zero and negative values.

Case 5: Incompatible units. Both measurements must use the same unit. If c is in meters and b is in centimeters, convert one of them before calculating.

Use these checks first:

Check Your Missing Leg Calculation

Verify each result before using it. For the 6-8-10 example: 8² + 6² = 64 + 36 = 100 = 10². For the decimal example: 7² + (√51)² = 49 + 51 = 100 = 10², confirming the exact form before rounding.

The result labeled "Missing leg a" is the length of the other side forming the right angle with b. It is not the hypotenuse and should be shorter than c. If your answer comes out longer than c, you have swapped the hypotenuse with a leg.

A valid result should satisfy:

Common Mistakes When Finding Leg a

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 (b² + a²) finds a hypotenuse; subtraction (c² − b²) finds a missing leg from the hypotenuse.

Avoid these mistakes:

Related Calculators

Frequently Asked Questions

Answers to the most common right-triangle solving questions.

01 What does c mean in this calculator?

c is the hypotenuse — the longest side of the right triangle, opposite the 90° angle. In this calculator, you enter c as one of your two known values.

02 What does b mean in this calculator?

b is one of the two legs of the right triangle. It’s a side that forms the right angle. Here, b is the leg you already know, and the calculator uses it along with c to find the missing leg a.

03 How do I calculate a from c and b?

Square the hypotenuse (c²), square the known leg (b²), subtract b² from c², and take the square root of the result. The formula is a = √c² − b². You can also just enter your values into this calculator to get the answer automatically.

04 Why must c be greater than b?

The hypotenuse is always the longest side in a right triangle. If c were smaller than b, then b would be the longest side, contradicting the definition. The calculator rejects such inputs as invalid.

05 What happens if c equals b?

If c = b, the formula gives a = √c² − c² = 0. This is a degenerate case, not a valid triangle. The calculator treats it as invalid input.

06 Can the missing leg be a decimal?

Yes. For example, c = 10 and b = 7 give a = √51 ≈ 7.14. Keep full precision during calculations and round only the final answer.

07 How can I check whether my answer is correct?

Verify that a² + b² = c². For the 6-8-10 example: 64 + 36 = 100. Also check that a > 0, a < c, and the unit matches your inputs.

08 Can this calculator find an unknown angle?

No, this calculator only finds the missing leg a. To find angles, use the Right Triangle Angle Calculator.