Sum and Difference Formulas Calculator

Apply the angle addition and subtraction formulas to two angles.

Degrees by default, or exact radians like π/4.

Operation

Add the two angles or subtract B from A.

Degrees by default, or exact radians like π/6.

Unit

Choose degrees or radians.

Try

Result

You enteredA=45∘, B=30∘, A+BA = 45^\circ,\ B = 30^\circ,\ A + B

sin⁡(A+B)=6+24, cos⁡(A+B)=6−24, tan⁡(A+B)=2+3\displaystyle \sin(A + B) = \frac{\sqrt{6} + \sqrt{2}}{4},\ \cos(A + B) = \frac{\sqrt{6} - \sqrt{2}}{4},\ \tan(A + B) = 2 + \sqrt{3}

Decimal

sin⁡(A+B)≈0.965926,cos⁡(A+B)≈0.258819,tan⁡(A+B)≈3.732051\displaystyle \sin(A + B) \approx 0.965926, \cos(A + B) \approx 0.258819, \tan(A + B) \approx 3.732051
Show the work
  1. Sine and cosine of A and B

    You gave A=45∘A = 45^\circ and B=30∘B = 30^\circ. The formulas need the sine and cosine of each angle, which are exact here.

    sin⁡A=22, cos⁡A=22; sin⁡B=12, cos⁡B=32\sin A = \frac{\sqrt{2}}{2},\ \cos A = \frac{\sqrt{2}}{2};\ \sin B = \frac{1}{2},\ \cos B = \frac{\sqrt{3}}{2}
  2. Angle addition formulas

    Sine and cosine of A+BA + B are built from the sines and cosines of AA and BB separately. They are not sin⁡A+sin⁡B\sin A + \sin B.

    Using sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B,cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B,tan⁡(A+B)=tan⁡A+tan⁡B1−tan⁡Atan⁡B\sin(A + B) = \sin A\cos B + \cos A\sin B,\quad \cos(A + B) = \cos A\cos B - \sin A\sin B,\quad \tan(A + B) = \frac{\tan A + \tan B}{1 - \tan A\tan B}

  3. Sine of A + B

    Put the four values into the sine formula: sine times cosine, plus cosine times sine.

    sin⁡(A+B)=22⋅32+22⋅12=6+24\begin{aligned} \sin(A + B) &= \frac{\sqrt{2}}{2} \cdot \frac{\sqrt{3}}{2} + \frac{\sqrt{2}}{2} \cdot \frac{1}{2} \\ &= \frac{\sqrt{6} + \sqrt{2}}{4} \end{aligned}
  4. Cosine of A + B

    Put the same values into the cosine formula, whose middle sign is the opposite of the one in A+BA + B.

    cos⁡(A+B)=22⋅32−22⋅12=6−24\begin{aligned} \cos(A + B) &= \frac{\sqrt{2}}{2} \cdot \frac{\sqrt{3}}{2} - \frac{\sqrt{2}}{2} \cdot \frac{1}{2} \\ &= \frac{\sqrt{6} - \sqrt{2}}{4} \end{aligned}
  5. Tangent of A + B

    Tangent is sine over cosine, so divide the two results. This equals the tangent addition formula above.

    tan⁡(A+B)=6+246−24=2+3\begin{aligned} \tan(A + B) &= \frac{\frac{\sqrt{6} + \sqrt{2}}{4}}{\frac{\sqrt{6} - \sqrt{2}}{4}} \\ &= 2 + \sqrt{3} \end{aligned}
  6. Result

    So for A=45∘A = 45^\circ and B=30∘B = 30^\circ: sin⁡(A+B)=6+24, cos⁡(A+B)=6−24, tan⁡(A+B)=2+3\sin(A + B) = \frac{\sqrt{6} + \sqrt{2}}{4},\ \cos(A + B) = \frac{\sqrt{6} - \sqrt{2}}{4},\ \tan(A + B) = 2 + \sqrt{3}.

Worked examples