📐 Law of Sines Calculator — Solve a Triangle (AAS, ASA & the Ambiguous SSA Case)

Solve a triangle from two angles and a side, or from two sides and a non-included angle — including the classic ambiguous SSA case.

📐 Enter Your Known Values
Result
📐

Choose a mode, enter your known angles and sides, and click Calculate

Guide

About the Law of Sines Calculator

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This law of sines calculator solves a triangle whenever you know two angles and one side (the AAS or ASA case), or two sides and a non-included angle (the trickier SSA case). The Law of Sines states that a/sin(A) = b/sin(B) = c/sin(C) for every triangle, linking each side to the sine of the angle opposite it. That single ratio is enough to unlock every missing angle and side — except in the SSA case, where the same numbers can sometimes describe two genuinely different triangles at once. This tool handles that ambiguity automatically, showing every valid solution it finds instead of silently picking one.

What This Calculator Measures

Given two angles and a side, it finds the third angle by subtracting from 180° and then applies the Law of Sines ratio to compute the two remaining sides. Given two sides and a non-included angle, it computes the sine of the second angle, checks whether that value is even possible, and then tests both the acute and obtuse candidate angles to see which one (or both) complete a valid triangle.

Who Should Use This Calculator

Trigonometry and precalculus students working through Law of Sines problem sets, surveyors and navigators triangulating a position from two known bearings, engineers checking truss or bracket geometry, and anyone who has partial triangle measurements from a real-world sketch or survey and needs the rest solved reliably — especially in the SSA case, which is notoriously easy to get wrong by hand.

Why the Law of Sines Matters

Many real triangles can't be measured completely by hand — you might be able to sight two angles and a baseline distance, or measure two lengths and one angle, but not every side directly. The Law of Sines bridges that gap using only trigonometric ratios, and understanding when it applies (versus when the Law of Cosines is required) is a foundational skill in trigonometry, surveying, and navigation.

Real-World Applications

Surveyors use it to compute distances across terrain that can't be measured directly, from two angle sightings and one known baseline. Navigators use it for triangulation between landmarks or radio beacons. Architects and engineers use it to verify truss, roof, or bracket angles. Students and teachers use it to check homework on oblique (non-right) triangles quickly and see the ambiguous case worked out in full.

Tips for Accurate Results

  • In SSA mode, always check whether one or two solutions are shown — discarding the second solution when it's actually valid is one of the most common Law of Sines mistakes.
  • Make sure the side you enter opposite Angle A in SSA mode is genuinely opposite that angle, not an adjacent side, or the ratio will be set up incorrectly.
  • If your two known angles in AAS/ASA mode already sum to 180° or more, no triangle exists — double-check your angle measurements before re-entering them.
Formula

The Law of Sines Formula, Explained

How two angles and a side, or two sides and an angle, solve the rest of the triangle

The Law of Sines
a/sin(A) = b/sin(B) = c/sin(C)

AAS / ASA Case (Given A, B, a)
C = 180° − A − B  |  b = a·sin(B)/sin(A)  |  c = a·sin(C)/sin(A)

SSA Ambiguous Case (Given a, b, A)
sin(B) = b·sin(A)/a  →  if sin(B) > 1: no triangle.
Otherwise: B₁ = asin(sin(B)), B₂ = 180° − B₁.
For each candidate: C = 180° − A − B; valid only if C > 0. Then c = a·sin(C)/sin(A).

Where:
A, B, C = the three interior angles of the triangle (in degrees).
a, b, c = the three side lengths, each opposite its same-letter angle.
sin(θ) = sine of angle θ — equal to sin(180° − θ), which is the root cause of the ambiguous case.
📐

One Ratio, Three Sides

Because a/sin(A), b/sin(B), and c/sin(C) are all equal, knowing any one full pair plus one more value solves the whole triangle.

🔀

The Ambiguous Case

SSA input can match zero, one, or two real triangles, since sin(θ) and sin(180°−θ) are identical — this calculator checks both possibilities.

Angles Always Sum to 180°

Every triangle's three interior angles add up to exactly 180°, which is how the third angle is always found first.

⚙️ Why This Formula Works

The Law of Sines follows from dropping a perpendicular (an altitude) from one vertex to the opposite side, which creates two right triangles that share that altitude. Expressing the altitude two different ways using sine, then equating them, produces the a/sin(A) = b/sin(B) relationship — and the same argument applies to any pair of sides and their opposite angles.

🎯 When to Use Each Mode

  • AAS/ASA: you know two angles and any one side — always exactly one solution
  • SSA: you know two sides and an angle opposite one of them — zero, one, or two solutions
  • Not SAS or SSS: those cases have no angle paired with a known side yet — use the Law of Cosines first

