Missing Side Calculator (Find a Leg)

Know the hypotenuse and one leg? Enter them to get the missing leg from a = √c2 − b2, with every step, the exact answer, the decimal and a check.

By the PythagoreanTheorem.net teamUpdated Free · no sign-up

Choose the leg you want, then enter the other leg and the hypotenuse c, the longest side, across from the right angle.

a = 4√5 ≈ 8.9443

Exact value in simplest radical form, then the decimal rounded to 4 decimal places.

  • Area35.7771
  • Perimeter28.9443
  • Angle A48.19°
  • Angle B41.81°
a = 8.9443b = 8c = 12

Step-by-step solution

  1. Write the theorem: a2 + b2 = c2
  2. Subtract b² from both sides to get the missing leg alone: a2 = c2 − b2
  3. Substitute: a2 = 122 − 82
  4. Square both numbers: a2 = 144 − 64
  5. Subtract: a2 = 80
  6. Take the square root (a length is never negative): a = √80 = 4√5 ≈ 8.9443
  7. Check: put the rounded answer back into the theorem: 8.94432 + 82 ≈ 144 = 122 ✓
Decimals (2.5), fractions (3/4) and roots (2√3, sqrt(8)) all work.

To find the missing side of a right triangle when you know the hypotenuse and one leg, square both, subtract, and take the square root: a = √c2 − b2. For c = 13 and b = 5, a = √169 − 25 = √144 = 12. The hypotenuse must be the longest side, or no triangle exists.

Find a, b or c: what to enter

Homework questions often read like a fill-in-the-blank: find a when b = 5 and c = 13. The unknown is the side marked "?" or "n/a", and you only need the other two. Choose Find leg a, type b and c, and the box for a fills itself in.

You needYou knowFormulaExample
Leg ab and ca = √c2 − b2b = 5,  c = 13 ⇒ a = 12
Leg ba and cb = √c2 − a2a = 9,  c = 41 ⇒ b = 40
Hypotenuse ca and bc = √a2 + b2a = 6,  b = 8 ⇒ c = 10 (use the hypotenuse calculator)

The two legs are interchangeable: calling a leg a or b doesn't change the answer. The hypotenuse is different. It has to go in box c, so find it first.

legleghypotenuselegleghypotenuselegleghypotenuse
However the triangle is turned, the hypotenuse is the side across from the right-angle mark, and it is always the longest. Put that length in the c box.

Why you subtract: rearranging the theorem

Start from the Pythagorean theorem, subtract b2 from both sides to get a2 on its own, then take the positive square root:

a2 + b2= c2a2= c2 − b2a= √c2 − b2
c² = 13² = 16913b² = 255169 − 25= 144same areaa² = 144a = √144 = 121212
Finding a leg is a subtraction of areas: take the square on the leg you know away from the square on the hypotenuse, and the area left over is the square on the missing leg.

Subtracting makes the number smaller, which is exactly right: a leg is always shorter than the hypotenuse. For the full lesson with practice questions, see how to find the missing side.

Worked examples

Example 1: find a when b = 7 and c = 25

a2= 252 − 72 = 625 − 49 = 576a= √576 = 24

a = 24. The sides 7, 24, 25 form a Pythagorean triple.

Example 2: find b when a = 6 and c = 10

b2= 102 − 62 = 100 − 36 = 64b= √64 = 8

b = 8: the 3-4-5 triangle doubled.

Example 3: an answer in simplest radical form

The hypotenuse is 12 and one leg is 8 (the default example in the calculator above).

a2= 144 − 64 = 80a= √80 = √16 · 5 = 4√5 ≈ 8.9443

a = 4√5 ≈ 8.94, rounded to the nearest hundredth. The square root simplifier shows how to find the square factor 16.

Example 4: decimals

The hypotenuse is 7.5 m and one leg is 4.5 m.

a2= 7.52 − 4.52 = 56.25 − 20.25 = 36a= 6

a = 6 m exactly: the triangle is 3-4-5 scaled by 1.5.

Example 5: a ladder against a wall

A 10 ft ladder leans against a wall with its foot 6 ft from the wall. How high up the wall does it reach? The ladder is the hypotenuse; the ground and the wall are the legs.

h = √102 − 62 = √64 = 8

The ladder reaches 8 ft up the wall. The ladder calculator also checks the safe angle.

Common mistakes and how the calculator catches them

  • Adding instead of subtracting. √132 + 52 = √194 ≈ 13.93 is longer than the hypotenuse, which is impossible for a leg.
  • Subtracting before squaring. √13 − 5 = √8 ≈ 2.83 is wrong. Square each length first, then subtract.
  • Putting a leg in the hypotenuse box. If c is not the largest number, c2 − b2 is zero or negative and there is no real answer. The calculator stops, explains why, and shows what the answer would be if the two numbers were swapped.
  • Mixing units. Convert first. A hypotenuse of 2 m and a leg of 120 cm become c = 200 cm and b = 120 cm, so a = √40,000 − 14,400 = 160 cm.
  • Rounding too early. Keep the exact value, or every digit, until the final step. More slips like these are on the common mistakes page.

A shortcut: the difference of two squares

Because c2 − b2 = (c − b)(c + b), you can often skip the big squares. When the hypotenuse and the leg are close together, this is much faster in your head:

a2 = 252 − 242 = (25 − 24)(25 + 24) = 1 · 49 = 49,  a = 7

In the same way, 412 − 402 = 1 · 81 = 81, so a right triangle with hypotenuse 41 and a leg of 40 has a missing leg of 9.

Table: hypotenuse, known leg and missing leg

Hypotenuse cKnown legMissing leg (exact)Decimal
21√31.7321
32√52.2361
5344
5433
624√25.6569
1055√38.6603
10688
107√517.1414
1284√58.9443
1351212
131255
1781515
2572424
25152020
29202121
4194040

Decimals are rounded to four places. To practice, try the missing side worksheet, which has a full answer key.

Frequently asked questions

How do you find the missing side of a right triangle?

If the missing side is a leg, use a = √c2 − b2. If it is the hypotenuse, use c = √a2 + b2. If you know a side and an angle rather than two sides, use trigonometry; the right triangle solver does both.

Does it matter which leg I call a and which I call b?

No. The formula treats the legs the same way, so swapping them gives the same missing length. Only the hypotenuse has a fixed place: it is always c.

Why does the calculator say the hypotenuse must be longer than the leg?

Because c2 − b2 would be zero or negative, and no real length has a negative square. In a right triangle the hypotenuse is always the longest side, so check that the biggest number is in box c.

Can I find a missing side without knowing the hypotenuse?

Yes, if you know both legs: then the missing side is the hypotenuse. With one leg and an acute angle, use sine, cosine or tangent. One length on its own is never enough.

Does this work for triangles without a right angle?

No. For other triangles, use the law of cosines, c2 = a2 + b2 − 2abcosC, which reduces to the Pythagorean theorem when C = 90°.

Why is the answer sometimes a square root?

When c2 − b2 is not a perfect square, the exact length is irrational. For example √22 − 12 = √3. The calculator gives it in simplest radical form and as a decimal.

Keep exploring