Trig calculator: sin, cos, tan and their inverses

sin, cos, tan, sec, csc and cot of an angle in degrees, radians or gradians, exact at multiples of 15°, plus inverse functions with all solutions.

Drafted with AI writing toolsUpdated Checked examples: 13

Expressions work, e.g. pi/4 with the unit set to radians
Try
Result
Result: 0.5
Maximum decimal places: 10; Nearest, ties away from zero
Exact value
1/2
cos
0.8660254038
tan
0.5773502692
sec
1.1547005384
csc
2
cot
1.7320508076
Angle in radians
0.5235987756rad
Reference angle
30°
Position
Quadrant I

sin 30° = 0.5 (exactly 1/2). Position: Quadrant I. The point on the unit circle is (0.866, 0.5).

Unit circle: P = (cos θ, sin θ)

sin θcos θ30°P
All six functions at 30° Rows: 6
FunctionValueExact
sin0.51/2
cos0.866√3/2
tan0.5774√3/3
sec1.15472√3/3
csc22
cot1.7321√3
How it's calculated S
  1. Angle

    30∘30^\circ
  2. Position on the unit circle

    Quadrant I; reference angle 30°.

  3. Sine and cosine

    sin⁡θ=0.5,cos⁡θ=0.8660254038\sin\theta = 0.5,\qquad \cos\theta = 0.8660254038
  4. sin from sine and cosine

    sin⁡θ=0.5\sin\theta = 0.5

    Exact: sin 30° = 1/2.

About the trig calculator

Enter an angle in degrees, radians or gradians to get all six trigonometric functions. Sine and cosine are the coordinates of the matching point on the unit circle; the rest follow as tan = sin/cos, sec = 1/cos, csc = 1/sin and cot = cos/sin. At multiples of 15° the exact surd form is shown as well, such as sin 60° = √3/2. The inverse mode turns a value back into an angle and lists every angle that shares it.

The default, sin 30°, is exactly 1/2, and the drawing puts the point at (0.866, 0.5). The same functions convert between angles and slopes: a roof pitched at 37° rises tan 37° = 0.7536 m per metre of run.

Principal values follow the NIST Digital Library of Mathematical Functions: arcsin returns [−90°, 90°], arctan (−90°, 90°), and arccos [0°, 180°]. arccot uses the continuous range (0°, 180°), which differs from the DLMF definition for negative inputs.

How to find sin, cos and tan of an angle

On a unit circle, the point at angle θ has coordinates (cos θ, sin θ), and tan θ = sin θ/cos θ. So sin 30° = 1/2, cos 180° = −1 and tan 45° = 1. Check the angle's unit first: sin 30 in radians is −0.988.

Degrees, radians and gradians

One full turn is 360° = 2π rad = 400 grad, so multiply degrees by π/180 to get radians. These three inputs describe the same 30° angle and give the same values; 100/3 is an exact number of gradians.

Angle unitAngle inputsincostan
Degrees300.50.86602540380.5773502692
Radianspi/60.50.86602540380.5773502692
Gradians100/30.50.86602540380.5773502692

The same number in a different unit is a different angle, so a bare "cos 1" or "sin 30" has two answers. The unit is set separately, degrees unless changed, and never inferred from the number.

FunctionAngle inputDegrees resultRadians result
cos10.99984769520.5403023059
sin10.01745240640.8414709848
cos300.86602540380.1542514499
sin300.5-0.9880316241

Calculus and most physics formulas work in radians; triangle and surveying problems usually give degrees. The OpenStax unit-circle lesson derives the coordinates behind these values.

Values of sin, cos and tan for common angles

All angles in this chart are in degrees. Decimals are rounded to ten places, and "undefined" marks a division by zero.

Angle (degrees)sincostan
0010
150.25881904510.96592582630.2679491924
300.50.86602540380.5773502692
450.70710678120.70710678121
600.86602540380.51.7320508076
750.96592582630.25881904513.7320508076
9010undefined
1200.8660254038-0.5-1.7320508076
1350.7071067812-0.7071067812-1
1500.5-0.8660254038-0.5773502692
1800-10
225-0.7071067812-0.70710678121
270-10undefined
360010