📋 Assumptions

  • All angle inputs are positive and given in degrees
  • All side lengths are positive real numbers
  • The triangle lies in flat (Euclidean) geometry, where angles sum to 180°

⚠️ Limitations of the Formula

  • The SSA case is genuinely ambiguous — the same inputs can produce 0, 1, or 2 valid triangles, and the formula alone can't tell you which without checking both candidate angles
  • Cannot be applied directly to SAS or SSS triangles (no angle-side pair is known yet)
  • Very small angle inputs near 0° or 180° can amplify rounding error in the sine ratio
Walkthrough

Step-by-Step: How to Use the Law of Sines Calculator

From choosing a mode to reading every valid solution

Choose your case

Select the AAS/ASA tab if you know two angles and a side, or the SSA tab if you know two sides and a non-included angle.

Enter your known values

Type the known angle(s) in degrees and the known side length(s) into the fields for that mode.

Click "Calculate"

The calculator applies the Law of Sines ratio to solve for every missing angle and side.

Check for the ambiguous case

In SSA mode, the calculator tests both candidate angles and shows every solution — zero, one, or two — that actually forms a valid triangle.

Read the results

Review the completed angles and sides for each valid solution shown in the results panel.

Example

Worked Example: The Ambiguous SSA Case

Solving a triangle with a = 8, b = 10, and Angle A = 35° — a case with two valid solutions

Scenario

A surveyor measures two sides of a triangular plot, a = 8 and b = 10, and the angle opposite side a as A = 35°. How many triangles fit these measurements, and what are their remaining angles and sides?

Side a8
Side b10
Angle A35°
Step 1 — Solve for sin(B): sin(B) = b·sin(A)/a = 10 × sin(35°) / 8 ≈ 10 × 0.573576 / 8 ≈ 0.716971. Since this is ≤ 1, at least one triangle is possible.
Step 2 — First candidate (acute): B₁ = asin(0.716971) ≈ 45.8049°. Then C₁ = 180 − 35 − 45.8049 ≈ 99.1951°, which is positive, so this is a valid solution. c₁ = a·sin(C₁)/sin(A) = 8 × sin(99.1951°)/sin(35°) ≈ 13.7683.
Step 3 — Second candidate (obtuse supplement): B₂ = 180 − 45.8049 ≈ 134.1951°. Then C₂ = 180 − 35 − 134.1951 ≈ 10.8049°, which is also positive, so this is a second valid solution. c₂ = a·sin(C₂)/sin(A) = 8 × sin(10.8049°)/sin(35°) ≈ 2.6147.
Step 4 — Conclusion: Both candidate angles produce a positive third angle, so this specific SSA input describes two distinct valid triangles — the textbook definition of the ambiguous case.
Solution 1 — B
45.8049°
Solution 1 — C
99.1951°
Solution 1 — c
13.7683
Solution 2 — B
134.1951°
Solution 2 — C
10.8049°
Solution 2 — c
2.6147

Explanation: Both triangles genuinely satisfy a = 8, b = 10, A = 35° — one has a "short" third side (c₂ ≈ 2.61) and an obtuse angle B, the other has a "long" third side (c₁ ≈ 13.77) and an acute angle B. Without checking both candidates, it's easy to report only one and silently discard a mathematically valid triangle.

Interpretation

Understanding Your Law of Sines Results

What each output means and how many solutions to expect

OutputWhat It RepresentsTypical Range / Notes
Angle C (AAS/ASA)The third interior angle0° < C < 180°; invalid if A + B ≥ 180°
Side b, Side c (AAS/ASA)The two unknown side lengthsAlways positive; scales with side a
Number of SSA solutionsHow many triangles fit the given a, b, A0 (no triangle), 1 (one solution), or 2 (ambiguous case)
Solution 1 (SSA)The acute candidate for angle B and its resulting triangleB₁ = asin(sin B) is always ≤ 90°
Solution 2 (SSA)The obtuse supplement candidate, if it forms a valid triangleB₂ = 180° − B₁ is always ≥ 90°

Reading the results together: in AAS/ASA mode there is always exactly one solution (or none, if the angles are invalid). In SSA mode, treat the "number of solutions" line as the headline result — it tells you whether you're looking at a single unambiguous triangle or two equally valid ones.

Typical ranges: all angles must fall strictly between 0° and 180°, and the three angles of any single solution must sum to exactly 180°. All side lengths must be positive.

