ForHosting KIT · Math

Sine of difference of angles calculator

Find the sine of one angle minus another and see how it is built: for 75° and 30° the difference is 45°, and both products of the identity appear before they are subtracted. Handy for spotting a sign slip. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Angle a
75
Angle b
30
Angle unit
Degrees
You get
Value
0.7071067812
Difference
45
Sin a
0.9659258263
Cos b
0.8660254038

The sine of a difference of angles calculator evaluates sin(A − B) by expanding it as sin(A) cos(B) − cos(A) sin(B). Enter two angles, choose degrees or radians, and receive the two product terms together with their final difference. This makes the result useful not only for obtaining a number, but also for checking homework, documenting a derivation, or confirming each part of a manual calculation.

What the sine difference identity means

The sine difference identity rewrites the sine of one angle minus another as sin(A − B) = sin(A) cos(B) − cos(A) sin(B). It is important that the expression contains two products and that the products are subtracted in this order. The first combines the sine of A with the cosine of B.

The second combines the cosine of A with the sine of B. This calculator exposes both terms before returning their difference, so the path from the inputs to the answer remains visible. That detail is especially helpful when a sign error has entered a handwritten solution.

Negative angles and cases where B is larger than A are accepted too. In those situations the ordinary sign rules for sine are preserved automatically, so sin(A − B) can correctly be negative without any special mode or manual adjustment.

Choose one unit for both angles

Both input angles must use the same selected unit. Choose degrees when the values are written with a degree symbol or come from common geometry exercises, surveying diagrams, rotations, or headings. Choose radians when the values use π-based measures, arise in calculus, or come directly from programming and scientific formulas.

The calculator converts degree inputs to radians internally because JavaScript trigonometric functions operate in radians; radian inputs are used as supplied. It then calculates sin(A), cos(B), cos(A), and sin(B), multiplies the appropriate pairs, and subtracts the second product from the first. Do not convert only one of the two angles before submitting them.

A value such as 30 interpreted as radians is entirely different from 30 degrees, and mixing units produces a valid-looking but irrelevant number. The returned angle unit and difference make the interpretation explicit. Results are rounded to twelve decimal places to keep the response stable and readable while retaining ample precision for education, ordinary engineering checks, spreadsheets, and application-level validation.

Read and verify the returned result

Start with the returned difference, which is A − B in the same unit as the inputs. Keeping these intermediate values is useful when comparing the calculator with a textbook solution, a spreadsheet formula, or another software library because a disagreement can be traced to a particular factor rather than treated as an unexplained final mismatch. For an independent reasonableness check, remember that every sine result lies from −1 through 1.

You can also subtract the angles first and evaluate the sine of that difference using another trusted method; it should agree within normal floating-point rounding. Inputs must be finite numbers within the published limit, and invalid or missing angles return a clear input error instead of a fabricated answer.

Check a trigonometry exercise

See every factor and product in the sine difference identity, making misplaced signs or swapped terms easier to identify.

Verify a spreadsheet formula

Compare a sheet's expanded formula with a deterministic result in the same angle unit before relying on a larger calculation.

Document an engineering calculation

Record the inputs, unit, intermediate terms, identity, and final value as a transparent numerical check.

What formula does the calculator use?

It uses sin(A − B) = sin(A) cos(B) − cos(A) sin(B), evaluating and returning both product terms before their difference.

Can I enter degrees and radians?

Both angles must be expressed in that same unit.

Can either angle be negative?

Yes. Finite positive, zero, and negative angles are accepted within the published absolute limit.

Why are intermediate values returned?

They show exactly how the identity was evaluated and help locate a unit, sign, multiplication, or transcription error.

Does the order of the two angles matter?

Yes. The identity subtracts the second product from the first, so A and B must go in the right order. When B is larger than A the difference is negative, and the sine can correctly come out negative too.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/trig/sin-difference

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/trig/sin-difference \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"angle_a":75,"angle_b":30}'
{
  "angle_a": 75,
  "angle_b": 30
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "trig.sin_difference",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_abs_angle1000000000000
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

The same deterministic formula is used for every request, with no approximation method, network dependency, or random behavior.

What the sine difference identity means

For example, A = 75° and B = 30° produce a difference of 45°, but the tool still evaluates the expanded identity rather than skipping directly to a memorized special-angle result.

Read and verify the returned result

Next inspect sin_a, cos_b, cos_a, and sin_b; these are the four trigonometric factors used by the identity. The first_term field is sin(A) cos(B), while second_term is cos(A) sin(B). Finally, value is first_term minus second_term and therefore the requested sine of the angle difference. API requests cost $0.002, while the browser version can perform the same deterministic calculation locally.

What does an API request cost?

Each API request costs $0.002. The browser version runs the same pure calculation locally.

Read the full KIT documentation →