Intermediate

Sum & Difference Identities Calculator — sin, cos, tan of A±B

Enter two angles A and B in degrees. The calculator applies the six sum and difference identities — sin(A±B), cos(A±B), and tan(A±B) — showing the numeric values and the full substitution for each formula.

°

First angle in degrees

°

Second angle in degrees
Sum: sin(A+B)
sin(45°+30°) = 0.965926
sin(A+B)
0.965926
cos(A+B)
0.258819
tan(A+B)
3.732051
sin(A−B)
0.258819
cos(A−B)
0.965926
tan(A−B)
0.267949
sin(θ) wave phase-shifted by A + B
Sum identities — A + B
1

sin(A) = sin(45°)

0.7071067812
2

cos(A) = cos(45°)

0.7071067812
3

sin(B) = sin(30°)

0.5
4

cos(B) = cos(30°)

0.8660254038
5

sin(A+B) = sinA·cosB + cosA·sinB

0.7071067812·0.8660254038 + 0.7071067812·0.5 = 0.9659258263
6

cos(A+B) = cosA·cosB − sinA·sinB

0.7071067812·0.8660254038 − 0.7071067812·0.5 = 0.2588190451
=

tan(A+B) = (tanA + tanB) / (1 − tanA·tanB)

(1 + 0.5773502692) / (1 − 1·0.5773502692) = 3.7320508076
Difference identities — A − B
1

sin(A−B) = sinA·cosB − cosA·sinB

0.7071067812·0.8660254038 − 0.7071067812·0.5 = 0.2588190451
2

cos(A−B) = cosA·cosB + sinA·sinB

0.7071067812·0.8660254038 + 0.7071067812·0.5 = 0.9659258263
=

tan(A−B) = (tanA − tanB) / (1 + tanA·tanB)

(1 − 0.5773502692) / (1 + 1·0.5773502692) = 0.2679491924
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

sin(A±B) = sinA cosB ± cosA sinB; cos(A±B) = cosA cosB ∓ sinA sinB; tan(A±B) = (tanA±tanB)/(1∓tanA tanB). These exact identities work for any angles. They are used to find exact trig values, derive double-angle and half-angle formulas, and simplify calculus expressions.

Formula
sin(A±B) = sinA·cosB ± cosA·sinB • cos(A±B) = cosA·cosB ∓ sinA·sinB • tan(A±B) = (tanA ± tanB)/(1 ∓ tanA·tanB)
How this is calculated

The sum and difference identities express the sine, cosine, and tangent of the sum or difference of two angles entirely in terms of sines and cosines of the original angles. They are fundamental identities in trigonometry — not approximations — true for any angles A and B.

For sine: sin(A+B) = sin A cos B + cos A sin B and sin(A−B) = sin A cos B − cos A sin B. The signs switch because you are rotating in the opposite direction. For cosine the sign rule is reversed: cos(A+B) = cos A cos B − sin A sin B (note the minus) and cos(A−B) = cos A cos B + sin A sin B. For tangent, dividing sin(A±B) by cos(A±B) and simplifying yields tan(A±B) = (tan A ± tan B) / (1 ∓ tan A tan B). Tangent is undefined when the denominator equals zero, which occurs at certain angle combinations (e.g. A = 45° and B = 45° for the sum, because tan 90° is undefined).

These identities are used to derive other identities (double-angle, half-angle, product-to-sum), to expand expressions in calculus and Fourier analysis, and to compute exact values of non-standard angles — for example sin(75°) = sin(45°+30°) = (√6+√2)/4.

Frequently asked questions

It follows from the geometry of rotation: when you combine two rotations, the cosine of the total angle involves a subtraction because the x-component (cosine) of the combined rotation picks up a cross-term with a negative sign. This is easiest to see by deriving the identity from the rotation matrix or from Euler's formula.

tan(A+B) is undefined whenever its denominator 1 − tan A·tan B = 0, i.e. when tan A·tan B = 1. This means A+B is an odd multiple of 90° (where the combined angle lands on a vertical line). For example A = 30°, B = 60° gives tan 30°·tan 60° = (1/√3)·√3 = 1, making tan(90°) undefined.

The identities are equally valid in radians — the formulas do not depend on the unit. This calculator accepts degrees for convenience; to use radians, convert first: radians = degrees × π/180.

Also known as

sum difference identities calculator
sin a plus b formula
cos a minus b calculator
angle addition formula trig
trig sum identity evaluator
sin cos tan of sum of angles
trigonometric addition identities

APA

TG we-Calculate Editorial Team. (2026). Sum & Difference Identities Calculator — sin, cos, tan of A±B [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/sum-difference-identities-calculator

Chicago

TG we-Calculate Editorial Team. "Sum & Difference Identities Calculator — sin, cos, tan of A±B." TG we-Calculate. 2026. https://we-calculate.com/calculator/sum-difference-identities-calculator.

IEEE

TG we-Calculate Editorial Team, "Sum & Difference Identities Calculator — sin, cos, tan of A±B," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/sum-difference-identities-calculator

BibTeX

@misc{wecalculate_sum_difference_identities_calculator, title = {Sum & Difference Identities Calculator — sin, cos, tan of A±B}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/sum-difference-identities-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?