Manual verification: for any solution shown, check that a/sin(A) = b/sin(B) = c/sin(C) holds (all three ratios equal) and that A + B + C = 180° — both should match closely, aside from rounding in the last displayed decimal.

Use Cases

Practical Use Cases for the Law of Sines Calculator

Where solving a triangle from angles and a side is genuinely useful

🎓

Trigonometry & precalculus homework

Check AAS, ASA, and ambiguous SSA problems step by step.

🗺️

Land surveying

Compute an inaccessible distance from two angle sightings and one known baseline.

🧭

Navigation & triangulation

Locate a ship, aircraft, or landmark position from two bearing angles and a known distance.

🏗️

Structural & civil engineering

Verify truss, gusset, or bracket angles when only partial triangle measurements are available.

📡

Radio & signal triangulation

Estimate a transmitter's location from two known angles relative to two receivers.

🏞️

Terrain & elevation mapping

Find heights or distances across terrain that can't be measured directly.

🏛️

Architecture & drafting

Check oblique roof, truss, or facade angles against design specifications.

Marine navigation

Compute distances to a landmark using two angle sightings from a moving vessel.

🎯

Artillery & ballistics geometry

Solve angle-of-fire triangles where two angles and a baseline are known.

🛰️

GPS & satellite geometry

Model triangulated positioning problems that reduce to oblique triangles.

📊

Physics vector problems

Resolve non-right vector triangles in force, velocity, or displacement problems.

🖥️

Computer graphics & game dev

Solve triangle geometry for procedural meshes, lighting angles, or hit-detection shapes.

🧪

Testing the ambiguous case

See exactly when SSA measurements yield two valid triangles instead of one.

Pros & Cons

Advantages and Limitations

What this Law of Sines calculator does well, and where it doesn't apply

✅ Advantages

  • Free, instant, and requires no signup or account
  • Runs entirely in your browser — no data ever leaves your device
  • Handles both AAS/ASA and the trickier SSA ambiguous case
  • Automatically detects and displays 0, 1, or 2 valid SSA solutions
  • Removes manual sine-ratio arithmetic and rounding errors
  • Clearly labels which candidate solution is acute and which is obtuse
  • Flags invalid angle combinations instead of returning nonsense results
  • Useful across surveying, navigation, engineering, and classroom contexts alike
  • Accepts decimal degree inputs for precise, real-world measurements
  • Fast-loading and fully mobile-friendly
  • Consistent, error-free results every time
  • Free to use as many times as needed, with no calculation limit

⚠️ Limitations

  • Cannot solve SAS or SSS triangles directly — use the Law of Cosines Calculator for those
  • The SSA ambiguous case can be genuinely confusing without reading the worked example first
  • Assumes flat (Euclidean) geometry — not valid for spherical or curved-surface triangles
  • Requires angle inputs in degrees; radian inputs must be converted first
  • Cannot detect a mismatched side/angle pairing (e.g. entering the wrong opposite side)
  • Displays decimal results rounded to four places, which can hide tiny precision loss
  • Does not draw or visually plot the resulting triangle(s)
Reference

Law of Sines vs Law of Cosines: Which to Use

How to tell which formula applies to your known triangle values

Known ValuesCase NameFormula to UseNumber of Solutions
Two angles + any sideAAS / ASALaw of SinesAlways 1 (or 0 if angles invalid)
Two sides + non-included angleSSALaw of Sines (ambiguous case)0, 1, or 2
Two sides + included angleSASLaw of CosinesAlways 1
All three sidesSSSLaw of CosinesAlways 1

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Reporting only one SSA solution when the given values actually produce two valid triangles
  • Applying the Law of Sines directly to an SAS or SSS triangle, where no angle-side pair is known yet
  • Entering a side that isn't actually opposite the given angle in SSA mode
  • Forgetting that sin(θ) = sin(180° − θ), which is the entire reason the SSA case is ambiguous
  • Mixing degrees and radians when entering angle values
  • Assuming every SSA input has exactly one answer, then being confused by a "no triangle possible" result

💡 Expert Tips & Best Practices

  • Always check the number of solutions reported in SSA mode before assuming there's just one triangle
  • If you already know two sides and the angle between them, use the Law of Cosines Calculator instead
  • For quick sanity checks, verify that A + B + C = 180° for every solution shown
  • Use the general Triangle Solver if you're not sure yet which case (SSS, SAS, ASA/AAS) your triangle falls into
  • Sketch a rough diagram first — visualizing which side is "opposite" which angle prevents most SSA input mistakes
📝

Summary: This Law of Sines calculator solves AAS, ASA, and the ambiguous SSA case instantly, showing every valid triangle it finds. Pair it with the Law of Cosines Calculator for SAS/SSS triangles, or the Triangle Solver for a general-purpose tool covering every case.

