Trigonometry is built on a rich web of equalities — the trigonometric identities — that hold for every angle without exception. Where a conditional equation like sin(θ) = 0.5 has only specific solutions, an identity such as sin²θ + cos²θ = 1 is valid for every real number θ. This calculator brings all the major identity families into one place and computes them numerically so you can verify your working, spot patterns, and build intuition.
What this calculator covers
Nine identity families are available from the dropdown:
- Basic trig functions — sin, cos, tan, csc, sec, cot at your chosen angle.
- Pythagorean identities —
sin²θ + cos²θ = 1and its sec/csc variants, all confirmed simultaneously. - Double-angle formulas — all four forms of
sin(2θ)andcos(2θ), plustan(2θ). - Half-angle formulas —
sin(θ/2),cos(θ/2),tan(θ/2)in both the radical form and the quotient form. - Sum and difference —
sin(A±B),cos(A±B),tan(A±B)using two separate angles A and β. - Product-to-sum — converts
2sinA cosB,2cosA cosB,2sinA sinBinto sums of single-argument functions. - Power-reduction — expresses
sin²θ,cos²θ,sin³θ,cos³θ,sin⁴θ,cos⁴θin terms of multiples of θ. - Co-function identities —
sin(θ) = cos(90°−θ)and the odd/even symmetry rules. - Inverse trig — evaluates
arcsin(sin θ),arccos(cos θ),arctan(tan θ)and related compositions. - Solve for angle — given a value x and a function name, returns the principal angle θ such that
fn(θ) = x.
How it works
All computation runs in your browser using JavaScript’s built-in Math.sin, Math.cos, Math.tan, Math.asin, Math.acos, and Math.atan — all operating in radians. Degree inputs are multiplied by π/180 before use. Results are rounded to 8 significant figures using parseFloat(n.toFixed(8)), which strips trailing zeros and shows only meaningful precision.
For the product-to-sum panel the calculator shows both the left-hand side (e.g. 2 sinA cosB) and the right-hand side (sin(A+B) + sin(A−B)) so you can confirm they match numerically. Any result that is mathematically undefined (e.g. tan(90°)) is displayed as “undefined” rather than Infinity.
Worked example — double-angle identities at θ = 30°
Set the unit to Degrees, select Double-Angle, and enter 30. You should see:
| Identity | Value |
|---|---|
| sin(2θ) = 2sinθ cosθ | 0.8660254 |
| cos(2θ) = cos²−sin² | 0.5 |
| cos(2θ) = 1−2sin² | 0.5 |
| cos(2θ) = 2cos²−1 | 0.5 |
| tan(2θ) = 2tan/(1−tan²) | 1.7320508 |
All three forms of cos(60°) return exactly 0.5, confirming the identities. The value 1.7320508 for tan(60°) is √3, which you can verify: √3 ≈ 1.7320508.
Worked example — solving for an angle
Switch to Solve for Angle, choose sin, and enter 0.5. The result is 30° (π/6 radians) — the principal value. If the problem domain requires all solutions, you add 360°·n (for sine: also 150° + 360°·n) by hand.
Formula note
The identities computed here follow the SOHCAHTOA definitions of sine, cosine, and tangent on the unit circle. Angles are unrestricted real numbers; co-terminal angles (differing by multiples of 360°) yield identical trig-function values. The inverse functions return principal values only: arcsin ∈ [−90°, 90°], arccos ∈ [0°, 180°], arctan ∈ (−90°, 90°). This is standard for all calculators and programming languages.