Sum and Difference Identities Calculator

Sum and Difference Identities Calculator

Growing AI Skill PRO

Enter Calculation

Formula

sin⁡(a±b)=sin⁡acos⁡b±cos⁡asin⁡bcos⁡(a±b)=cos⁡acos⁡b∓sin⁡asin⁡b\begin{aligned} \sin(\text{a} \pm \text{b}) &= \sin\text{a}\cos\text{b} \pm \cos\text{a}\sin\text{b} \\ \cos(\text{a} \pm \text{b}) &= \cos\text{a}\cos\text{b} \mp \sin\text{a}\sin\text{b} \end{aligned}
Usage stats

Advertisement

Results

sin(a + b)
0.965926
= sin a cos b + cos a sin b
sin(a − b) -0.258819
cos(a + b) 0.258819
cos(a − b) 0.965926

Report an error on this page

What This Calculator Does

The Sum and Difference Identities Calculator evaluates the four core trigonometric identities for two angles a and b: \(\sin(a+b)\), \(\sin(a-b)\), \(\cos(a+b)\) and \(\cos(a-b)\). These identities let you express the trig function of a combined angle in terms of the sine and cosine of the individual angles, which is essential for simplifying expressions, solving equations, and proving other identities.

How to Use It

Enter your two angles in the Angle a and Angle b fields, choose whether they are in degrees or radians, and the calculator returns all four results at once. Decimal angles are fully supported, and radian mode accepts values such as \(\pi/6 \approx 0.5236\).

The Formulas Explained

The identities are: $$\begin{aligned} \sin(\text{a} \pm \text{b}) &= \sin\text{a}\cos\text{b} \pm \cos\text{a}\sin\text{b} \\ \cos(\text{a} \pm \text{b}) &= \cos\text{a}\cos\text{b} \mp \sin\text{a}\sin\text{b} \end{aligned}$$ Notice the sign pattern: for sine the signs match the input (+ gives +), while for cosine they are reversed (+ gives −). Internally the calculator converts degrees to radians and evaluates each term with standard sine and cosine functions.

Advertisement
Diagram of two stacked angles a and b forming a combined angle a+b on a unit circle.
The sum identities combine two angles a and b into a single angle a+b.

Worked Example

Let \(a = 30°\) and \(b = 45°\). Then \(\sin 30° = 0.5\), \(\cos 30° = 0.8660\), \(\sin 45° = \cos 45° = 0.7071\). So $$\sin(75°) = 0.5 \cdot 0.7071 + 0.8660 \cdot 0.7071 \approx 0.9659,$$ and $$\cos(75°) = 0.8660 \cdot 0.7071 - 0.5 \cdot 0.7071 \approx 0.2588.$$ The calculator confirms both instantly.

Two overlaid right triangles representing the sine and cosine terms used in the worked example.
Breaking sin(a+b) into its sine and cosine component products.

Exact Values of Sine and Cosine for Common Angles

These exact values are the building blocks for the sum and difference identities. Any angle that is a sum or difference of two of them (such as 15° = 45° − 30° or 105° = 60° + 45°) can be found exactly.

Degrees Radians sin sin (decimal) cos cos (decimal)
0° 0 0 0.0000 1 1.0000
30° π/6 1/2 0.5000 √3/2 0.8660
45° π/4 √2/2 0.7071 √2/2 0.7071
60° π/3 √3/2 0.8660 1/2 0.5000
90° π/2 1 1.0000 0 0.0000
120° 2π/3 √3/2 0.8660 −1/2 −0.5000
135° 3π/4 √2/2 0.7071 −√2/2 −0.7071
150° 5π/6 1/2 0.5000 −√3/2 −0.8660
180° π 0 0.0000 −1 −1.0000

Reminder: \(\pi\) radians = 180°, so degrees × \(\pi/180\) gives radians.

Advertisement

More Worked Examples

Example 1: exact value of cos(15°)

Write 15° = 45° − 30° and use \(\cos(a-b)=\cos a\cos b+\sin a\sin b\) with a = 45°, b = 30°.

  1. Substitute: \(\cos 15^\circ = \cos 45^\circ\cos 30^\circ + \sin 45^\circ\sin 30^\circ\)
  2. Insert exact values: $$\cos 15^\circ = \frac{\sqrt{2}}{2}\cdot\frac{\sqrt{3}}{2} + \frac{\sqrt{2}}{2}\cdot\frac{1}{2}$$
  3. Multiply: \(\dfrac{\sqrt{6}}{4} + \dfrac{\sqrt{2}}{4}\)
  4. Combine: $$\cos 15^\circ = \frac{\sqrt{6}+\sqrt{2}}{4} \approx \frac{2.4495 + 1.4142}{4} = \frac{3.8637}{4} \approx 0.9659$$

Example 2: sin(a − b) in radians, a = π/3, b = π/6

Use \(\sin(a-b)=\sin a\cos b-\cos a\sin b\).

  1. Substitute: \(\sin\left(\tfrac{\pi}{3}-\tfrac{\pi}{6}\right) = \sin\tfrac{\pi}{3}\cos\tfrac{\pi}{6} - \cos\tfrac{\pi}{3}\sin\tfrac{\pi}{6}\)
  2. Insert exact values: $$\frac{\sqrt{3}}{2}\cdot\frac{\sqrt{3}}{2} - \frac{1}{2}\cdot\frac{1}{2}$$
  3. Multiply: \(\dfrac{3}{4} - \dfrac{1}{4} = \dfrac{1}{2}\)
  4. Check: \(\pi/3 - \pi/6 = \pi/6\) and \(\sin(\pi/6) = 0.5\). ✓

Example 3: verification that sin(90° − 30°) = cos 30°

  1. Substitute: \(\sin(90^\circ-30^\circ) = \sin 90^\circ\cos 30^\circ - \cos 90^\circ\sin 30^\circ\)
  2. Insert values: \(1\cdot\dfrac{\sqrt{3}}{2} - 0\cdot\dfrac{1}{2}\)
  3. Result: \(\dfrac{\sqrt{3}}{2} \approx 0.8660 = \cos 30^\circ\). ✓ This is the cofunction identity \(\sin(90^\circ - x)=\cos x\).

Example 4: negative angle, a = 30°, b = −45°

Compute \(\cos(a+b)\) using \(\cos(a+b)=\cos a\cos b-\sin a\sin b\). Since cosine is even and sine is odd, \(\cos(-45^\circ)=\tfrac{\sqrt{2}}{2}\) and \(\sin(-45^\circ)=-\tfrac{\sqrt{2}}{2}\).

  1. Substitute: $$\cos(30^\circ + (-45^\circ)) = \frac{\sqrt{3}}{2}\cdot\frac{\sqrt{2}}{2} - \frac{1}{2}\cdot\left(-\frac{\sqrt{2}}{2}\right)$$
  2. Simplify: \(\dfrac{\sqrt{6}}{4} + \dfrac{\sqrt{2}}{4} = \dfrac{\sqrt{6}+\sqrt{2}}{4} \approx 0.9659\)
  3. This equals \(\cos(-15^\circ)=\cos 15^\circ\), matching Example 1. ✓

FAQ

Why do the cosine signs flip? The minus sign comes directly from the derivation using the unit circle and the rotation of points; it is a defining feature of the cosine identity.

Can I use negative angles? Yes. Negative inputs work correctly and follow the standard even/odd properties of sine and cosine.

Are these the same as the angle addition formulas? Yes — "sum and difference identities" and "angle addition/subtraction formulas" refer to the same set of identities.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators