Law of Sines Ambiguous Case Solver

Compares side a with the height b sin A to decide how many triangles exist, solves each one with the law of sines and draws them with a swinging side.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter the data

    Type angle A, side a opposite it and side b.

  2. 2
    Read the count

    The result says how many triangles exist and why.

  3. 3
    Look at the diagram

    The dashed height and the circle of radius a show where side a can meet the base.

  4. 4
    Read each triangle

    The table gives B, C, c, area and perimeter for every solution.

  5. 5
    Swing side a

    Drag the slider or press the case buttons to see each situation.

  6. 6
    Practise

    Practice asks how many triangles fit the given data.

About this tool

When you know two sides and an angle that is not between them (SSA), the law of sines does not always give a single triangle. Depending on the lengths there may be no triangle, exactly one, or two different triangles. This is called the ambiguous case, and it is a common source of lost marks. This solver makes the reason visible. It computes the height h = b sin A from vertex C to the base line and compares side a with h and with b. Then it states which case applies, finds angle B with the law of sines, adds the second angle 180° - B when it is valid, and gives angle C, side c and the area of each triangle. The diagram draws side b, the height, a circle of radius a around C and the one or two places where side a meets the base, and a slider lets you swing side a to watch triangles appear and disappear.

Why SSA is ambiguous

Picture side b fixed at angle A to the base line, and side a hanging from its end C like a door. If a is shorter than the height h, it cannot reach the base: no triangle. If a equals h, it just touches: one right-angled triangle. If a is between h and b, it can swing to meet the base in two places: two triangles. If a is at least b, the second meeting point would be on the wrong side of A: one triangle.

The obtuse case

If A is 90° or more, side a must be the longest side. So a ≤ b gives no triangle and a > b gives exactly one.

Solving each triangle

sin B = b sin A / a gives the acute value B₁ = sin⁻¹(…). The other possibility is B₂ = 180° - B₁, which is valid only if A + B₂ < 180°. Then C = 180° - A - B and c = a sin C / sin A. The area is ½ab sin C.

Worked example

A = 30°, a = 6, b = 10. h = 10 sin 30° = 5, and 5 < 6 < 10, so there are two triangles. sin B = 10 × 0.5 / 6 = 0.8333, so B₁ ≈ 56.443° and B₂ ≈ 123.557°. Triangle 1 has C ≈ 93.557°, c ≈ 11.977 and area ≈ 29.942; triangle 2 has C ≈ 26.443°, c ≈ 5.344 and area ≈ 13.359.

Limits

Only the SSA arrangement is handled here; for SSS, SAS and ASA use a general triangle solver. Results are rounded decimals, so when a is extremely close to h the tool may decide between one and two triangles differently from exact arithmetic. Angles are in degrees. It is a learning aid.

Worked example

A = 30°, a = 6, b = 10: h = 5 < a < b, so two triangles: B ≈ 56.44° or 123.56°, c ≈ 11.98 or 5.34.

Quick facts

Frequently asked questions

What is the ambiguous case?

Given two sides and a non-included angle (SSA), the data can fit no triangle, one triangle or two different triangles.

How do I decide how many triangles there are?

For acute A compare a with h = b sin A and with b: a < h none, a = h one, h < a < b two, a ≥ b one.

Where does the second triangle come from?

sin B = sin(180° - B), so the law of sines gives two possible angles B; the obtuse one works when A + B < 180°.

What changes when A is obtuse?

Side a must be longer than b; otherwise no triangle exists. If a > b there is exactly one.

How is the area found?

With ½ab sin C, using the angle C of each triangle.

Can I see the triangles change?

Yes. Drag the Swing side a slider and watch the circle of radius a meet the base in zero, one or two places.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages