If you need to work out the missing sides or angles in a triangle that doesn’t have a right angle, the Law of Sines gives you a straightforward method—as long as you have at least one matching side and angle pair, plus another side or angle. This calculator is designed to handle any case where that’s possible, such as AAS, ASA, and SSA setups. It comes in handy in land surveying, navigation, structural layouts, and robotic positioning—any job where you can’t measure everything directly but can get some angles and a distance or two. Below you’ll find the formulas, a sample problem, background, and some common real-world questions.
What is the Law of Sines?
The Law of Sines connects the sides and angles in any triangle: the length of each side divided by the sine of its opposite angle gives the same result no matter which side you pick. This lets you calculate unknown lengths or angles once you have a matching side and angle, plus at least one more piece of information.
Simple Explanation
It’s basically a proportional rule—make the angle bigger, and its opposite side must get longer to keep the proportion true. If you know two angles and a side, you can always find the rest. This works for any triangle, not just right-angled ones, so it’s more versatile than the old SOHCAHTOA approach.
📐 Browse all 1000+ Interactive Calculators
Table of Contents
Triangle Diagram
Law of Sines Calculator
How to Use This Calculator
This calculator is intended for education, concept evaluation, and preliminary design. Results are based on the equations and assumptions described on this page, but cannot account for every real-world load case, tolerance, material property, environmental condition, installation detail, safety factor, code, or regulatory requirement. Verify all inputs, assumptions, units, and results independently before selecting components or using the result in a real application. Safety-critical, structural, medical, lifting, transportation, or regulated applications must be reviewed by a qualified engineer.
- Select your calculation mode from the dropdown — choose the combination that matches your known values (e.g., ASA, AAS, SSA).
- Enter your known angle values in degrees into the angle input fields that appear.
- Enter your known side length(s) into the side input fields shown for your selected mode.
- Click Calculate to see your result.
Law of Sines Interactive Visualizer
Explore how the Law of Sines relates triangle sides and angles through dynamic visualization. Adjust angles and see how the proportional relationships maintain the formula a/sin(A) = b/sin(B) = c/sin(C) in real-time.
ANGLE C
80°
SIDE B
94.4
SIDE C
107.2
FIRGELLI Automations — Interactive Engineering Calculators
Law of Sines Equations
Primary Law of Sines Formula
Use the formula below to calculate the proportional relationship between sides and angles in any triangle.
Where:
- a, b, c = lengths of the sides of the triangle (any consistent units: meters, feet, kilometers, etc.)
- A, B, C = measures of the angles opposite to sides a, b, and c respectively (degrees or radians)
Solving for Unknown Side
Use the formula below to calculate an unknown side when 2 angles and 1 side are known.
When angle A, side b, and angle B are known, this rearrangement directly yields side a. Similar rearrangements apply for finding sides b or c.
Solving for Unknown Angle
Use the formula below to calculate an unknown angle from 2 known sides and 1 known angle.
A = arcsin(a × sin(B) / b)
When sides a and b, and angle B are known, this equation yields angle A. Note that the inverse sine function may produce ambiguous solutions in certain SSA (Side-Side-Angle) configurations.
Angle Sum Property
Use the formula below to calculate the third angle once 2 angles are known.
The sum of interior angles in any triangle always equals 180 degrees (or π radians). This property is frequently combined with the Law of Sines to determine the third angle when two angles are known.
Simple Example
Mode: AAS — Angle A = 40°, Angle B = 60°, Side a = 7 units.
Angle C = 180° − 40° − 60° = 80°
Side b = 7 × sin(60°) / sin(40°) = 7 × 0.8660 / 0.6428 = 9.44 units
Side c = 7 × sin(80°) / sin(40°) = 7 × 0.9848 / 0.6428 = 10.72 units
Theory & Engineering Applications
If you’re working with triangles that aren’t right-angled, the Law of Sines is often the simplest way to get missing measurements—especially when you’ve got one side/angle pair and at least one other piece. Unlike the Law of Cosines, which is better suited to cases where you know all three sides or two sides with the angle between them, the Law of Sines fits best when you measure angles more easily than lengths in the field. This is why it shows up a lot in surveying and navigation, where direct length measurement isn’t always practical.
Mathematical Foundation and Derivation
The Law of Sines comes from the geometry of triangles inscribed in a circle. For triangle ABC inside a circle of radius R, the Law states that a/sin(A) = b/sin(B) = c/sin(C) = 2R. You can prove this by dropping perpendiculars to break the triangle up into right triangles and working out the relationships. What matters practically is that every side and its opposite angle are linked in a completely symmetric way, and you can use whichever pair you measure to solve for the others. If the sine of an angle is nearly zero, you’re trying to solve a triangle that’s basically a straight line—so the method fails. Being alert to that helps avoid issues with nearly collinear setups—like when you’re surveying over long distances and the measured angles are tiny.
The Ambiguous Case: SSA Configuration
One of the main things to watch for with the Law of Sines is the ambiguous case—this comes up when you know two sides and an angle that’s not between them (the SSA case). Depending on the actual numbers, you might get two triangles that fit the same measurements, just one, or none at all. The root of the issue is that the sine function gives the same value for an angle or its supplement (180° minus the angle). In practice, if your angle is acute and the side opposite is shorter than the other given side, you get two possible triangles. You need something extra—like physical layout, direction of travel, or application limits—to know which one fits your real problem.
This ambiguity only shows up in certain SSA setups, especially if your known angle is less than 90° and its opposite side is shorter than the adjacent known side. Picture the possible triangles: sometimes you can make two, or just one, or none depending on whether the perpendicular from the vertex lands inside, on, or beyond the base. Navigation, robotics, or surveying systems need checks to weed out impossible cases based on what’s actually possible in their context.
Computational Considerations and Numerical Stability
Calculation-wise, the Law of Sines is stable as long as none of your angles is close to 0° or 180°. If you’re working with very small angles, even slight measurement or rounding errors can have a big impact on your calculated sides. In large-scale surveying, this can matter—a small angle error might multiply into a sizable length error, especially when your angles get down below 10°. If you need to account for this, use sensitivity analysis or error propagation methods so your results aren’t misleading. For precision work, a general rule is that the smaller the angle, the more careful you need to be about errors.
In professional projects, you may want to use interval arithmetic or run a Monte Carlo simulation with your typical measurement errors to see how much the results can vary. A small change in an angle—say, 0.01° in an angle of 5°—can lead to differences of a couple tenths of a percent in your side lengths. That degree of variation matters if your job tolerances are tight or your measurements are over long distances.
Engineering Applications Across Disciplines
Civil Engineering and Surveying: Surveyors rely on the Law of Sines in triangulation networks when direct measurement between control points isn’t feasible. Angles are measured from known points to targets, and a single distance (“baseline”) lets them resolve everything else. Even with modern GPS, ground-based triangulation is still useful for local precision or as a cross-check for satellite data.
Aerospace and Navigation: Aircraft and ships use angle measurements between ground stations or lighthouses with known separation to pinpoint location. The two (or more) angle readings and the station separation form a triangle: the Law of Sines gives the vessel’s distance from each station. The key in these setups is speed and real-time calculation, since position updates may need to happen multiple times per second in flight or when maneuvering at sea.
Structural Analysis: When designers need to calculate truss or roof member lengths based on specified angles and one span, the Law of Sines is a quick way to get precise figures for shop fabrication—avoiding the need for trial cuts. Even a small angular error (like half a degree over a 15m truss) can add up to over 10 cm mistake in member length, which is enough to cause problems in assembly or structural performance.
Robotics and Machine Vision: In robotics, arms often make closed triangles as they move. Calculating end-effector position from joint angles means solving for unknown triangle sides/angles, which is exactly the Law of Sines’ job. Similarly, stereo vision systems estimating range to objects use known baseline separation and measured angle data, reducing complex 3D problems back to triangles you can solve with this law, making calculations more straightforward and less computationally heavy than alternatives.
Worked Example: Land Surveying Application
If you need to measure a distance across, say, a river and can’t cross, you can set points on your side, measure a baseline and two angles, and compute the unknown distances. For example, suppose you measure a baseline AB = 235.7 m, angle at A = 47.38°, and angle at B = 68.25° (theodolite precision ±20 arc seconds). Then:
Step 1: Find angle C.
Angle C = 180° - 47.38° - 68.25° = 64.37°
Step 2: Find distance BC (side a):
a / sin(A) = c / sin(C)
a = 235.7 × sin(47.38°) / sin(64.37°)
a = 235.7 × 0.7357 / 0.9015 ≈ 192.36 m
Step 3: Find distance AC (side b):
b = 235.7 × sin(68.25°) / sin(64.37°)
b = 235.7 × 0.9298 / 0.9015 ≈ 243.10 m
Step 4: Check that all side/sine ratios are equal.
192.36 / 0.7357 = 261.47
243.10 / 0.9298 = 261.47
235.7 / 0.9015 = 261.47
The numbers line up as expected, so the calculation is sound. Using just angles and a baseline, you get distances to an inaccessible point with uncertainty around ±0.1 m, given the instrument’s precision—well within survey requirements for property boundaries or construction controls. The same process applies for offshore work, difficult terrain, or any time you must measure around physical obstacles.
For other triangle-solving jobs or more calculation tools, see our engineering calculators library.
Practical Applications
Scenario: Marine Navigation Emergency
If GPS is down, a ship can use the Law of Sines on radar bearings to known points (like lighthouses) with a known separation between them. For example: bearings of 32.5° and 71.3°, separation 8.7 nmi, gives two angles and a side—enough to solve for distances to shore. This method is still used as backup navigation when electronics are unreliable, since it’s quick and doesn’t require fancy gear.
Scenario: Architectural Renovation Challenge
In building renovations, you often need to work out lengths and angles without taking things apart. If you measure angles at the roof peak and wall and know the wall-to-wall span, you can plug these into the calculator to find the necessary roof member length and cutting angle. This helps pre-plan your cuts, save material, and avoid sending someone onto a fragile roof to “fit and see.”
Scenario: Wildfire Monitoring and Evacuation Planning
Fire crews use the Law of Sines with sighting angles from two towers to pinpoint wildfire location from a distance, using separation and angle data. The result—distances to each tower—helps decide when to evacuate roads or neighborhoods, based on when the fire will reach key points. The calculation needs just a few site measurements and can be updated quickly in the field as the situation changes.
Frequently Asked Questions
▼ When should I use the Law of Sines instead of the Law of Cosines?
▼ What is the ambiguous case and how do I handle it in real applications?
▼ How does measurement precision affect Law of Sines calculations?
▼ Can the Law of Sines be used for three-dimensional problems?
▼ Why does my calculator show "no valid triangle" for certain inputs?
▼ How accurate are Law of Sines calculations compared to direct measurement?
Free Engineering Calculators
Explore our complete library of free engineering and physics calculators.
Browse All Calculators →🔗 Explore More Free Engineering Calculators
About the Author
Robbie Dickson — Chief Engineer & Founder, FIRGELLI Automations
Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.
📹 Video Walkthrough — Law Of Sines Interactive Calculator
📹 Video Walkthrough — Law Of Sines Interactive Calculator
Need to implement these calculations?
Explore the precision-engineered motion control solutions used by top engineers.
