Law of Sines Calculator
Results
Formulas Used in Law of Sines Calculator
In-Depth Tutorial: Law of Sines Calculator
The Law of Sines (also called the Sine Rule) is one of the two universal triangle-solving tools in trigonometry — together with the Law of Cosines, the two laws cover every general triangle, not just right ones. The Law of Sines states that the ratio of a side's length to the sine of its opposite angle is the same for all three sides of any triangle. This tutorial walks through what the law says, when to use it (vs. the Law of Cosines), how to solve a triangle in each applicable case, and the infamous "ambiguous case" of SSA.
The statement of the law
For any triangle with sides a, b, c and the angles A, B, C opposite those sides:
a / sin(A) = b / sin(B) = c / sin(C)
Every ratio in this chain equals the same constant — geometrically, that constant is the diameter of the triangle's circumscribed circle (the unique circle passing through all three vertices). So a / sin(A) = 2R, where R is the circumradius. This gives a fourth, less-used form of the law:
a = 2R · sin(A), b = 2R · sin(B), c = 2R · sin(C)
When to use the Law of Sines
The Law of Sines applies whenever you have a matched side-angle pair — that is, a side and the angle opposite to it. You need that pair to set up the ratio. From there, you can find any other side if you know its opposite angle, or any angle if you know its opposite side.
Specifically:
- ASA (Angle-Side-Angle): two angles and the side between them. The third angle follows from A + B + C = 180°. Then Law of Sines gives the remaining two sides.
- AAS (Angle-Angle-Side): two angles and a side opposite one of them. Same approach.
- SSA (Side-Side-Angle): two sides and an angle opposite one of them. This is the ambiguous case — see below.
When to use the Law of Cosines instead: SSS (three sides) and SAS (two sides + included angle). In those cases, no side-angle pair is yet known, and the Law of Cosines is the correct entry point.
Worked example — ASA
Given A = 50°, B = 60°, and the side c between them = 12. Find the other two sides.
Third angle: C = 180° − 50° − 60° = 70°.
By the Law of Sines: a/sin(50°) = 12/sin(70°). Solve for a: a = 12 · sin(50°)/sin(70°) ≈ 12 · 0.766/0.940 ≈ 9.78.
Similarly: b = 12 · sin(60°)/sin(70°) ≈ 12 · 0.866/0.940 ≈ 11.06.
Worked example — AAS
Given A = 35°, B = 45°, a = 7. Find c.
By the Law of Sines: 7/sin(35°) = c/sin(C). First compute C: C = 180° − 35° − 45° = 100°. Then c = 7 · sin(100°)/sin(35°) ≈ 7 · 0.985/0.574 ≈ 12.02.
The ambiguous case — SSA
This is the most-asked-about scenario. Given two sides and the angle opposite one of them, there may be zero, one, or two valid triangles.
Setup: sides a and b given, angle A given (opposite side a). The Law of Sines gives sin(B) = b · sin(A) / a. There are three cases for the result:
- sin(B) > 1: impossible. No triangle exists. Side a is too short to "reach" the third vertex.
- sin(B) = 1: exactly one triangle, with B = 90°. The unique right-triangle case.
- sin(B) < 1: two candidate angles: B₁ = arcsin(sin(B)) (acute) and B₂ = 180° − B₁ (obtuse). Both might be valid — check whether A + B₂ < 180° in each candidate. If both A + B₁ < 180° AND A + B₂ < 180°, you have two valid triangles. If only one passes the check, you have one triangle.
This is exactly the SSA branch implemented in the Triangle Solver. When two solutions exist, both are reported with an "ambiguous_note" flag.
Worked example — SSA with two solutions
Given a = 6, b = 8, A = 35°. Find B.
sin(B) = 8 · sin(35°) / 6 = 8 · 0.5736 / 6 ≈ 0.7648.
B₁ = arcsin(0.7648) ≈ 49.886°. Acute candidate.
B₂ = 180° − 49.886° ≈ 130.114°. Obtuse candidate.
Check A + B for each: A + B₁ = 35° + 49.886° = 84.886° (less than 180°, valid). A + B₂ = 35° + 130.114° = 165.114° (also less than 180°, valid). Both are valid — two triangles exist with the given measurements.
The acute triangle has C = 180° − 84.886° = 95.114°. The obtuse triangle has C = 180° − 165.114° = 14.886°. The two triangles share sides a and b, share angle A, but differ in B and C and in the length of c.
The relationship to the circumcircle
The constant ratio a/sin(A) equals the diameter of the circumscribed circle. This gives a quick way to find the circumradius R = a / (2 sin(A)) once any side and its opposite angle are known.
Conversely, if a triangle is inscribed in a circle of known radius R, then for any vertex angle θ, the opposite chord (side) has length 2R · sin(θ). The Law of Sines is fundamentally a statement about circles, made via the Inscribed Angle Theorem.
Common mistakes
- Confusing sin(A) with A. The ratio a/sin(A) uses the SINE of the angle, not the angle itself. Forget to take the sine and your numbers will be nonsense.
- Mode mismatch (degrees vs radians). Our calculator expects degrees. If your textbook is in radians, convert. sin(60°) ≈ 0.866 but sin(60 radians) ≈ −0.305.
- Trying to use Law of Sines on SSS or SAS. Those cases have no known side-angle pair. Use Law of Cosines to get the first angle, then switch to Law of Sines.
- Ignoring the ambiguous case. When given SSA, always check whether two solutions exist. Many textbook problems expect both to be reported.
- Forgetting that AAA does not determine size. Three angles give shape but not scale. You always need at least one side.
Frequently Asked Questions – Law of Sines Calculator
Use it for AAS (2 angles + non-included side) and ASA (2 angles + included side). For SSS or SAS cases, use the Law of Cosines.
When you know two sides and a non-included angle, there may be zero, one, or two valid triangles. The calculator detects and reports all valid solutions.
Yes — three angles alone (AAA) only determine shape, not scale. At least one side is needed to find specific numerical lengths.
Yes. The sine rule (UK and Australian name) and the law of sines (US name) both say a / sin A = b / sin B = c / sin C.
For two sides and a non-included angle (SSA) it computes the unknown angle from the sine ratio. If its sine is above 1 there is no triangle; if both the angle and 180° minus it leave room for a third angle, it shows both triangles.
Once two sides and the angle between them are known, area = ½ab·sin C. The calculator finishes the triangle first, then reports its area and perimeter.
Yes — free and unlimited. AI Solve explains the full solution process using 3 credits.
Why a/sin(A) equals 2R — the law's geometric source
The constant ratio in a/sin(A) = b/sin(B) = c/sin(C) isn't a coincidence; it equals the diameter 2R of the triangle's circumscribed circle. The two-line proof comes from the inscribed angle theorem, and it's worth knowing because it explains why the law works at all.
Draw the triangle inscribed in its circumcircle. Pick any side — say side a opposite angle A — and consider the chord a in the circle. The inscribed angle theorem states that an inscribed angle subtending a chord equals half the central angle subtending the same chord. Specifically, the central angle for chord a is 2A, and the chord length is 2R·sin(A) (basic chord-length formula). Therefore a = 2R·sin(A), which rearranges to a/sin(A) = 2R. The same argument with sides b and c gives the chain.
This means the calculator is implicitly handing you the circumradius whenever you solve a triangle: R = a/(2·sin(A)). For practical use, that radius is exactly the distance from the triangle's circumcenter to each vertex — useful in mechanical drawing for laying out three points that all lie on a known circle, and in computer graphics for fitting a bounding circle to a triangle mesh.
The law extends to spherical geometry — and that's why navigators learned it
On a sphere, the "triangle" has sides that are arcs of great circles, measured in radians (as angular distances). The spherical Law of Sines reads:
sin(a)/sin(A) = sin(b)/sin(B) = sin(c)/sin(C)
Note the sines on both sides — the side lengths are angles too, so they get sined. For a small triangle relative to the sphere's radius, sin(a) ≈ a by Taylor expansion, and the spherical version reduces to the planar one. That's why the planar law works fine for triangles on Earth up to roughly hundreds of kilometers across.
Celestial navigation used this until GPS replaced it in the 1990s — given the angular altitudes of two stars above the horizon, the spherical Law of Sines plus a nautical almanac fixes your ship's position to within a few miles. Pilots still learn the spherical Law of Sines because backup celestial techniques are still part of long-haul flight training in case GPS fails. Spherical trigonometry has a hyperbolic analog too — sinh(a)/sin(A) = sinh(b)/sin(B) = sinh(c)/sin(C) for triangles on a hyperbolic plane — but you'd only encounter that in non-Euclidean geometry coursework or general relativity.
Geometric intuition and edge cases the basic FAQ skips
What does the ambiguous case look like geometrically?
Picture trying to construct a triangle given side a, side b, and angle A opposite a. Draw side b as a horizontal segment, place angle A at one end, and draw a ray from that endpoint at angle A above horizontal — that ray is where the third vertex must lie. Now from the other end of side b, swing an arc of radius a. The third vertex sits at the intersection of the ray and the arc. Depending on lengths, the arc can miss the ray entirely (no triangle), touch it tangentially (one right triangle), or cross it twice (two triangles). The SSA ambiguity isn't an algebraic artifact — it's a real geometric fact about how arcs and rays can meet.
When does the Law of Sines lose numerical precision?
Two situations. First, when an angle is close to 0° or 180°, its sine is close to zero, so dividing by sin(angle) amplifies any input error. A 0.01° measurement error on a 0.5° angle is a 2% error in the answer; the same error on a 60° angle is invisible. Second, in SSA cases where b·sin(A)/a is very close to 1, the two ambiguous-case solutions converge — and which side of 1 the value lands on depends on the last decimal place of your input. For SSA problems near the right-angle boundary, double-check whether your inputs really specify the case you think they do, or compute the triangle two different ways (e.g., also via Law of Cosines once you have one extra value) to verify.
How is this law actually used in surveying?
The classical method is "triangulation from a baseline." Surveyors measure one short baseline very accurately (e.g., 100 m with a calibrated tape), then sight a distant target from each end of the baseline and record the two angles. They now have two angles and the included side — ASA — which the Law of Sines solves in one step to give the distances from each baseline endpoint to the target. Repeating this from new baselines extends the survey across arbitrary terrain. The entire 19th-century mapping of India (the Great Trigonometrical Survey) was built on chained ASA triangulation, and the original survey produced the first accurate height of Mount Everest in 1856.
If I only have two angles, why can't the calculator give numerical sides?
Because two angles determine the triangle's shape but not its scale. A triangle with angles 30°, 60°, 90° is a fixed shape, but it can be drawn at any size — a tiny version inside a notebook and a kilometer-wide version outside both have the same angles. Without at least one side length, every side length scales freely. The third angle is determined (sum to 180°), but no numerical answer for sides is possible. This is why SSS, SAS, AAS, ASA, and SSA work but AAA does not.