Trigonometry
Advanced

Law of Tangents

Relates two sides and their opposite angles.

Formula

a−ba+b=tan⁡A−B2tan⁡A+B2\frac{a-b}{a+b} = \frac{\tan\tfrac{A-B}{2}}{\tan\tfrac{A+B}{2}}

Variables

a,bSides
A,BAngles

How it works

The Law of Tangents links the difference and sum of two sides of a triangle to half the difference and half the sum of their opposite angles. It comes from rewriting the sine rule and using standard tangent identities, so it is especially useful when you know two sides and the two opposite angles, or when you want to eliminate an unknown side ratio. Because it uses half-sums and half-differences, it is often a good companion to the Law of Sines in oblique triangles.

When to use it

Use it in non-right triangles when you know or can form the pairs (a, A) and (b, B), especially if a difference between the sides is easier to work with than the sides themselves. It is common in advanced triangle-solving, surveying, and trigonometric proof problems.

Worked example, step by step

In triangle ABC, let side a = 9.2 cm opposite angle A = 68° and side b = 6.5 cm opposite angle B = 44°. Step 1: Compute the left-hand side: (a - b)/(a + b) = (9.2 - 6.5)/(9.2 + 6.5) = 2.7/15.7 ≈ 0.1717. Step 2: Set this equal to the law of tangents ratio: tan((A - B)/2) / tan((A + B)/2) = tan(12°) / tan(56°). Step 3: Check the right-hand side numerically: tan(12°) ≈ 0.2126 and tan(56°) ≈ 1.4826, so 0.2126/1.4826 ≈ 0.1434. Step 4: The values are close but not equal, so these measurements are not perfectly consistent for a triangle. Step 5: If instead A = 72° while B = 44°, then (A - B)/2 = 14° and (A + B)/2 = 58°. Step 6: tan(14°)/tan(58°) ≈ 0.2493/1.6003 ≈ 0.1558, which is much closer to 0.1717, showing how the formula can be used to test or solve triangle data.

Common mistakes to avoid

  • Forgetting that the formula uses half the sum and half the difference of the angles, not the full angles
  • Mixing up which side matches which angle; each side must be paired with its opposite angle
  • Using the formula in a right triangle without checking that the angle pairs make sense for an oblique triangle

Did You Know?

The law of tangents predates the more famous law of cosines for solving triangles from two sides and an angle.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026