FAQ

Frequently Asked Questions

Common questions about the Law of Sines and the ambiguous case

What is the Law of Sines formula?
The Law of Sines states that a/sin(A) = b/sin(B) = c/sin(C) for any triangle, where a, b, c are the side lengths and A, B, C are the angles opposite those sides. It lets you find a missing angle or side whenever you know at least one full angle-side pair plus one more piece of information.
When should I use the Law of Sines instead of the Law of Cosines?
Use the Law of Sines when you know two angles and any side (AAS or ASA), or two sides and a non-included angle (SSA). Use the Law of Cosines instead when you know two sides and the included angle (SAS) or all three sides (SSS), since the Law of Sines cannot be applied directly to those cases.
What is the ambiguous case (SSA) in the Law of Sines?
The SSA case (two sides and a non-included angle) is called ambiguous because the given information can match zero, one, or two distinct triangles. This happens because the sine function gives the same value for an angle and its supplement (180° minus that angle), so both candidate angles can sometimes form a valid triangle.
How many triangles can the SSA case produce?
Zero, one, or two. If the computed sine of the unknown angle exceeds 1, no triangle exists. If it equals exactly 1, there is exactly one (right) triangle. Otherwise there are two candidate angles, but only those for which the resulting third angle is still positive count as valid triangles — so you can end up with one or two solutions.
What happens if sin(B) is greater than 1 in the SSA case?
If the calculation b × sin(A) / a produces a value greater than 1, no valid angle B exists (since sine can never exceed 1), which means no triangle can be formed from the given side and angle values. The calculator flags this as "no triangle possible."
Can the Law of Sines solve an SSS triangle?
Not directly. With three sides and no known angle, there is no angle-side pair to start the ratio a/sin(A) = b/sin(B) = c/sin(C). Use the Law of Cosines first to find one angle, or use a dedicated SSS solver like our Law of Cosines Calculator or Triangle Solver.
Can the Law of Sines solve a SAS triangle?
Not directly, for the same reason as SSS — SAS gives two sides and the included angle, but no angle is paired with a known opposite side yet. Solve for the third side with the Law of Cosines first, and only then can the Law of Sines find the remaining angles.
What is the difference between AAS and ASA?
Both give you two angles and one side, so both use the identical Law of Sines process — the only difference is the position of the known side relative to the two angles. AAS means the side is opposite one of the known angles; ASA means the side is between (included by) the two known angles. Either way, the third angle is found first with 180° − A − B.
Why do angles in a triangle always add up to 180 degrees?
This is the Triangle Angle Sum Theorem, a fundamental property of Euclidean (flat) geometry: the three interior angles of any triangle always sum to exactly 180°. This calculator relies on it to find the third angle whenever two angles are already known.
How do I know if my SSA input gives one, two, or zero solutions?
Enter your two sides and the angle opposite one of them into the SSA tab and click Calculate — the calculator automatically checks both candidate angles and shows every valid triangle it finds. If it finds none, it clearly states that no triangle is possible with those values.
What if my computed angle sum exceeds 180 degrees?
In AAS/ASA mode, if your two entered angles already add up to 180° or more, no valid triangle exists and the calculator will alert you, since the third angle would be zero or negative. In SSA mode, this same check is applied automatically to each of the two candidate angles.
Is the Law of Sines valid for right triangles?
Yes. The Law of Sines works for every triangle type — acute, right, and obtuse — since it is derived from the general relationship between a triangle's sides and the sines of its opposite angles, which holds regardless of angle size.
Can I use the Law of Sines for obtuse triangles?
Yes, the formula itself works identically for obtuse triangles. The only place obtuse angles complicate things is the SSA ambiguous case, where one of the two candidate angles (the supplement, 180° minus the reference angle) is always obtuse — and it only counts as a valid solution if the remaining angle is still positive.
Why might I get two different valid answers for the same inputs?
This only happens in the SSA (ambiguous case) mode. Because sin(θ) = sin(180° − θ), two different triangles — one with an acute angle B and one with its obtuse supplement — can both satisfy your given side and angle values. Both are mathematically valid unless one makes the angle sum exceed 180°.
How accurate are the results from this calculator?
Results are computed with full floating-point precision using standard trigonometric functions and displayed rounded to four decimal places. For most practical uses — construction, navigation, or homework — this level of precision is more than sufficient.
Learn More

Authoritative Resources on the Law of Sines

Trusted educational references to go deeper on solving triangles

Related Calculators

Explore other trigonometry and geometry tools