Law of Sines Calculator
Solve triangles using the law of sines (a/sinA = b/sinB = c/sinC). Handles the ambiguous SSA case with step-by-step solutions for each possibility.
The law of sines states that in any triangle, each side divided by the sine of its opposite angle gives the same ratio: a/sin(A) = b/sin(B) = c/sin(C). Enter at least one side-angle pair plus one more value and this calculator finds every remaining side and angle, including both triangles when the SSA configuration is ambiguous.
About Law of Sines Calculator
The Law of Sines Formula
The full statement of the law of sines is a/sin(A) = b/sin(B) = c/sin(C) = 2R, where R is the circumradius (radius of the circumscribed circle). Every triangle obeys this ratio, not just right triangles.
a/sin(A) = b/sin(B) = c/sin(C) = 2R
The rule was published in the form we use today by the Persian mathematician Abu Mahmud al-Khujandi in the tenth century, later refined by Nasir al-Din al-Tusi's Treatise on the Quadrilateral (around 1260 AD), which is generally credited as the first systematic treatment of plane and spherical trigonometry separate from astronomy. Regiomontanus published the Latin version in Europe in 1464, which is how it entered Western textbooks. The formula works because the ratio of each side to the sine of its opposite angle equals the diameter of the triangle's circumscribed circle, a result known as the extended law of sines.
When Should You Use the Law of Sines?
Use the law of sines whenever you have at least one side paired with its opposite angle plus one other piece of information. It is the fastest route for AAS, ASA, and SSA triangles. For SAS and SSS triangles, the law of cosines is the correct tool because you do not have a side-angle pair to start the ratio.
| Known Information | Case Name | Use Law of Sines? |
|---|---|---|
| Two angles + any side | AAS or ASA | Yes - one solution, straightforward |
| Two sides + non-included angle | SSA | Yes - but check for the ambiguous case |
| Two sides + included angle | SAS | No - use law of cosines |
| Three sides | SSS | No - use law of cosines |
| Right triangle with one side + one acute angle | Right SAS | Works, but SOHCAHTOA is faster |
Worked Example: AAS Case
For AAS, find the third angle first, then apply the ratio twice to find the missing sides. Given A = 40°, B = 60°, a = 10:
- Find angle C: C = 180° - 40° - 60° = 80°
- Set up the ratio: 10/sin(40°) = b/sin(60°) = c/sin(80°)
- Calculate the common ratio: 10/sin(40°) = 10/0.6428 = 15.557
- Find b: b = 15.557 × sin(60°) = 15.557 × 0.8660 = 13.47
- Find c: c = 15.557 × sin(80°) = 15.557 × 0.9848 = 15.32
Verify: 10/sin(40°) = 13.47/sin(60°) = 15.32/sin(80°) ≈ 15.557. All three ratios match, so the triangle is consistent.
What Is the Ambiguous Case (SSA)?
The ambiguous case is the SSA configuration - two sides and a non-included angle - and it can produce zero, one, or two valid triangles depending on how the numbers line up. This is why SSA is flagged in every trigonometry textbook as the scenario that trips students up.
Given side a, side b, and angle A (where A is opposite side a), the number of solutions follows from how far side a can swing from the end of side b:
| Condition | Solutions | Explanation |
|---|---|---|
| a < b × sin(A) | 0 | Side a is too short to close the triangle |
| a = b × sin(A) | 1 | Side a exactly reaches - creates a right triangle |
| b × sin(A) < a < b | 2 | Side a can swing to two valid positions |
| a ≥ b | 1 | Only one triangle is possible |
| A ≥ 90° and a ≤ b | 0 | An obtuse-angle SSA with the shorter side opposite cannot close |
Worked example (two solutions): a = 8, b = 12, A = 30°. Since b × sin(A) = 12 × 0.5 = 6 and 6 < 8 < 12, we are in the two-solution band.
- sin(B) = b × sin(A) / a = 12 × sin(30°) / 8 = 12 × 0.5 / 8 = 0.75
- B could be arcsin(0.75) = 48.59° (acute) or 180° - 48.59° = 131.41° (obtuse), because sine is positive in both the first and second quadrants
- Solution 1: B = 48.59°, C = 180° - 30° - 48.59° = 101.41°, c = 8 × sin(101.41°)/sin(30°) = 15.68
- Solution 2: B = 131.41°, C = 180° - 30° - 131.41° = 18.59°, c = 8 × sin(18.59°)/sin(30°) = 5.10
Both triangles satisfy the original three pieces of data, so both are correct unless the problem statement rules one out (for example, by telling you the triangle is obtuse or that a specific side is the longest).
Law of Sines vs Law of Cosines
The law of sines is lighter algebra but can be ambiguous; the law of cosines is heavier algebra but always unambiguous. Pick based on what you are given, not preference.
| Property | Law of Sines | Law of Cosines |
|---|---|---|
| Formula | a/sin(A) = b/sin(B) | c² = a² + b² - 2ab cos(C) |
| Best for | AAS, ASA, SSA | SAS, SSS |
| Complexity | Simpler algebra | More computation |
| Ambiguity risk | Yes (SSA case) | No ambiguity |
| Handles obtuse angles | Yes, but requires care | Yes, cos gives correct sign automatically |
| Reduces to Pythagorean theorem | No | Yes, when C = 90° |
Most exam problems that let you choose either method give faster working with the law of sines. Problems that start with three sides or two sides and the angle between them force you into the law of cosines. For those, our law of cosines calculator produces the same style of step-by-step working.
Finding Triangle Area with the Law of Sines
Once two sides and the angle between them are known, the area of the triangle is (1/2) × a × b × sin(C). This "SAS area" formula is a direct consequence of the sine ratio and works for any triangle, not just right triangles.
Area = (1/2) × a × b × sin(C)
For a triangle with a = 7, b = 9, C = 50°: Area = 0.5 × 7 × 9 × sin(50°) = 31.5 × 0.766 = 24.13 square units. If instead you know all three sides, Heron's formula gives the area directly, and the triangle calculator applies it automatically along with perimeter, inradius, and circumradius.
Common Mistakes to Avoid
The law of sines is simple to write but easy to misapply. These are the errors that come up most often in university tutor data and online homework help forums:
- Pairing the wrong side and angle. Angle A must be opposite side a, not adjacent to it. Double-check labels before plugging in.
- Forgetting the obtuse solution in SSA. When you take arcsin, your calculator only returns the acute answer. Always check 180° minus that value to see if the obtuse triangle is also valid.
- Using degrees in a calculator set to radians (or vice versa). sin(30) in radian mode is -0.988, not 0.5. Always confirm the mode before starting.
- Treating SSA as always having two answers. The two-solution case only happens in the narrow band where b × sin(A) < a < b. For a ≥ b, only one triangle exists.
- Reporting negative side lengths. If your arithmetic produces a negative side, you have rounded too aggressively or entered data that does not form a valid triangle.
- Mixing SI and imperial units. The law of sines is unit-agnostic, but only if every side uses the same unit. Convert first with the length converter if your data is mixed.
Where the Law of Sines Shows Up in the Real World
The law of sines is not just an exam topic. Surveyors use it for triangulation to measure inaccessible distances; astronomers used it for centuries to work out star positions; navigators use it in celestial and coastal piloting; and modern GPS receivers rely on a spherical variant for position fixing. The US Federal Highway Administration's Surveying and Mapping Manual (FHWA, 2022) still lists plane-table triangulation among the techniques used in preliminary route surveys, and the UK Ordnance Survey's historical triangulation of Britain (retriangulation 1935-1962) used the same formula applied to every trig pillar. Engineering statics problems that involve non-right force triangles also use the law of sines directly, and it crops up again in structural analysis whenever three members meet at a joint and you need to find internal forces from the equilibrium angle diagram.
In computer graphics, inverse kinematics for two-bone chains - a forearm reaching toward a target, say - reduces to an SSA problem where the two bone lengths are known and the target direction gives one angle; the law of sines solves the joint angles in closed form without any iterative solver. Game engines including Unity and Unreal ship with this exact routine in their animation rigging toolkits. Architects and carpenters use the rule to calculate rafter lengths on hip roofs where the plan angle between rafters is something other than 90°. Acoustic engineers use a three-microphone variant (time-difference-of-arrival triangulation) to locate gunshot or thunder sources, again reducing to SSA with the extra constraint that the direction must be physically plausible. Whenever a triangle is not a right triangle and at least one side-angle pair is known, the law of sines is almost always the shortest route to an answer.
Sources
- Wikipedia - Law of Sines (history and extended form)
- Wolfram MathWorld - Law of Sines derivation and circumradius identity
- Khan Academy - Law of Sines reference
- Encyclopedia Britannica - Nasir al-Din al-Tusi and early trigonometry
- US Federal Highway Administration - Geotechnical and surveying references
- Ordnance Survey - Retriangulation of Great Britain
All calculations run in your browser. No data is sent to any server.
Frequently Asked Questions
What is the law of sines?
The law of sines states that in any triangle, each side divided by the sine of its opposite angle gives the same ratio: a/sin(A) = b/sin(B) = c/sin(C). It is used to solve triangles when you know some sides and angles.
When can I use the law of sines?
Use it when you have AAS (two angles and a non-included side), ASA (two angles and the included side), or SSA (two sides and a non-included angle). For SSS or SAS problems, the law of cosines is usually better.
What is the ambiguous case?
The ambiguous case occurs with SSA (two sides and an angle not between them). There may be zero, one, or two valid triangles. This calculator checks both possibilities and shows all valid solutions.
How do I know which angle is opposite which side?
Angle A is opposite side a, angle B is opposite side b, and angle C is opposite side c. The angle and its opposite side are always across the triangle from each other.
Can the law of sines give no solution?
Yes. If the sine value you compute is greater than 1, no valid triangle exists. This typically happens in SSA cases where the given side is too short to reach the other side at the given angle.
Related Tools
Link to this tool
Copy this HTML to link to this tool from your website or blog.
<a href="https://toolboxkit.io/tools/law-of-sines-calculator/" title="Law of Sines Calculator - Free Online Tool">Try Law of Sines Calculator on ToolboxKit.io</a>