The exact values come from the 30-60-90 and 45-45-90 triangles: sin 30° = 1/2, sin 45° = √2/2 and sin 60° = √3/2, with cosine running the same values in reverse. Fifteen-degree steps add forms such as sin 15° = (√6 − √2)/4 and tan 15° = 2 − √3.

Signs follow the quadrant. Between 90° and 180° sine is positive and cosine negative, so cos 120° = −1/2; between 180° and 270° both are negative.

tan 90° is undefined because cos 90° = 0. Just below it the value grows without limit, tan 89° ≈ 57.29, but 90° itself has no tangent.

Angles above 360° and negative angles

Sine and cosine repeat every 360°, and tangent and cotangent every 180°. So sin 855° = sin 135° = √2/2 ≈ 0.7071067812, and cot 570° = cot 30° = √3 ≈ 1.7320508076.

Sine is an odd function and cosine an even one: sin(−30°) = −1/2, while cos(−30°) = cos 30° ≈ 0.8660254038. The reference angle is the acute angle to the x-axis, 45° for both 135° and 855°.

Is sin 37° equal to 3/5?

No. In a 3-4-5 right triangle the angle with sine 3/5 and cosine 4/5 is about 36.869898°, which physics problems round to 37°. At exactly 37°, sin ≈ 0.6018150232 and cos ≈ 0.7986355100: close to 0.6 and 0.8, but not equal.

Angle (degrees)sincostan
370.60181502320.798635510.7535540501
530.798635510.60181502321.3270448216
180.30901699440.95105651630.3249196962
7.50.13052619220.99144486140.1316524976
11.250.1950903220.98078528040.1989123674
67.50.92387953250.38268343242.4142135624

Because 37° and 53° add to 90°, the sine of one is the cosine of the other. Some angles off the 15° grid also have exact forms: sin 18° = (√5 − 1)/4 and tan 67.5° = 1 + √2.

Secant, cosecant and cotangent

The reciprocal functions are sec θ = 1/cos θ, csc θ = 1/sin θ and cot θ = cos θ/sin θ (NIST DLMF §4.14).

Tangent and secant are undefined wherever cos θ = 0, at 90° and 270°; cosecant and cotangent wherever sin θ = 0, at 0° and 180°. So cot 90° is exactly 0, while cot 0° is undefined. OpenStax covers these restrictions.

Inverse trig functions: arcsin, arccos and arctan

An inverse function returns the angle with a given value: arcsin 0.5 = 30°. The notation sin⁻¹ x means arcsin x, not 1/sin x, which is the cosecant.

Inverse functionValueDegrees resultRadians result
arcsin0.5300.5235987756
arccos-0.51202.0943951024
arctan1450.7853981634
arccot-11352.3561944902

Each inverse returns one principal angle: arcsin in [−90°, 90°], arccos in [0°, 180°] and arctan in (−90°, 90°), following NIST DLMF §4.23.

Arccot here uses the continuous range (0°, 180°), which differs from DLMF's arctan(1/x) for negative x, so arccot(−1) is 135°, not −45°.

Other angles share the same value. sin θ = 0.5 for θ = 30° + 360°k or 150° + 360°k, and tan θ = 1 for θ = 45° + 180°k, where k is any integer.

The principal range also means arccos does not always undo cos: cos 240° = −0.5, but arccos(−0.5) = 120°. Arcsin and arccos accept values from −1 to 1, and arcsec and arccsc need x ≤ −1 or x ≥ 1.

Common mistakes

  • The wrong angle unit. sin 30 is 0.5 in degrees and about −0.988 in radians, and pi/6 typed with degrees selected means 0.5236°, whose sine is about 0.009138.
  • Reading sin⁻¹ as a reciprocal. sin⁻¹ 0.5 = 30°, but 1/sin 30° = csc 30° = 2.
  • Writing a huge number for tan 90°. It is undefined, not large.
  • Treating 37° as exactly 3/5. The 3-4-5 angle is 36.87°.
  • Stopping at one inverse answer. 150° has the same sine as 30°.

