Skip to content

Trigonometry Calculator

Type an angle to get sin, cos, tan and their reciprocals, with exact values like √3/2 and a unit circle. Or type a value to get the angle back, with every answer from 0° to 360°.

csc⁻¹, sec⁻¹, cot⁻¹, atan2, a range, decimals, hyperbolic and identities
What do you want to find?
°

Type 30, −45, 2.5, π/6 (radians), 30°15′20″ or 30 15 20 (degrees, minutes, seconds).

Special angles
Angles in
Decimal places
ResultUpdates as you typeAbout this angleWorking, step by step

    How your trig values are worked out

    Turn the angle into degrees, find its quadrant, read the point (cos θ, sin θ) on the unit circle, then divide for the rest.

    1. 1

      The angle

      30° = π/6 radθ = 30°

    2. 2

      Find the quadrant

      Quadrant 1reference 30°all positive

    3. 3

      Point on the circle

      cos = 0.866025sin = 0.5(0.866, 0.5)

    4. 4

      Divide for the rest

      tan = sin ÷ cos= 0.57735csc 2 · sec 1.1547

    Read more: the formulas, a worked example, exact values and the inverse functions

    Put a circle of radius 1 (the unit circle) on a graph, centred at (0, 0). Start at the point (1, 0) and turn anticlockwise by the angle θ. The point you land on is (cos θ, sin θ): cosine is how far across, sine is how far up. Every other function comes from those two. Turning clockwise gives a negative angle, and going past 360° just goes round again. For an angle in a right triangle, the same definitions give the familiar SOH CAH TOA. To solve a whole triangle, use the triangle calculator or, for a right triangle, the Pythagorean theorem calculator.

    The formula

    Point on the unit circle at angle θ = (cos θ, sin θ)
    Right triangle: sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse, tan θ = opposite ÷ adjacent
    tan θ = sin θ ÷ cos θ (undefined when cos θ = 0)
    csc θ = 1 ÷ sin θ, sec θ = 1 ÷ cos θ, cot θ = 1 ÷ tan θ = cos θ ÷ sin θ
    Radians = degrees × π ÷ 180. Gradians = degrees × 10 ÷ 9 (400 grad in a full turn)
    Degrees from D° M′ S″ = D + M ÷ 60 + S ÷ 3600
    Reference angle: θ in quadrant 1; 180° − θ in quadrant 2; θ − 180° in quadrant 3; 360° − θ in quadrant 4
    sin⁻¹ gives −90° to 90°, cos⁻¹ gives 0° to 180°, tan⁻¹ gives between −90° and 90°
    All answers: sin θ = x → θ = sin⁻¹ x + 360°k or 180° − sin⁻¹ x + 360°k; cos θ = x → θ = ±cos⁻¹ x + 360°k; tan θ = x → θ = tan⁻¹ x + 180°k

    Worked example

    θ = 30° (the starting value).

    • In radians: 30 × π ÷ 180 = π/6 = 0.523599 rad. In gradians: 30 × 10 ÷ 9 = 33.333333 grad.
    • 30° is between 0° and 90°, so it is in quadrant 1, every function is positive and the reference angle is 30° itself.
    • The point on the unit circle is (√3/2, 1/2), so sin 30° = 1/2 = 0.5 and cos 30° = √3/2 = 0.866025.
    • tan 30° = sin ÷ cos = 0.5 ÷ 0.866025 = 1/√3 = √3/3 = 0.57735.
    • csc 30° = 1 ÷ 0.5 = 2. sec 30° = 1 ÷ 0.866025 = 2√3/3 = 1.154701. cot 30° = 1 ÷ 0.57735 = √3 = 1.732051.
    • Check: sin² + cos² = 0.25 + 0.75 = 1.
    • Going back: sin⁻¹(0.5) = 30°, and the other answer from 0° to 360° is 180° − 30° = 150°.

    Exact values of the special angles

    θRadianssin θcos θtan θ
    0°0010
    30°π/61/2√3/2√3/3
    45°π/4√2/2√2/21
    60°π/3√3/21/2√3
    90°π/210undefined

    A handy pattern for sin at 0°, 30°, 45°, 60° and 90°: √0/2, √1/2, √2/2, √3/2, √4/2. Cosine runs the same list backwards. The calculator also knows the less common exact values:

    θsin θcos θtan θ
    15°(√6 − √2)/4(√6 + √2)/42 − √3
    18°(√5 − 1)/4√(10 + 2√5)/4√(25 − 10√5)/5
    22.5°√(2 − √2)/2√(2 + √2)/2√2 − 1
    36°√(10 − 2√5)/4(√5 + 1)/4√(5 − 2√5)
    54°, 67.5°, 72°, 75°Same numbers with sin and cos swapped (e.g. sin 75° = cos 15°), and tan becomes 1 ÷ tan

    Signs in each quadrant (ASTC)

    QuadrantAnglesPositiveReference angle
    10° to 90°Allθ
    290° to 180°Sin (and csc)180° − θ
    3180° to 270°Tan (and cot)θ − 180°
    4270° to 360°Cos (and sec)360° − θ

    To find any value: work out the reference angle, take the function of that, and give it the sign for the quadrant. sin 210° = −sin 30° = −1/2, because 210° is in quadrant 3, where sine is negative.

    Inverse functions and every answer

    sin⁻¹, cos⁻¹ and tan⁻¹ (also written arcsin, arccos and arctan) turn a value back into an angle. Because the functions repeat, each one picks a single answer, the principal value. To list every answer from 0° to 360°: for sine use θ and 180° − θ; for cosine use θ and 360° − θ; for tangent use θ and θ + 180°. Then add or take away 360° (180° for tan and cot) to bring them into the range you want. sin⁻¹ and cos⁻¹ only accept values from −1 to 1, while csc⁻¹ and sec⁻¹ only accept values of 1 or more, or −1 or less. In Advanced, cot⁻¹ follows the common convention of answers between 0° and 180°.

    atan2(y, x)

    tan⁻¹(y ÷ x) cannot tell the point (3, −4) from (−3, 4), since both give y ÷ x = −4/3. atan2 looks at the signs of x and y separately and gives the angle of the point from −180° to 180°. For y = 3 and x = −4, tan⁻¹(3 ÷ −4) = −36.87°, but the point is in quadrant 2, so atan2 adds 180°: 143.13°. Spreadsheets write it as ATAN2(x, y), with x first.

    Hyperbolic functions and identities

    In Advanced, sinh, cosh and tanh (and their reciprocals) are worked out for the angle in radians: sinh x = (eˣ − e⁻ˣ) ÷ 2 and cosh x = (eˣ + e⁻ˣ) ÷ 2. They describe a hanging chain or cable, not a circle. The identity check uses your numbers to confirm sin²θ + cos²θ = 1, 1 + tan²θ = sec²θ, 1 + cot²θ = csc²θ, sin 2θ = 2 sin θ cos θ and cos 2θ = cos²θ − sin²θ.

    The calculator works in double precision and rounds only for display. Values that should be exactly 0, 1 or 0.5 are cleaned of floating-point dust, and functions that divide by zero show “undefined”.

    Common questions

    What is sin 30°?

    sin 30° is exactly 1/2, or 0.5. On the unit circle, 30° lands at the point (√3/2, 1/2), and the sine is the y value. cos 30° is √3/2 ≈ 0.866025 and tan 30° is 1/√3 = √3/3 ≈ 0.57735.

    Why is tan 90° undefined?

    tan θ = sin θ ÷ cos θ. At 90°, sin is 1 and cos is 0, so tan 90° would be 1 ÷ 0, which has no value. The tangent shoots up towards infinity just below 90° and comes up from minus infinity just above it. The same happens at 270°. sec 90°, csc 0° and cot 0° are undefined for the same reason.

    Why does my calculator say sin 180° = 1.2e-16?

    Computers store π as a decimal that is very slightly off, so sin(π) comes out as about 0.00000000000000012 instead of 0. This calculator works in degrees for special angles and cleans up that floating-point dust, so sin 180° shows 0 and cos 90° shows 0.

    How do I convert degrees to radians?

    Multiply by π and divide by 180. 30° × π ÷ 180 = π/6 ≈ 0.523599 rad. To go back, multiply radians by 180 and divide by π. One radian is about 57.2958°. Gradians split a full turn into 400, so 90° = 100 grad.

    Why does sin⁻¹(0.5) only give 30° when 150° works too?

    Every sine value comes from many angles, so the inverse function picks one: the principal value, between −90° and 90° for sin⁻¹. Here 30°. The other answer in 0–360° is 180° − 30° = 150°, and you can add any number of 360°s to either. The calculator lists them all.

    What does ASTC (All Students Take Calculus) mean?

    It tells you which functions are positive in each quadrant, going anticlockwise from the top right: All in quadrant 1 (0–90°), Sine in quadrant 2 (90–180°), Tangent in quadrant 3 (180–270°) and Cosine in quadrant 4 (270–360°). Their reciprocals (csc, cot, sec) follow the same signs.

    Related calculators

    Triangle calculatorSolve any triangle from SSS, SAS, ASA, AAS or SSA (both answers when two fit), right triangles by Pythagoras, or three points, with a drawing and the working.Pythagorean theorem calculatorSolve a right triangle from any two of the sides, angles, area, perimeter or height, with exact square roots, steps and a drawing, plus box diagonals, the 3-4-5 corner check and triples.Scientific calculatorTrig, logs, powers, roots, factorials, nCr and nPr, memory and history, with degrees, radians or gradians and answers as fractions.Circle calculatorRadius, diameter, circumference and area from any one, in terms of π, plus arc length, sector, chord, segment and ring area, with steps.

    Made by Zulu Calculator, part of AlphaZulu LLC. Formulas are shown in full and rule figures are checked against official sources; see how we build calculators.

    Embed this calculator on your site

    Free to use on your website or blog. Paste this code where you want the calculator to appear. Please keep the credit link.

    Trigonometry calculator by Zulu Calculator ↗