Math

Law of Sines Calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a law of sines calculator?

A law of sines calculator solves a triangle when you know one angle, the side directly across from it, and a second angle. From those three values it works out the third angle and the two missing sides. The law of sines is the relationship that ties the angles of any triangle to the lengths of the sides opposite them, so it works for acute, right, and obtuse triangles alike, not just right triangles.

In this calculator you enter angle AA in degrees, side aa (the side opposite angle AA), and angle BB in degrees. It returns angle CC, side bb, and side cc.

How does it work?

The law of sines states that the ratio of each side to the sine of its opposite angle is the same for all three sides of a triangle:

asinA=bsinB=csinC\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}

Because the interior angles of any triangle add up to 180180^\circ, the third angle follows immediately:

C=180ABC = 180^\circ - A - B

Once every angle is known and one opposite side (aa) is given, the remaining sides come straight from the ratios above:

b=asinBsinAc=asinCsinAb = \frac{a \, \sin B}{\sin A} \qquad c = \frac{a \, \sin C}{\sin A}

For these formulas to describe a real triangle, both AA and BB must be positive and their sum must be less than 180180^\circ. If A+B180A + B \ge 180^\circ there is no valid triangle, and the calculator leaves the results blank.

Worked examples

Example 1: a 30-60-90 triangle

Suppose A=30A = 30^\circ, a=10a = 10, and B=60B = 60^\circ. First find the missing angle:

C=1803060=90C = 180^\circ - 30^\circ - 60^\circ = 90^\circ

Now apply the ratios. Since sin30=0.5\sin 30^\circ = 0.5, sin600.8660\sin 60^\circ \approx 0.8660, and sin90=1\sin 90^\circ = 1:

b=10sin60sin30=100.86600.517.3205b = \frac{10 \cdot \sin 60^\circ}{\sin 30^\circ} = \frac{10 \cdot 0.8660}{0.5} \approx 17.3205

c=10sin90sin30=1010.5=20c = \frac{10 \cdot \sin 90^\circ}{\sin 30^\circ} = \frac{10 \cdot 1}{0.5} = 20

So C=90C = 90^\circ, b17.3205b \approx 17.3205, and c=20c = 20.

Example 2: an isosceles right triangle

With A=45A = 45^\circ, a=10a = 10, and B=45B = 45^\circ:

C=1804545=90C = 180^\circ - 45^\circ - 45^\circ = 90^\circ

Because sin45=sinB\sin 45^\circ = \sin B, side bb equals side aa:

b=10sin45sin45=10b = \frac{10 \cdot \sin 45^\circ}{\sin 45^\circ} = 10

c=10sin90sin45=100.707114.1421c = \frac{10 \cdot \sin 90^\circ}{\sin 45^\circ} = \frac{10}{0.7071} \approx 14.1421

The triangle has two equal sides of length 1010 and a hypotenuse of about 14.142114.1421.

Practical notes

  • Enter both angles in degrees. The calculator converts them internally before taking the sine.
  • The known side aa must be the one opposite the known angle AA; otherwise the ratios will not line up.
  • This tool uses the angle-angle-side (AAS) configuration, which always produces a single triangle. The trickier side-side-angle (SSA) “ambiguous case” — where two different triangles can fit — is not handled here.
  • When you instead know two sides and the angle between them, reach for the law of cosines calculator, and for plain sine, cosine, and tangent of a single angle see the trigonometry calculator.

Frequently asked questions

When should I use the law of sines instead of the law of cosines?

Use the law of sines when you know an angle together with the side opposite it, plus one more angle or side (the AAS or ASA cases). Use the law of cosines when you know two sides and the included angle, or all three sides.

Does the law of sines work for non-right triangles?

Yes. It applies to every triangle — acute, right, and obtuse. It is one of the main tools for solving triangles that are not right-angled.

Why are my results blank?

The results stay empty if a field is missing, if an angle is zero or negative, or if angle AA plus angle BB is 180180^\circ or more, because no triangle can have those angles.

Report a bug

This field is required.