Law of Sines & Cosines Calculator
Enter at least 3 values (including at least one side) to solve the triangle.
Mastering the Law of Sines and Cosines
Solving triangles is a fundamental skill in trigonometry, and the Law of Sines and Cosines Calculator is the ultimate tool to help you navigate through oblique triangles. Unlike right-angled triangles where the Pythagorean theorem and simple SOH-CAH-TOA rules suffice, oblique triangles (triangles with no right angle) require more sophisticated formulas.
What is the Law of Sines?
The Law of Sines establishes a relationship between the sides and the sines of their opposite angles. It states that the ratio of a side’s length to the sine of its opposite angle is constant for all three sides of the triangle.
This law is most effective when you know:
- ASA (Angle-Side-Angle): Two angles and the side between them.
- AAS (Angle-Angle-Side): Two angles and a side not between them.
- SSA (Side-Side-Angle): Two sides and a non-included angle (Note: This is known as the “ambiguous case”).
What is the Law of Cosines?
The Law of Cosines is essentially a generalized version of the Pythagorean theorem. It relates all three sides to one angle. It is your go-to formula when the Law of Sines cannot be applied immediately.
The Law of Cosines is used when you know:
- SSS (Side-Side-Side): All three side lengths are known, and you need to find the angles.
- SAS (Side-Angle-Side): Two sides and the angle between them are known.
When to Use Each Law: A Quick Guide
| Given Info | Use Law of… | Complexity |
|---|---|---|
| SSS | Cosines | Easy (Find largest angle first) |
| SAS | Cosines | Direct Application |
| ASA / AAS | Sines | Very Easy |
| SSA | Sines | Ambiguous (May have 0, 1, or 2 solutions) |
The “Ambiguous Case” (SSA) Explained
The Side-Side-Angle (SSA) scenario is unique because it doesn’t always define a single unique triangle. Depending on the lengths provided:
- No Triangle: The given side is too short to reach the opposite side.
- One Triangle: The given side forms exactly one right triangle or is longer than the other given side.
- Two Triangles: Two different triangles can be formed with the same given dimensions (one acute, one obtuse).
Our calculator automatically attempts to solve for the primary valid triangle based on your inputs.
Real-World Applications
Why do we learn these laws? They are vital in several fields:
- Navigation: Calculating the distance between two ships or planes when their angles from a lighthouse are known.
- Architecture & Engineering: Determining the lengths of support beams in non-rectangular structures like geodesic domes or bridges.
- Astronomy: Measuring the distance between stars and planets through triangulation.
- Geology: Mapping terrain and calculating the height of mountains from a distance.
Step-by-Step Example: Solving SAS
Suppose you have a triangle where side a = 5, side b = 7, and the included angle C = 45°.
- Use Law of Cosines to find side c:
c² = 5² + 7² – 2(5)(7)cos(45°) - c² = 25 + 49 – 70(0.707) ≈ 24.51
- c ≈ 4.95
- Now use the Law of Sines to find another angle:
sin(A)/5 = sin(45°)/4.95 - sin(A) = 5 * sin(45°) / 4.95 ≈ 0.714
- A ≈ 45.6°
- Finally, B = 180° – 45° – 45.6° = 89.4°
Frequently Asked Questions
Can I use the Law of Sines for a right triangle?
Yes! In a right triangle where C = 90°, sin(90°) = 1. The formula then simplifies to sin(A) = a/c, which is the standard definition of sine.
What happens if the angles don’t add up to 180?
The triangle is mathematically impossible. Our calculator will return an error message if the provided inputs violate basic geometric rules.
Is the Law of Cosines only for obtuse triangles?
No, it works for all triangles: acute, obtuse, and right.