🧮
🧮 Math & statistics

Trig Calculator (sin, cos, tan, sec, csc, cot)

Results update as you type.

Your numbers

Understanding the trigonometric functions calculator — concept and principle

This calculator returns all six trigonometric functions of an angle: sine, cosine, tangent and their reciprocals cosecant, secant and cotangent. You can enter the angle in degrees or radians. It is useful for checking homework, solving right triangles, resolving forces into components, and any calculation involving waves, rotation or slopes.

A 30-60-90 triangle and its six trig ratiosWith hypotenuse 2, the side opposite 30° is 1 and the adjacent side is √3, so sin 30° = 0.5, cos 30° = 0.866, tan 30° = 0.577, and their reciprocals are 2, 1.155 and 1.732.Six ratios of one 30° triangle30°hyp 2adjacent √3opp 1basicsin1/2 = 0.5cos0.866tan0.577flipped = 1 ÷ basiccsc2sec1.155cot1.7321 ÷ sin1 ÷ cos1 ÷ tansin 30° is exactly ½: the side opposite 30° is half the hypotenuse
Every trig value is a ratio of two sides; the last three are just the first three flipped.

How it is calculated

Results are shown to 10 significant digits.

The principle

Place the angle at the centre of a circle of radius 1, starting from the positive x-axis. The point where the angle's arm meets the circle has coordinates (cos θ, sin θ). In a right triangle with hypotenuse 1, cos is the adjacent side and sin is the opposite side, which is why, for any right triangle, sin = opposite ÷ hypotenuse, cos = adjacent ÷ hypotenuse and tan = opposite ÷ adjacent. The unit-circle view extends these ratios to every angle, including obtuse and negative ones, and gives the identity sin²θ + cos²θ = 1.

Worked example

  1. Default input: angle = 30, unit = degrees.
  2. θ = 30 × π ÷ 180 = π/6 ≈ 0.5235987756 rad.
  3. sin 30° = 1/2 = 0.5; cos 30° = √3/2 = 0.8660254038.
  4. tan 30° = 0.5 ÷ 0.8660254 = 1/√3 = 0.5773502692.
  5. csc 30° = 1 ÷ 0.5 = 2; sec 30° = 2/√3 = 1.154700538; cot 30° = √3 = 1.732050808.
How sin changes with AngleHow sin changes with Angle00.20.40.60.817.51522.53037.54560Example: 0.5Angle
Each point is the calculator re-run with only “Angle” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Anglesin
7.50.1305261922
150.2588190451
22.50.3826834324
300.5
37.50.608761429
450.7071067812
600.8660254038

How to read the result

sin and cos always lie between −1 and 1; csc and sec are therefore never between −1 and 1. Signs follow the quadrant: in quadrant I all are positive, in II only sin (and csc) is positive, in III only tan (and cot), in IV only cos (and sec). Values worth memorising: sin 0° = 0, sin 30° = 0.5, sin 45° = √2/2 ≈ 0.7071, sin 60° = √3/2 ≈ 0.8660, sin 90° = 1, with cos running in the reverse order.

Common mistakes

Keep in mind: Where a function is undefined (csc and cot at multiples of 180°, sec at 90° + k·180°), a calculator using floating point may show a very large number instead of "undefined". Treat such a value as undefined.

Frequently asked questions

Why is tan 90° undefined?

tan 90° = sin 90° ÷ cos 90° = 1 ÷ 0. As the angle approaches 90° from below, tan grows without bound.

How do I convert between degrees and radians?

Multiply degrees by π/180 to get radians, or radians by 180/π to get degrees. 180° = π rad.

What does sin² θ mean?

It means (sin θ)², the square of the sine, not sin(sin θ).

Sources: NIST Digital Library of Mathematical Functions, Chapter 4, §4.14 (trigonometric functions: definitions) · Abramowitz and Stegun, Handbook of Mathematical Functions, Chapter 4

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →