Law of Sines Calculator
Solve triangles with the law of sines. Feed in two angles and a side, or handle the tricky SSA ambiguous case, and see every proportion worked out step by step.
The law of sines states that each side divided by the sine of its opposite angle gives the same number. In the SSA case that number can describe zero, one, or two different triangles, and this calculator checks all of them.
When a triangle hands you angles instead of sides, the law of cosines is the wrong tool for the job. The law of sines takes over: it says that each side divided by the sine of its opposite angle gives the same constant, which lets you hop between known and unknown parts with simple proportions. The Law of Sines Calculator runs those proportions for you in both standard configurations.
Feed it two angles and a side, and it completes the triangle. Feed it the trickier SSA combination of two sides and a non-included angle, and it carefully checks the famous ambiguous case, reporting zero, one, or two valid triangles with the reasoning shown.
This guide explains the proportion at the heart of the law, walks through both modes, works four examples including a full ambiguous-case analysis, and answers the fifteen questions that come up most often.
What Does the Law of Sines Calculator Do?
The Law of Sines Calculator applies the relation a/sin(A) = b/sin(B) = c/sin(C) to solve triangles. In AAS mode you enter angles A and B plus side a, and it returns angle C, sides b and c, and the perimeter, with each proportion worked out.
In SSA mode you enter sides a and b plus angle A, and it evaluates the ambiguous case: computing sin(B), testing whether solutions exist, and listing every valid triangle with its angles and third side. A warning banner appears whenever two different triangles fit your numbers.
How to Use the Law of Sines Calculator
Choose your case with the selector buttons. For AAS, type the two known angles and the side opposite angle A into the three boxes. For SSA, type the two known sides and the angle opposite side a.
Press Calculate. The AAS panel shows the solved triangle immediately; the SSA panel shows a solution count first, then each valid triangle’s angles and missing side. The steps panel traces the key proportion in both modes. Reset clears the form.
The Proportion That Powers Everything
The law of sines says that in any triangle, a/sin(A) = b/sin(B) = c/sin(C) = 2R, where R is the circumradius. Every side is proportional to the sine of its opposite angle, with the same constant of proportionality throughout the triangle.
This single fact is why one side-angle pair unlocks the rest: once you know a and A, the common value a/sin(A) is fixed, and every other side is that value times the sine of its angle. The calculator exploits this relentlessly in AAS mode.
There is a geometric reason the constant equals twice the circumradius. Each side is a chord of the triangle’s circumcircle, and the chord length formula gives exactly side = 2R·sin(opposite angle). The law of sines is therefore a statement about circles disguised as a statement about triangles.
Solving With Two Angles and a Side
The AAS case is the friendly one. Two angles determine the third immediately, since angles sum to 180°, and then each unknown side follows from one proportion each. There is exactly one triangle, no ambiguity, no drama.
Enter the side opposite angle A carefully, because the whole solution pivots on that pairing. Swapping which side you call a silently reassigns every answer, so label your triangle on paper first.
The ASA configuration, two angles with the side between them, reduces to AAS the moment you compute the third angle, so the same mode handles it. Enter any two angles and any one side and the calculator sorts out the rest.
Worked Example: Completing an AAS Triangle
Take A = 40°, B = 60°, and a = 8, the calculator’s default AAS setup.
First: find the third angle. C = 180° − 40° − 60° = 80°.
Then: solve for b. b = a·sin(B)/sin(A) = 8 × sin(60°)/sin(40°) ≈ 10.7784.
Next: solve for c. c = 8 × sin(80°)/sin(40°) ≈ 12.2567.
Answer: b ≈ 10.7784, c ≈ 12.2567, with the longest side opposite the largest angle, exactly as expected.
Worked Example: A Clean Single SSA Solution
Take a = 13, b = 10, and A = 40°. Here the side opposite the known angle is the longer one, which usually forces a single solution.
First: sin(B) = b·sin(A)/a = 10 × sin(40°)/13 ≈ 0.4945.
Then: B ≈ 29.61° is the acute candidate, and the obtuse candidate 150.39° fails because 40° + 150.39° exceeds 180°.
Next: C = 180° − 40° − 29.61° = 110.39°, and c = 13 × sin(110.39°)/sin(40°) ≈ 18.95.
Answer: one triangle with B ≈ 29.61°, C ≈ 110.39°, c ≈ 18.95.
Worked Example: The Full Ambiguous Case
Take a = 10, b = 14, and A = 30°, the calculator’s default SSA setup, where the known side is shorter than the other given side.
First: sin(B) = 14 × sin(30°)/10 = 14 × 0.5/10 = 0.7.
Then: the acute candidate is B ≈ 44.43°, and the obtuse candidate is 180° − 44.43° = 135.57°.
Next: check both against the angle budget. 30° + 44.43° = 74.43° fits, and 30° + 135.57° = 165.57° also fits.
Answer: two valid triangles. Solution 1 has B ≈ 44.43°, C ≈ 105.57°, c ≈ 19.28; solution 2 has B ≈ 135.57°, C ≈ 14.43°, c ≈ 4.98.
Worked Example: When No Triangle Exists
Take a = 5, b = 14, and A = 30°. The side opposite the known angle is now far too short to reach across.
First: sin(B) = 14 × 0.5/5 = 1.4.
Then: no angle has a sine above 1, so the calculation stops.
Answer: no triangle exists. Geometrically, side a dangles short of the base no matter how it swings.
Reading the Ambiguous-Case Warning
When two triangles fit, the calculator shows both solutions side by side with an amber warning banner. Neither solution is more correct; the given information genuinely describes two different triangles, and only extra context can pick between them.
In surveying or navigation problems, that extra context is usually obvious: the target is to the left, the angle looks acute in the field sketch, or one solution places a point in the ocean. Always bring the physical situation back into the decision.
Why SSA Is Ambiguous but SAS Is Not
The ambiguity comes from the sine function’s symmetry: sin(θ) equals sin(180° − θ), so a computed sine value points to two candidate angles. Whether both survive depends on the 180° angle budget.
SAS configurations never suffer this because the law of cosines uses the cosine, which is one-to-one on 0° to 180°, and the included angle pins the shape uniquely. If your problem can be reframed with an included angle, the ambiguity disappears.
Common Law of Sines Mistakes
The top mistake is pairing a side with the wrong angle in the proportion, which scrambles every downstream answer. The second is forgetting the obtuse candidate in SSA mode and reporting only the acute angle the calculator’s arcsine suggests first.
The third is entering angles in radians while the tool expects degrees, and the fourth is treating an SSA answer as final without checking whether the problem’s context selects one of the two solutions. Label first, compute second, interpret third.
Where the Law of Sines Is Useful
Surveyors use it to triangulate positions from angle measurements, which are often easier to take than distances. Navigators fix positions from bearings, astronomers estimate distances from parallax angles, and engineers analyze forces in trusses where angles are the natural measurements.
It also underpins the ambiguous-case reasoning taught in every trigonometry course, making it the classic example of why a calculation can be correct yet incomplete without interpretation.
Modern applications keep appearing. Computer vision systems estimate object distances from viewing angles, and wireless engineers triangulate transmitter positions from signal bearings. Anywhere angles are cheaper to measure than lengths, the law of sines converts them into distances.
How to Interpret Your Result Correctly
In AAS mode, verify the angle sum and confirm the side ordering matches the angle ordering. In SSA mode, start from the solution count: zero means recheck your measurements, one means proceed, and two means consult the physical context before choosing.
Then read the steps panel to confirm the sin(B) value and the candidate angles. The arithmetic is simple enough to verify by hand, and doing so builds the judgment the ambiguous case demands.
Make the obtuse-supplement check a reflex: every time an arcsine hands you an acute angle in an SSA problem, ask whether 180° minus that angle also fits. That single habit eliminates the most common SSA error entirely.
Frequently Asked Questions
1. What is the law of sines?
It states that a/sin(A) = b/sin(B) = c/sin(C) for any triangle: each side divided by the sine of its opposite angle equals the same constant. It lets you solve triangles when angles are among the knowns, and that shared constant equals twice the triangle’s circumradius.
2. When do I use the law of sines instead of the law of cosines?
Use the law of sines for AAS, ASA, and SSA configurations, where at least one angle-side opposite pair is known. Use the law of cosines for SAS and SSS, where sides dominate the knowns.
3. What is the ambiguous case?
In the SSA configuration, the computed sin(B) can correspond to two different angles, acute and obtuse, and both may fit the 180° budget. When they do, two distinct triangles satisfy the given measurements.
4. How does the calculator handle two solutions?
It lists both triangles with their angles and missing sides, and shows an amber warning banner explaining that the ambiguous case produced two valid answers. It never silently picks one.
5. Why can there be no solution at all?
When b·sin(A)/a exceeds 1, no angle has the required sine, which means side a is too short to complete the triangle. The calculator reports this directly instead of producing a nonsense angle.
6. What does sin(B) = 0.7 tell me?
That angle B could be about 44.43° or about 135.57°, since both have sine 0.7. Each candidate must then be tested against the remaining angle budget with angle A.
7. Which SSA solution do I pick?
The one that matches your physical situation: a field sketch, a known direction, or an additional measurement. The mathematics alone cannot decide, so bring context to the choice.
8. Can I solve a triangle with three angles only?
No. Angles alone determine the shape but not the size; you get a family of similar triangles. At least one side length is required to pin down the scale.
9. Why must angles A and B add to less than 180°?
Because the third angle needs a positive share of the 180° total. The calculator rejects angle pairs that leave nothing for angle C.
10. Does the calculator use degrees or radians?
Degrees throughout. Type angles in degrees and read answers in degrees. Convert radian measurements by multiplying by 180/π before entering them.
11. What units do the sides use?
Whatever length unit you choose, applied consistently to every side. The answers return in the same unit.
12. How is the perimeter computed?
By adding the three side lengths once all are known. In SSA mode each valid triangle gets its own implied perimeter from its own third side.
13. Can the law of sines find an angle directly?
Yes: rearrange to sin(B) = b·sin(A)/a and apply arcsine. Just remember the arcsine returns the acute candidate, so check the obtuse supplement in SSA problems.
14. Why does side a matter so much in SSA mode?
Because a is opposite the known angle, its length relative to b decides the case: much shorter means no triangle, comparable means possibly two, and longer than b usually means exactly one.
15. How do I verify an SSA answer by hand?
Recompute sin(B) = b·sin(A)/a, list both candidate angles, test each against the 180° budget, and solve for the third side in each surviving case. Matching the calculator’s solutions confirms your work and sharpens your instincts for the next ambiguous case.