In short

A compound angle formula expresses the trigonometric ratio of a sum or difference of two angles in terms of the ratios of the individual angles. For instance, \sin(A + B) = \sin A \cos B + \cos A \sin B. These formulas are the engine behind almost every other trigonometric identity — double angles, half angles, product-to-sum, and sum-to-product all fall out of them.

You know that \sin 30° = \tfrac{1}{2} and \sin 45° = \tfrac{1}{\sqrt{2}}. What is \sin 75°?

Here is a tempting but wrong answer: \sin 75° = \sin 30° + \sin 45° = \tfrac{1}{2} + \tfrac{1}{\sqrt{2}} \approx 1.207. That cannot be right — no sine value exceeds 1. The sine function is not additive. You cannot split the angle and add the sines.

But 75° = 30° + 45°, and there is a formula for \sin(30° + 45°) — it just looks different from naive addition. That formula is

\sin(A + B) = \sin A \cos B + \cos A \sin B

Plug in A = 30°, B = 45°:

\sin 75° = \sin 30° \cos 45° + \cos 30° \sin 45° = \frac{1}{2} \cdot \frac{1}{\sqrt{2}} + \frac{\sqrt{3}}{2} \cdot \frac{1}{\sqrt{2}} = \frac{1 + \sqrt{3}}{2\sqrt{2}} \approx 0.9659

That is a legitimate sine value — it sits between 0 and 1. And it matches the actual value of \sin 75° exactly.

The formula that made this work is called a compound angle formula. "Compound" because the angle is built from two simpler pieces. There are six of them in total — for sin, cos, and tan of both A + B and A - B — and once you have the first one, the rest follow by short, clean algebra. The real question is: where does the first one come from?

Where the formula comes from

The cleanest proof uses nothing more than a right triangle sitting inside another right triangle. Start with two acute angles A and B. Stack them: place angle A at the base, and then lay angle B on top of it. The combined angle is A + B.

Geometric derivation of sin(A+B)A construction with a unit hypotenuse OP making angle A+B with the horizontal. A perpendicular from P to the x-axis is dropped. An intermediate line OQ at angle A from the horizontal creates two right triangles that decompose the vertical height into sin A cos B plus cos A sin B. A B P R Q 1 sin(A+B) cos A sin B
The geometric construction. $O$ is the origin, $OQ$ makes angle $A$ with the horizontal, and $OP$ (of unit length) makes angle $A + B$. Drop a perpendicular from $P$ to the horizontal axis. The vertical distance $PR + R\text{-to-axis}$ decomposes into two pieces — which turn out to be $\sin A \cos B$ and $\cos A \sin B$.

Here is the construction in detail. Take a line segment OP of length 1 (the unit hypotenuse), making an angle A + B with the horizontal. Drop a perpendicular from P to the horizontal axis — its length is \sin(A + B). That is the quantity you want to express in terms of A and B separately.

Now draw the line OQ at angle A from the horizontal. Drop a perpendicular from P onto the line OQ, meeting it at R. This creates two right triangles: \triangle OPR (with angle B at O) and a smaller triangle sitting on top of it.

In triangle \triangle OPR:

Now project the vertical height. The total vertical drop from P to the x-axis — which is \sin(A+B) — has two parts:

  1. The vertical component of OR. Since OR = \cos B and OR makes angle A with the horizontal, its vertical component is \cos B \cdot \sin A.
  2. The vertical component of PR. Since PR = \sin B and PR is perpendicular to OQ (which itself makes angle A with horizontal), PR makes angle A with the vertical. So its vertical component is \sin B \cdot \cos A.

Add them:

\sin(A + B) = \sin A \cos B + \cos A \sin B

That is the formula. It did not come from algebra — it came from stacking two right triangles and decomposing a single vertical line into two projections.

The cos(A + B) formula

The same picture gives you cosine. The horizontal distance from O to the foot of the perpendicular from P is \cos(A + B). Decompose it the same way:

  1. The horizontal component of OR. Since OR = \cos B and OR makes angle A with the horizontal, its horizontal component is \cos B \cdot \cos A.
  2. The horizontal component of PR. Since PR = \sin B and PR makes angle A with the vertical, its horizontal component is \sin B \cdot \sin A. But this component points in the opposite direction — to the left — so it is subtracted.

