Trigonometric Functions Calculator (sin, cos, tan)

Find sin, cos, tan, cot, sec, and csc for any angle in degrees, radians, or π multiples (e.g. 1/6 for π/6) — exact values for special angles.

Loading calculator…

The six functions, from the unit circle

Draw a circle of radius 1 centered at the origin. For an angle θ\theta measured from the positive x-axis, the point where its ray crosses the circle has coordinates:

cosθ=x,sinθ=y,tanθ=sinθcosθ=yx\cos\theta = x, \qquad \sin\theta = y, \qquad \tan\theta = \frac{\sin\theta}{\cos\theta} = \frac{y}{x}

The other three functions are simply reciprocals:

cotθ=1tanθ,secθ=1cosθ,cscθ=1sinθ\cot\theta = \frac{1}{\tan\theta}, \qquad \sec\theta = \frac{1}{\cos\theta}, \qquad \csc\theta = \frac{1}{\sin\theta}

Tip: The unit circle is what lets trig functions handle every angle — not just the 0°–90° range a right triangle is limited to. Negative angles, angles past 90°, even angles past a full 360° turn all land somewhere on the circle.

Degrees, radians, and π multiples

This calculator accepts an angle in any of three units:

UnitExample inputMeaning
Degrees3030°
Radians0.5236≈ π/6 rad
π multiples1/6(1/6)·π rad = 30°

The conversion between degrees and radians:

radians=degrees×π180,degrees=radians×180π\text{radians} = \text{degrees} \times \frac{\pi}{180}, \qquad \text{degrees} = \text{radians} \times \frac{180}{\pi}

So 180° = π rad, 90° = π/2, and 45° = π/4.

Worked example: 30°

sin30°=12=0.5,cos30°=320.866,tan30°=330.577\sin 30° = \frac12 = 0.5, \qquad \cos 30° = \frac{\sqrt3}{2} \approx 0.866, \qquad \tan 30° = \frac{\sqrt3}{3} \approx 0.577

csc30°=2,sec30°=2331.155,cot30°=31.732\csc 30° = 2, \qquad \sec 30° = \frac{2\sqrt3}{3} \approx 1.155, \qquad \cot 30° = \sqrt3 \approx 1.732

The angle π/6 gives exactly the same result — enter 1/6 with the unit set to "π multiples".

Exact values at special angles

Anglesincostan
0° (0)010
30° (π/6)1/2√3/2√3/3
45° (π/4)√2/2√2/21
60° (π/3)√3/21/2√3
90° (π/2)10undefined

Every multiple of 30° or 45° in any quadrant reduces to one of these five rows, with a sign from the quadrant (see below). Any other angle only has a decimal approximation — there's no simpler radical form.

When a function is undefined

tanθ\tan\theta and secθ\sec\theta divide by cosθ\cos\theta, so they're undefined wherever cosθ=0\cos\theta = 0 — at 90°, 270°, and every odd multiple of 90°. cotθ\cot\theta and cscθ\csc\theta divide by sinθ\sin\theta, undefined at 0°, 180°, 360°, and every multiple of 180°.

This is a genuine feature of the function, not an input error — the calculator reports "undefined" for exactly the functions that divide by zero at that angle, while the other four stay perfectly well-defined.

Periodicity and sign (ASTC)

  • Period: sin, cos, sec, and csc repeat every 360° (2π); tan and cot repeat every 180° (π).
  • Sign by quadrant — the classic "All Students Take Calculus" mnemonic: quadrant I, all six are positive; II, only sin (and csc); III, only tan (and cot); IV, only cos (and sec).

For example, sin 210° = -1/2: 210° sits in quadrant III (only tan/cot positive there), so sin flips negative relative to its quadrant-I reference angle of 30°.

Common mistakes

  • Wrong angle mode. Typing 30 while the unit is set to radians evaluates sin/cos/tan of 30 radians (over 1700°), not 30°.
  • Calling tan or sec at 90°. These genuinely have no value there — check for "undefined" rather than expecting a huge number.
  • Forgetting to convert a π-multiple. 2 in π-multiple mode means 2π (360°), not the angle 2°.

Where this shows up

  • Oscillation and waves — sound, light, and AC electrical signals are all modeled with sin/cos of time.
  • Rotation and graphics — any 2D rotation or angle calculation ultimately calls these six functions.
  • Solving general triangles — the Law of Cosines and Law of Sines extend right-triangle trigonometry to any triangle, acute or obtuse.

This calculator generalizes Trigonometric Ratios (SOH-CAH-TOA, limited to 0°–90° from two triangle sides) to every angle via the unit circle. It pairs naturally with Right Triangle, which solves a full right triangle's sides and angles directly.

Frequently asked questions

What is the unit circle definition of the six trig functions?
For an angle θ\theta, the point on a circle of radius 1 centered at the origin is (cosθ,sinθ)(\cos\theta, \sin\theta). From there tanθ=sinθ/cosθ\tan\theta = \sin\theta/\cos\theta, and cotθ\cot\theta, secθ\sec\theta, cscθ\csc\theta are the reciprocals of tanθ\tan\theta, cosθ\cos\theta, sinθ\sin\theta.
Why use the unit circle instead of a right triangle?
A right triangle only covers angles between 0° and 90°. The unit circle extends the same six ratios to negative angles, angles past 90°, and angles past 360° — any real number of degrees or radians.
How do I enter an angle as a multiple of π?
Switch the unit to "π multiples" and type the coefficient of π — e.g. 1/6 for π/6 (30°), or 2 for 2π (360°). A bare number like 0.5 also works and means 0.5π.
How do degrees and radians convert?
radians=degrees×π/180\text{radians} = \text{degrees} \times \pi/180, and degrees=radians×180/π\text{degrees} = \text{radians} \times 180/\pi. So 180° = π rad, 90° = π/2, and 45° = π/4.
Why is tan 90° undefined?
tan θ = sin θ / cos θ, and cos 90° = 0 — division by zero is undefined, not zero. The same happens for sec at 90° (and any odd multiple of 90°), and for cot and csc wherever sin θ = 0 (0°, 180°, …).
Which angles give exact (radical) values instead of decimals?
Multiples of 30° and 45° — 0°, 30°, 45°, 60°, 90°, and their reflections in every quadrant — have exact values built from 1, 2, and √2, √3 (e.g. sin 30° = 1/2, cos 45° = √2/2). Any other angle only has a decimal approximation.
Why do some values come out negative?
The sign follows which quadrant the angle's terminal point falls in (the ASTC rule: All positive in quadrant I, only Sine in II, only Tangent in III, only Cosine in IV). For example, sin 210° = -1/2 because 210° is in quadrant III, below the x-axis.
What's the difference between this calculator and Trigonometric Ratios?
Trigonometric Ratios (SOH-CAH-TOA) starts from two sides of a right triangle and covers only 0°–90°. This calculator starts from the angle itself (in degrees, radians, or π-multiples) and covers every angle via the unit circle.

Related calculators