← Glossary
Law of sines: formula, proof and activities

Law of Sines

The law of sines states that in any triangle ABC, the ratio of a side to the sine of the opposite angle is the same for all three sides: a / sin(A) = b / sin(B) = c / sin(C). This common ratio equals the diameter of the triangle’s circumscribed circle. If you know one side and two angles, you can work out the other two sides: this is the principle behind triangulation.

Discover FizziQ

How to measure it in class

FizziQ’s Theodolite tool measures the horizontal bearing (azimuth) of a direction, that is, its angle from magnetic north. Taking sightings from each corner of a triangle laid out in the schoolyard gives the three angles; one side measured with a tape is then enough to calculate the other two and compare them with a direct measurement.

Steps:

  • Pick three clearly visible landmarks that are well apart: a tree, a post, the corner of a building. A large triangle reduces the relative error.
  • Stand at the first landmark, open the Theodolite tool and read the azimuth of each of the other two. The angle at that corner is the difference between the two azimuths (if it exceeds 180°, take 360° minus the difference).
  • Repeat from the other two corners, then check that the three angles add up to roughly 180°. The gap gives an idea of the measurement uncertainty.
  • Measure just one side with a tape, for example c = AB.
  • Calculate the other two sides with the law of sines: a = c × sin(A) / sin(C) and b = c × sin(B) / sin(C).
  • Then measure those two sides with the tape and compare with the calculated values.
  • While sighting, keep away from fences, cars and steel structures, which distort the azimuth given by the magnetometer.

Scientific activities on this topic

Learn more

Where the formula comes from. Draw the altitude from C, of length h. It splits the triangle into two right triangles. In the first, h = b × sin(A); in the second, h = a × sin(B). Both expressions describe the same length, so b × sin(A) = a × sin(B), which gives a / sin(A) = b / sin(B). The same construction from another vertex gives the third equality. The law also follows from the area of the triangle, which can be written three ways: Area = ½ × b × c × sin(A) = ½ × a × c × sin(B) = ½ × a × b × sin(C).

When to use it. The law of sines solves a triangle as soon as you know one side and two angles, since the third angle is 180° minus the other two. This is exactly the triangulation situation: a measured baseline and two sighted angles. When you know two sides and the angle between them, use the law of cosines instead.

The ambiguous case. If you know two sides and an angle that is not between them, the law of sines gives you sin(B), not B itself. A sine corresponds to two possible angles, B and 180° − B. Depending on the values, there may be no triangle, one, or two. For each solution, check that the angles still add up to less than 180°.

Why thin triangles give poor results. The formula divides by the sine of an angle. When that angle is small, its sine is small and changes a lot, in relative terms, for a small measurement error. With a 20 m baseline and two angles of 88°, the opposite angle is 4° and the calculated side about 287 m; an error of 1° on that angle moves the result anywhere from 229 m to 382 m. Aim for triangles whose angles all lie between about 30° and 120°.

Uncertainty with a smartphone. A smartphone azimuth is only accurate to a few degrees, even away from metal objects. Each angle of the triangle is the difference of two azimuths, so its uncertainty is similar or slightly larger. On a well-shaped triangle this means a few percent on the calculated sides, which is good enough to check the law in class.

A little history. Greek astronomers, including Ptolemy, already solved triangles using tables of chords, which are equivalent to sines. Mathematicians writing in Arabic stated the law of sines explicitly, first for the spherical triangles used in astronomy, then for plane triangles, which Nasir al-Din al-Tusi set out in the 13th century. It later became the basis of all geodetic surveying by triangulation.

Formula

In a triangle ABC:

a / sin(A) = b / sin(B) = c / sin(C) = 2R

where:

  • a, b, c: lengths of the sides opposite vertices A, B and C (m)
  • A, B, C: angles at the vertices (°), with A + B + C = 180°
  • R: radius of the triangle’s circumscribed circle (m)

Knowing side c and angles A and B:

C = 180° − A − B a = c × sin(A) / sin(C) b = c × sin(B) / sin(C)

Application examples

  • Measured side c = 40 m, angles A = 55° and B = 65°. Then C = 60°, a = 40 × sin(55°) / sin(60°) = 40 × 0.819 / 0.866 = 37.8 m and b = 40 × sin(65°) / sin(60°) = 40 × 0.906 / 0.866 = 41.9 m.

  • In the same triangle, an error of 3° on C (57° or 63° instead of 60°) moves b between 40.7 m and 43.2 m, about 3 %: that is the size of discrepancy to expect in class.

  • Ambiguous case: a = 6 cm, b = 8 cm and A = 40°. We find sin(B) = 8 × sin(40°) / 6 = 0.857, so B = 59° or B = 121°. Both triangles exist, since 40° + 121° is still less than 180°.

  • For the Dunkirk to Barcelona meridian arc (1792-1798), Delambre and Méchain worked out, one after the other, the sides of a chain of 115 triangles, starting from two baselines of about 12 km measured on the ground near Melun and near Perpignan.

  • A ship that takes two bearings on the same lighthouse, knowing the distance it has sailed in between, can calculate its distance to the lighthouse with the law of sines.

FAQ

Q: Is it the “law of sines” or the “sine rule”? A: Both. “Law of sines” is common in the United States, while “sine rule” is the usual name in UK schools. They refer to the same relationship.

Q: What is the difference from the law of cosines? A: The law of sines links each side to the angle facing it; use it when you know at least one side and its opposite angle, or one side and two angles. The law of cosines, a² = b² + c² − 2bc × cos(A), is for two sides and the angle between them, or for three sides.

Q: Does the law of sines work for a right triangle? A: Yes. If C = 90°, sin(C) = 1 and the law gives a = c × sin(A), which is simply the definition of the sine in a right triangle, with c as the hypotenuse.

Q: Why don’t my theodolite angles add up to exactly 180°? A: Each angle is the difference of two azimuths, each off by a degree or two. A gap of a few degrees is normal. You can share the gap equally between the three angles before calculating, as surveyors used to do.

Triangulation - Theodolite - Compass - Magnetometer - Measurement Uncertainty - Systematic vs Random Error

Explore FizziQ

Discover all the science experiments you can do with your smartphone.