Put them together:

\cos(A + B) = \cos A \cos B - \sin A \sin B

The minus sign is not arbitrary. It appears because the horizontal projection of PR points in the opposite direction to the horizontal projection of OR. The geometry forces the sign.

Decomposition showing cos(A+B)The same construction as the sine proof, now highlighting the horizontal distance cos(A+B) as the difference of two horizontal projections: cos A cos B minus sin A sin B. P A B cos(A+B)
The horizontal segment from $O$ to the foot of the perpendicular from $P$ is $\cos(A+B)$. It equals $\cos A \cos B - \sin A \sin B$: the horizontal reach of $OR$ minus the horizontal overshoot of $PR$.

The cos(A + B) formula: graphical verification

You can verify the cosine formula with a graph. Plot \cos(A + 30°) for varying A, and also plot \cos A \cos 30° - \sin A \sin 30°. They should be identical.

The solid red curve is $\cos(A + 30°)$ and the dashed black curve is $\cos A \cos 30° - \sin A \sin 30°$. They are identical — the compound angle formula is an algebraic identity, not an approximation. The curves sit exactly on top of each other for every value of $A$.

The subtraction formulas

Once you have the addition formulas, the subtraction versions cost nothing. Replace B with -B everywhere and use two facts: \sin(-B) = -\sin B and \cos(-B) = \cos B.

For sine:

\sin(A - B) = \sin A \cos(-B) + \cos A \sin(-B) = \sin A \cos B - \cos A \sin B

For cosine:

\cos(A - B) = \cos A \cos(-B) - \sin A \sin(-B) = \cos A \cos B + \sin A \sin B

Notice that the sign pattern swaps. In the sine formula, + becomes -. In the cosine formula, - becomes +. This makes a tidy mnemonic: sine keeps the sign, cosine flips it.

All four formulas, collected

Compound angle formulas for sine and cosine

\sin(A + B) = \sin A \cos B + \cos A \sin B
\sin(A - B) = \sin A \cos B - \cos A \sin B
\cos(A + B) = \cos A \cos B - \sin A \sin B
\cos(A - B) = \cos A \cos B + \sin A \sin B

These hold for all real values of A and B, not just acute angles. The geometric proof above works for acute angles; the general case follows from the unit-circle definitions of sine and cosine.

The tangent formula

Tangent is sine divided by cosine. So the compound angle formula for tangent should come from dividing the sine formula by the cosine formula. It does.

\tan(A + B) = \frac{\sin(A + B)}{\cos(A + B)} = \frac{\sin A \cos B + \cos A \sin B}{\cos A \cos B - \sin A \sin B}

This expression is correct but unwieldy. To get a cleaner form, divide both the numerator and the denominator by \cos A \cos B:

\tan(A + B) = \frac{\dfrac{\sin A \cos B}{\cos A \cos B} + \dfrac{\cos A \sin B}{\cos A \cos B}}{\dfrac{\cos A \cos B}{\cos A \cos B} - \dfrac{\sin A \sin B}{\cos A \cos B}} = \frac{\tan A + \tan B}{1 - \tan A \tan B}

Why divide by \cos A \cos B? Because every term then simplifies to either 1 or a tangent ratio — and tangent is the ratio you want the answer in.

Similarly, for subtraction:

\tan(A - B) = \frac{\tan A - \tan B}{1 + \tan A \tan B}

Compound angle formulas for tangent

\tan(A + B) = \frac{\tan A + \tan B}{1 - \tan A \tan B}
\tan(A - B) = \frac{\tan A - \tan B}{1 + \tan A \tan B}

These hold whenever both sides are defined — that is, whenever \cos A \neq 0, \cos B \neq 0, and \cos(A \pm B) \neq 0.

The denominator 1 - \tan A \tan B is significant. When \tan A \tan B = 1, the denominator is zero, and \tan(A + B) is undefined — meaning A + B is an odd multiple of 90°. For instance, \tan 50° \cdot \tan 40° = 1 because 50° + 40° = 90°.

