Trigonometry Calculator

Enter an angle to get all six trigonometric functions at once, with exact forms such as √3/2 for special angles, or work backwards with asin, acos, atan and the other inverses.

sin 30°1/2 ≈ 0.5

A number or fraction: 30, −45, 1.2, 1/6 (with multiples of π), or π/6 and 2π/3 in radians.

sin 30°

1/2 ≈ 0.5

  • cos 30°√3/2 ≈ 0.8660254038
  • tan 30°√3/3 ≈ 0.5773502692
  • csc 30°2
  • sec 30°2√3/3 ≈ 1.154700538
  • cot 30°√3 ≈ 1.732050808
  • Angle in degrees30°
  • Angle in radiansπ/6 ≈ 0.5235987756
  • Coterminal angle (0–360°)30°
  • Reference angle30°
  • Positionquadrant I

Exact surd forms are given for multiples of 15°.

How this was calculated

  1. Your angle θ (the Greek letter theta, often used for angles) is already in degrees.θ (given)Answer: θ = 30°
  2. In a right triangle, sine (sin) is the opposite side ÷ the longest side, and cosine (cos) is the side next to the angle ÷ the longest side. 30° is a special angle, so its answers are exact. Use the matching angle between 0° and 90° (the reference angle), then set the + or − sign for where the angle points (quadrant I).Reference angle and exact valuesPut in your numbers: 30° → reference angle 30°, quadrant IAnswer: sin θ = 1/2 ≈ 0.5, cos θ = √3/2 ≈ 0.8660254038
  3. The other four functions are made from sin and cos by dividing.tan = sin/cos, csc = 1/sin, sec = 1/cos, cot = cos/sinPut in your numbers: tan = 0.5 ÷ 0.8660254038Answer: tan θ = 0.5773502692

Trigonometry in simple words

Trigonometry links the angles of a triangle to the lengths of its sides. In a right triangle (one with a square corner), pick one of the other angles. The side across from it is the opposite side, the side next to it is the adjacent side, and the longest side is the hypotenuse.

Sine (sin) = opposite ÷ hypotenuse. Cosine (cos) = adjacent ÷ hypotenuse. Tangent (tan) = opposite ÷ adjacent. The other three functions (csc, sec and cot) are just 1 divided by these.

Example: at 30°, the opposite side is always half of the hypotenuse, so sin 30° = 1/2 = 0.5. If a ladder 4 m long leans at 30° to the ground, its top is 4 × 0.5 = 2 m high.

Inverse functions such as asin work backwards: asin(0.5) asks which angle has a sine of 0.5, and the answer is 30°.

The six functions and how they relate

On the unit circle, an angle θ lands at the point (cos θ, sin θ). The other four functions follow from those two: tan θ = sin θ/cos θ, cot θ = cos θ/sin θ, sec θ = 1/cos θ and csc θ = 1/sin θ.

Whenever a denominator is zero the function is undefined. That is why tan 90° and sec 90° have no value, and why cot and csc are undefined at 0° and 180°.

Radians and degrees measure the same angle: radians = degrees × π/180. You can type an angle in radians as a decimal or with π, such as π/6 or 2π/3.

Exact values of special angles
Anglesincostan
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

Worked example: signs outside the first quadrant

For 210°, the reference angle is 210° − 180° = 30°, and 210° lies in quadrant III where sine and cosine are both negative. So sin 210° = −1/2, cos 210° = −√3/2 and tan 210° = √3/3, which is positive because the two negatives cancel.

Working backwards, acos(−0.5) = 120° = 2π/3. The inverse returns only the principal value; 240° also has a cosine of −0.5.

Principal values of the inverse functions

asin returns angles from −90° to 90°, acos from 0° to 180° and atan strictly between −90° and 90°. asin and acos only accept inputs from −1 to 1; acsc and asec only accept values of 1 or more in size.

Conventions for acot differ between textbooks. This calculator returns acot in the range 0° to 180°, so acot(−1) = 135° and acot(0) = 90°.

Graphs of the functions and their inverses

Graph mode plots any of the six functions, or sine and cosine together, over the range you choose, in degrees, radians or multiples of π. Sine, cosine, cosecant and secant repeat every 360° (2π); tangent and cotangent repeat every 180° (π).

Tangent and secant have vertical asymptotes where cos θ = 0 (90° + 180°k), and cotangent and cosecant where sin θ = 0 (180°k). The graph leaves out values larger than the clip limit, so the line breaks at each asymptote instead of joining across it. It also never connects two points on either side of one.

The inverse graphs show principal values: asin and acos exist only for −1 ≤ x ≤ 1, acsc and asec only for |x| ≥ 1, and atan and acot for every x. The table under the chart lists sample points you can copy or download.

How to use the Trigonometry Calculator

Choose what to calculate, then enter an angle, a value or a range.

  1. Choose a mode

    Pick the six functions of an angle, an inverse function, or a table over a range.

  2. Set the angle unit

    Choose degrees, radians or multiples of π.

  3. Enter the angle or value

    Type a number or fraction such as 30, π/6 or 1/2.

  4. Read the results

    See each function with exact forms where they exist, or the principal angle for an inverse.

Frequently asked questions

Why is tan 90° undefined?

tan θ = sin θ ÷ cos θ, and cos 90° = 0. Division by zero has no value, so tan 90° is undefined. Near 90° the tangent grows without limit.

How do I enter an angle in terms of π?

Choose radians and type π/6 or 2pi/3, or choose multiples of π and type just the coefficient, such as 1/6. Both give 30° and 120° exactly.

Why does asin only give one answer?

Infinitely many angles share the same sine. The inverse function returns the principal value in −90° to 90°; add multiples of 360°, or use 180° minus that angle, to find the others.

Why does the tangent graph have gaps?

tan θ = sin θ/cos θ is undefined wherever cos θ = 0, at 90°, 270° and so on. Near those angles the value grows without bound, so the graph breaks at a vertical asymptote rather than drawing a misleading vertical line.

References

Last updated . Results are estimates for informational purposes only.