Angle formats

  • Units: degrees, radians or gradians; inverse results come out in the unit selected.
  • Expressions: pi/4 in radians, 100/3 in gradians, and mixed numbers such as 37+1/2 for 37½°.
  • Exact forms are given at multiples of 15°, such as √3/2 or 2 − √3.

For sides and angles of a triangle, use the right triangle calculator or the triangle solver. To convert an angle written in degrees, minutes and seconds, use the angle converter first.

Worked examples

sin 30°

I want
Function of an angle
Function
sin
Angle
30
Angle unit
Degrees
Result
0.5
Exact value
1/2
cos
0.8660254038

Checked against: Standard special value (A&S Table 4.3)

tan 45°

I want
Function of an angle
Function
tan
Angle
45
Angle unit
Degrees
Result
1
Exact value
1
sec
1.4142135624

Checked against: Independent calculation

cos 120° (second quadrant)

I want
Function of an angle
Function
cos
Angle
120
Angle unit
Degrees
Result
-0.5
Exact value
−1/2
Reference angle
60 °
Position
Quadrant II

Checked against: cos(180° − 60°) = −cos 60° = −1/2

sin(π/4) in radians

I want
Function of an angle
Function
sin
Angle
pi/4
Angle unit
Radians
Result
0.7071067812
Exact value
√2/2
Angle in degrees
45 °

Checked against: sin(pi/4) = √2/2

Questions

How do you convert degrees to radians?

Multiply by π/180: 30° is π/6 ≈ 0.5236 rad, 45° is π/4 ≈ 0.7854 rad and 180° is π rad. To go back, multiply radians by 180/π ≈ 57.2958. Mixing the two is the most common trig mistake: sin 30 with the angle read as radians is −0.988, not 0.5.

What are the exact values of sin, cos and tan at 30°, 45° and 60°?

sin 30° = 1/2, sin 45° = √2/2 ≈ 0.7071 and sin 60° = √3/2 ≈ 0.8660; cosine takes the same values in reverse order, so cos 30° = √3/2 and cos 60° = 1/2. tan 30° = √3/3 ≈ 0.5774, tan 45° = 1 and tan 60° = √3 ≈ 1.7321. All of them come from the 30-60-90 and 45-45-90 triangles.

Why is tan 90° undefined?

Because tan θ = sin θ / cos θ and cos 90° = 0, so the ratio divides by zero. As θ approaches 90° from below, tan θ grows without bound: tan 89° ≈ 57.29 and tan 89.9° ≈ 572.96. The same happens at 270° and every 90° + 180°k. Secant is undefined at those angles too, and cosecant and cotangent wherever sin θ = 0.

Is sin⁻¹ the same as 1/sin?

No. sin⁻¹ x, also written arcsin x, is the inverse function: the angle whose sine is x, so sin⁻¹ 0.5 = 30°. 1/sin x is the reciprocal, called cosecant: csc 30° = 1/0.5 = 2. The clash arises because sin² x means (sin x)², while the −1 exponent on a function name means its inverse; writing arcsin avoids the ambiguity.

Why does arcsin give only one angle?

A function must return a single value, so arcsin is restricted to a principal range of −90° to 90° (DLMF §4.23). Every other angle with the same sine follows from θ and 180° − θ plus whole turns: sin θ = 0.5 for θ = 30° + 360°k or 150° + 360°k, with k any integer. For arccos the range is 0° to 180° and the other family is −θ + 360°k.

About this calculator

sec⁡θ=1cos⁡θ,csc⁡θ=1sin⁡θ,cot⁡θ=cos⁡θsin⁡θ,1∘=π180 rad=109 grad\sec\theta = \frac{1}{\cos\theta},\quad \csc\theta = \frac{1}{\sin\theta},\quad \cot\theta = \frac{\cos\theta}{\sin\theta},\quad 1^\circ = \frac{\pi}{180}\,\text{rad} = \frac{10}{9}\,\text{grad}

Sources

  1. NIST Digital Library of Mathematical Functions §4.14 (definitions) and §4.23 (inverse trigonometric functions, principal values)
  2. Abramowitz & Stegun, Handbook of Mathematical Functions, Table 4.3 — special values of the trigonometric functions

Checked against references

This calculator includes 13 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.