The solid red curve is $\frac{\tan A + \tan 30°}{1 - \tan A \tan 30°}$ and the dashed black is $\tan(A + 30°)$. They agree everywhere. The vertical asymptote at $A = 60°$ is where $A + 30° = 90°$ and $\tan(A + B)$ is undefined — exactly where the denominator $1 - \tan A \tan 30°$ hits zero.

A quick sanity check

Before using the formulas in anger, verify them against values you already know. This is worth doing — a formula that fails a sanity check is a formula you have remembered wrong.

Test 1. Set B = 0:

\sin(A + 0) = \sin A \cos 0 + \cos A \sin 0 = \sin A \cdot 1 + \cos A \cdot 0 = \sin A

Good — adding zero to the angle should change nothing, and the formula confirms that.

Test 2. Set A = B:

\sin(A + A) = \sin A \cos A + \cos A \sin A = 2 \sin A \cos A

That is the double angle formula \sin 2A = 2 \sin A \cos A — which you may have already seen. It falls straight out of the compound angle formula with B = A. That is reassuring: the double angle formulas are special cases of compound angles, not separate formulas.

Test 3. Set A = 45°, B = 45°:

\cos(45° + 45°) = \cos^2 45° - \sin^2 45° = \frac{1}{2} - \frac{1}{2} = 0

And indeed \cos 90° = 0. The formula works.

Test 4. Set B = 90° - A in the cosine addition formula:

\cos(A + 90° - A) = \cos 90° = 0
\cos A \cos(90° - A) - \sin A \sin(90° - A) = \cos A \sin A - \sin A \cos A = 0

Correct. This also confirms the co-function identities \cos(90° - A) = \sin A and \sin(90° - A) = \cos A.

Worked examples

Example 1: Find the exact value of sin 15°

Write 15° = 45° - 30° and apply the subtraction formula.

Step 1. Identify A and B.

A = 45°, \quad B = 30°, \quad \text{so } 15° = A - B

Why: you need 15° as a sum or difference of standard angles whose sine and cosine you know by heart.

Step 2. Apply \sin(A - B) = \sin A \cos B - \cos A \sin B.

\sin 15° = \sin 45° \cos 30° - \cos 45° \sin 30°

Why: this is a direct substitution into the formula — no rearranging needed.

Step 3. Substitute the known values.

= \frac{1}{\sqrt{2}} \cdot \frac{\sqrt{3}}{2} - \frac{1}{\sqrt{2}} \cdot \frac{1}{2} = \frac{\sqrt{3}}{2\sqrt{2}} - \frac{1}{2\sqrt{2}}

Why: the standard values \sin 45° = \cos 45° = 1/\sqrt{2}, \sin 30° = 1/2, \cos 30° = \sqrt{3}/2 are the building blocks.

Step 4. Combine and simplify.

\sin 15° = \frac{\sqrt{3} - 1}{2\sqrt{2}} = \frac{(\sqrt{3} - 1)\sqrt{2}}{4} = \frac{\sqrt{6} - \sqrt{2}}{4}

Why: rationalise the denominator by multiplying top and bottom by \sqrt{2}.

Result: \sin 15° = \dfrac{\sqrt{6} - \sqrt{2}}{4} \approx 0.2588.

The sine curve from $0°$ to $90°$. The point at $15°$ sits at height $\approx 0.259$ — exactly $(\sqrt{6} - \sqrt{2})/4$. Notice how $\sin 15°$ is much closer to $0$ than to $\sin 30° = 0.5$, which matches the fact that the sine curve rises steeply near the origin.

Example 2: If tan A = 3/4 and tan B = 5/12, find tan(A + B)

This is the kind of problem that appears in JEE and board exams: you are given tangent values directly, and you need the tangent of the sum.

Step 1. Write down the formula.

\tan(A + B) = \frac{\tan A + \tan B}{1 - \tan A \tan B}

Why: when you are given tangent values, the tangent addition formula is the direct tool — no need to find sine and cosine separately.

Step 2. Substitute.

\tan(A + B) = \frac{\frac{3}{4} + \frac{5}{12}}{1 - \frac{3}{4} \cdot \frac{5}{12}}

