Law of Sines Calculator
Enter two angles and one side to solve the triangle using the law of sines: a/sin(A) = b/sin(B) = c/sin(C). Finds all missing sides and angles.
The Law of Sines is a foundational equation in trigonometry that relates each side of a triangle to the sine of the opposite angle. Written compactly: a/sin(A) = b/sin(B) = c/sin(C). This elegant formula works for any triangle — not just right triangles — making it indispensable for surveying, navigation, astronomy, and engineering.
The Law of Sines complements the Law of Cosines. Together they solve any triangle: - **AAS / ASA**: Law of Sines (two angles plus one side). - **SSS / SAS**: Law of Cosines (three sides or two sides plus included angle). - **SSA**: Law of Sines, but with the famous "ambiguous case" — possibly 0, 1, or 2 triangles.
The common ratio a/sin(A) has a beautiful geometric interpretation: it equals 2R, where R is the circumradius (radius of the circle passing through all three vertices). This connects triangle geometry to circles in a deep way.
Historical context: the Law of Sines was used by Indian astronomers as early as the 9th century, formalized by Persian mathematician Nasir al-Din al-Tusi in the 13th century, and widely adopted in European mathematics during the Renaissance. Today it's a standard tool in any trigonometry course and any field that deals with non-right triangles.
Common applications: surveying (triangulating positions), navigation (sextant-based positioning), astronomy (stellar parallax), engineering (truss analysis), architecture (roof and structural angles), and any geometry involving oblique triangles.
Inputs
Results
Side a
10
Side b
13.473
Side c
15.3209
Angle A
40°
Angle B
60°
Angle C
80°
Area
66.3414 sq units
Perimeter
38.7939
Formula
How to use this calculator
- Choose AAS (2 angles + non-included side) or ASA (2 angles + included side).
- Enter two angles in degrees.
- Enter the known side.
- Calculator returns the third angle and the two unknown sides.
- For SSA case: check both possible answers (ambiguous).
- Triangle sum: third angle = 180° − sum of two known angles.
Worked examples
Surveying triangulation
**Scenario:** Two surveyors 500 m apart on a road. Each measures angle to a tree across the field: 55° and 70° respectively. **Calculation:** Third angle = 180 - 55 - 70 = 55°. Distance from first surveyor to tree: 500 × sin(70°)/sin(55°) = 500 × 0.940/0.819 ≈ 574 m. From second: 500 × sin(55°)/sin(55°) = 500 m. **Result:** Tree is ~574 m and ~500 m from the two stakes. Standard triangulation — used in surveying, navigation, GPS systems.
Truss analysis
**Scenario:** Roof truss with apex angle 60° and base angles 60° each. Vertical members from apex span 4 m base. Length of side rafters? **Calculation:** Triangle: angles 60°, 60°, 60° = equilateral. Side rafters = base = 4 m. **Result:** Equilateral triangle, all sides 4 m. Simple symmetric case. More complex trusses use different angles requiring Law of Sines or Cosines for analysis.
Ambiguous SSA case
**Scenario:** Two sides given (a=8, b=10) and angle A=40° opposite side a. Find B. **Calculation:** sin(B) = (10/8) × sin(40°) = 1.25 × 0.643 = 0.804. B = arcsin(0.804) ≈ 53.5° OR 180-53.5 = 126.5°. **Result:** Two possible triangles: B ≈ 53.5° (acute) or B ≈ 126.5° (obtuse). Check each: 40 + 53.5 + C = 180 → C = 86.5° (valid). 40 + 126.5 + C = 180 → C = 13.5° (also valid). The classic SSA ambiguity — both triangles exist.
When to use this calculator
**Use Law of Sines for:**
- **AAS / ASA**: two angles + one side known. - **SSA**: two sides + angle opposite one (with ambiguity check). - **Surveying**: triangulating positions. - **Navigation**: position from bearings. - **Astronomy**: stellar parallax. - **Engineering**: triangle/truss analysis. - **Architecture**: rafter and roof calculations.
**When to use Law of Cosines instead:**
- **SAS**: two sides + included angle. - **SSS**: three sides. - **When sides are emphasized**: Law of Cosines often more direct.
**Decision flowchart:**
Given: - 2 angles + 1 side → Law of Sines (AAS or ASA). - 2 sides + angle opposite → Law of Sines (SSA, ambiguous). - 2 sides + included angle → Law of Cosines (SAS). - 3 sides → Law of Cosines (SSS).
**Triangle sum reminder:**
A + B + C = 180° for any triangle. Given two angles, third is determined. This is independent of side lengths.
**SSA ambiguity:**
The SSA case (two sides + angle opposite one) can have: - 0 solutions: side too short to reach. - 1 solution: side exactly perpendicular or longer than other. - 2 solutions: side reaches in two places.
Always check both candidates when solving SSA.
**Common applications:**
- **Land surveying**: traditional method before GPS. - **Geological surveying**: terrain mapping. - **Aviation**: triangulation navigation. - **Marine navigation**: positions from lighthouses. - **Astronomical positioning**: star fixes. - **Construction**: roofing angles, post-and-beam frames. - **Engineering**: bridge and tower analysis. - **Sports**: angle of approach in pool, basketball trajectories.
**Numerical methods:**
For programming: B = math.degrees(math.asin(math.sin(math.radians(A)) * b / a))
For SSA: also compute B prime = 180 - B and check validity.
**Pythagorean special case:**
For right triangle (C = 90°): Law of Sines: a/sin(A) = c/sin(90°) = c. So a = c × sin(A) — standard right-triangle trig.
**Connections to other concepts:**
- **Circumradius**: R = a/(2sin A). Useful for circle-circumscribed-triangle problems. - **Area**: Area = (abc)/(4R) using circumradius. - **Inscribed angles**: connection to circle geometry.
**Software:**
- **Excel**: combine SIN, DEGREES, RADIANS, ASIN. - **Python**: math.sin, math.asin (use radians). - **MATLAB**: sind(), asind() for degrees. - **Online triangle solvers**: many tools handle SSA ambiguity automatically. - **CAD**: parametric triangle solving.
**Educational notes:**
Law of Sines is typically introduced in Algebra II or Pre-Calculus. Bridges algebra and geometry. Foundation for understanding more complex trigonometric identities. Essential for AP and college entrance math.
**Common mistakes:**
- **Wrong pairing**: side opposite angle (A with a, B with b, etc.). - **Mixing degrees and radians**: programming languages typically use radians. - **Missing ambiguous case in SSA**: must check both candidates. - **arcsin range**: returns -90° to 90°; obtuse answers need 180° - x. - **Forgetting triangle inequality**: invalid triangles produce nonsense.
**Pitfalls:**
- **Forgetting angles sum to 180°**: easy sanity check. - **SSA ambiguity**: must check both possible solutions. - **Degree/radian confusion**: critical in programming. - **Wrong correspondence**: angle and opposite side must match. - **Negative side length**: indicates impossible triangle. - **Calculation precision**: small angles can produce numerical issues.
Common mistakes to avoid
- Wrong correspondence of angle and opposite side.
- Forgetting the SSA ambiguous case (might have 0, 1, or 2 solutions).
- Mixing degrees and radians in trig functions.
- Not checking 180° - arcsin(x) as alternative solution.
- Using Law of Sines for SAS or SSS (need Law of Cosines).
- Forgetting angles must sum to 180°.
- arcsin returning value in wrong range.
- Ignoring triangle inequality (sides too short to form triangle).
Frequently Asked Questions
Sources & further reading
Related Calculators
Law of Cosines Calculator
Solve a triangle using the law of cosines for SSS (three sides) or SAS (two sides and included angle) cases.
Triangle Calculator
Calculate triangle area, perimeter, and angles from three side lengths using Heron's formula and the law of cosines.
Trigonometry Calculator
Calculate sin, cos, tan, and their inverses (arcsin, arccos, arctan) for any angle.