Why: direct substitution of \tan A = 3/4 and \tan B = 5/12.

Step 3. Simplify the numerator.

\frac{3}{4} + \frac{5}{12} = \frac{9}{12} + \frac{5}{12} = \frac{14}{12} = \frac{7}{6}

Why: common denominator is 12.

Step 4. Simplify the denominator.

1 - \frac{3}{4} \cdot \frac{5}{12} = 1 - \frac{15}{48} = 1 - \frac{5}{16} = \frac{11}{16}

Why: \frac{3 \times 5}{4 \times 12} = \frac{15}{48} = \frac{5}{16}, and 1 - \frac{5}{16} = \frac{11}{16}.

Step 5. Divide.

\tan(A + B) = \frac{7/6}{11/16} = \frac{7}{6} \times \frac{16}{11} = \frac{112}{66} = \frac{56}{33}

Result: \tan(A + B) = \dfrac{56}{33} \approx 1.697.

Two right triangles showing tan A = 3/4 and tan B = 5/12Two right triangles side by side. The first has legs 3 and 4 with hypotenuse 5, giving tan A = 3/4. The second has legs 5 and 12 with hypotenuse 13, giving tan B = 5/12. Together A + B has tan equal to 56/33. 4 3 5 A 12 5 13 B tan A = 3/4 tan B = 5/12 tan(A + B) = 56/33
The two underlying right triangles. Angle $A$ comes from a $3$-$4$-$5$ triangle, angle $B$ from a $5$-$12$-$13$ triangle. The compound angle formula combines these into $\tan(A+B) = 56/33$ without requiring you to find the individual angles.

Notice something: you never needed to know what A and B actually are in degrees. The formula works entirely with tangent ratios. If you had tried to compute A = \arctan(3/4) \approx 36.87° and B = \arctan(5/12) \approx 22.62° first, then added, then taken the tangent, you would get the same answer — but with rounding errors and an unnecessary detour through decimal angles. The formula keeps everything exact.

Common confusions

Going deeper

If you came here for the formulas and how to use them, you have everything you need — you can stop here. The material below is for readers who want to see alternative proofs, subtle applications, and connections to other parts of mathematics.

A proof using the unit circle and distance

There is a proof of the cosine subtraction formula that avoids triangles entirely and uses only the distance formula on the unit circle.

Place two points on the unit circle: P at angle A with coordinates (\cos A, \sin A), and Q at angle B with coordinates (\cos B, \sin B). The straight-line distance between P and Q can be computed two ways.

By the distance formula:

PQ^2 = (\cos A - \cos B)^2 + (\sin A - \sin B)^2

Expand:

= \cos^2 A - 2\cos A \cos B + \cos^2 B + \sin^2 A - 2\sin A \sin B + \sin^2 B
= (\cos^2 A + \sin^2 A) + (\cos^2 B + \sin^2 B) - 2(\cos A \cos B + \sin A \sin B)
= 2 - 2(\cos A \cos B + \sin A \sin B)

By the cosine rule (applied to the triangle OPQ, where O is the origin and both OP and OQ have length 1):

PQ^2 = 1^2 + 1^2 - 2 \cdot 1 \cdot 1 \cdot \cos(A - B) = 2 - 2\cos(A - B)

Set the two expressions equal:

2 - 2\cos(A - B) = 2 - 2(\cos A \cos B + \sin A \sin B)
\cos(A - B) = \cos A \cos B + \sin A \sin B

This proves the cosine subtraction formula for all angles at once — not just acute — because the distance formula and the cosine rule work for any angles on the unit circle. Every other compound angle formula follows from this one by substitution.

Connection to rotation matrices

In linear algebra, rotating a point (x, y) by angle \theta counterclockwise is done by multiplying by the rotation matrix

R(\theta) = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}

When you rotate by A and then by B, the combined rotation is R(A + B) = R(A) \cdot R(B). Multiply the two matrices out:

R(A) \cdot R(B) = \begin{pmatrix} \cos A\cos B - \sin A\sin B & -(\sin A\cos B + \cos A\sin B) \\ \sin A\cos B + \cos A\sin B & \cos A\cos B - \sin A\sin B \end{pmatrix}

The entries of this matrix are exactly \cos(A+B) and \sin(A+B). So the compound angle formulas are secretly the statement that two successive rotations are the same as one combined rotation. The algebra of trigonometry is the algebra of rotations. This connection runs deep — it is the beginning of the path toward Euler's formula e^{i\theta} = \cos\theta + i\sin\theta, which you will meet in De Moivre's Theorem.

An application: the tangent of 15° and 75°

From the tangent formula:

\tan 15° = \tan(45° - 30°) = \frac{\tan 45° - \tan 30°}{1 + \tan 45° \tan 30°} = \frac{1 - \frac{1}{\sqrt{3}}}{1 + \frac{1}{\sqrt{3}}} = \frac{\sqrt{3} - 1}{\sqrt{3} + 1}

Rationalise: multiply top and bottom by (\sqrt{3} - 1):

\tan 15° = \frac{(\sqrt{3} - 1)^2}{(\sqrt{3})^2 - 1^2} = \frac{3 - 2\sqrt{3} + 1}{2} = \frac{4 - 2\sqrt{3}}{2} = 2 - \sqrt{3}

And \tan 75° = \tan(45° + 30°) = 2 + \sqrt{3}. Notice that \tan 15° \cdot \tan 75° = (2 - \sqrt{3})(2 + \sqrt{3}) = 4 - 3 = 1. This is not a coincidence — it holds because 15° + 75° = 90°, and for complementary angles \tan\alpha \cdot \tan(90° - \alpha) = \tan\alpha \cdot \cot\alpha = 1.

Writing a sin θ + b cos θ as a single sinusoidal

One of the most powerful applications of compound angles is rewriting a sum like a\sin\theta + b\cos\theta as a single trigonometric function. This comes up constantly in solving trigonometric equations and in finding maximum/minimum values.

Start with a\sin\theta + b\cos\theta. Factor out \sqrt{a^2 + b^2}:

a\sin\theta + b\cos\theta = \sqrt{a^2 + b^2}\left(\frac{a}{\sqrt{a^2 + b^2}}\sin\theta + \frac{b}{\sqrt{a^2 + b^2}}\cos\theta\right)

Now notice that \left(\frac{a}{\sqrt{a^2 + b^2}}\right)^2 + \left(\frac{b}{\sqrt{a^2 + b^2}}\right)^2 = 1, so there exists some angle \alpha with \cos\alpha = \frac{a}{\sqrt{a^2 + b^2}} and \sin\alpha = \frac{b}{\sqrt{a^2 + b^2}}.

Substituting:

a\sin\theta + b\cos\theta = \sqrt{a^2 + b^2}(\cos\alpha\sin\theta + \sin\alpha\cos\theta) = \sqrt{a^2 + b^2}\sin(\theta + \alpha)

where \alpha = \arctan(b/a).

This has an immediate consequence: the maximum value of a\sin\theta + b\cos\theta is \sqrt{a^2 + b^2} and its minimum is -\sqrt{a^2 + b^2}. For example, 3\sin\theta + 4\cos\theta ranges between -5 and 5, because \sqrt{9 + 16} = 5. No calculus needed — just compound angles.

Aryabhata and Indian trigonometry

The compound angle concept has deep roots in Indian mathematics. Bhaskara II's 12th-century work Siddhanta Shiromani contains results equivalent to these formulas, used for computing planetary positions. The tradition of building exact values of trigonometric ratios from simpler ones — exactly what the compound angle formulas do — was well established in the Kerala school of mathematics by the 14th century, where Madhava and his successors developed infinite series for sine and cosine that implicitly depended on these identities.

Indian astronomers needed these formulas for a very practical reason: computing the positions of planets at future dates required adding angular displacements, and the trigonometric ratios of the combined displacement had to be expressed in terms of known tabulated values. The compound angle formulas were, in this sense, a computational tool before they were a theorem — and the Indian tradition preserved them as working algorithms alongside the geometric insights.

Where this leads next

The compound angle formulas are the foundation for the entire next layer of trigonometric identities. Every formula in the following articles is a direct consequence of what you have just learned.