Geometry & Trigonometry Trigonometric Functions & Angle Measure Unit-circle definitions of the circular functions (ISO 80000-2)

Sin Cos Tan Calculator

Type an angle in degrees or radians and read all six trigonometric functions at once: sine, cosine and tangent plus their reciprocals cosecant, secant and cotangent. The calculator tells you which quadrant the angle lands in, which functions are positive there, and — when your angle is one of the standard textbook angles — the exact value in surds rather than a decimal. Angles beyond one revolution and negative angles are reduced automatically to their coterminal equivalent, and the places where the tangent and the cotangent blow up are reported as undefined instead of as a huge number.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Angle θThe angle to evaluate, measured counter-clockwise from the positive x-axis; negative values measure clockwise.30
Angle unitMatch this to how your angle was written; radians is what programming languages and calculus use.Degrees

It returns

  • sin θ — The y-coordinate of the point at angle θ on the unit circle.
  • cos θ — The x-coordinate of the same point.
  • tan θ — sin θ divided by cos θ; undefined wherever the cosine is zero.
  • csc θ
  • sec θ
  • cot θ
  • Quadrant
  • Exact values at this angle

The formula

tanθ=sinθcosθ
secθ=1cosθ
sinθ2+cosθ2=1

In plain text: sin θ = y, cos θ = x on the unit circle; tan θ = y/x

  • θThe angle, measured counter-clockwise from the positive x-axis (° or rad)
  • xThe horizontal coordinate of the point on the unit circle at angle θ (dimensionless)
  • yThe vertical coordinate of that same point (dimensionless)

The unit circle has radius 1, so the hypotenuse of the reference triangle is 1 and the ratio definitions collapse to the coordinates themselves.

Updated Category Trigonometric Functions & Angle Measure Verified against published test cases Reading time 10 min

What the six trigonometric functions measure

Draw a circle of radius 1 centred on the origin, start at the point (1, 0), and rotate counter-clockwise through an angle θ. Wherever you land, the x-coordinate of that point is cos θ and the y-coordinate is sin θ. That is the whole definition. Everything else in trigonometry is a consequence of it.

The right-triangle definitions you may have learned first — sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, tangent is opposite over adjacent — are the same statement for acute angles. On the unit circle the hypotenuse is 1, so dividing by it changes nothing and the ratios collapse to the coordinates. The advantage of the circle definition is that it keeps working past 90°, where there is no right triangle to speak of, and it explains the signs: in the second quadrant x is negative and y is positive, so cosine is negative and sine is positive. ISO 80000-2, the international standard for mathematical signs and symbols, defines the six circular functions in exactly these terms, and its names — sin, cos, tan, cosec or csc, sec and cot — are the ones used on this page.

Tangent is the ratio y/x, which geometrically is the slope of the line from the origin through that point. It follows immediately that tangent is undefined wherever x = 0, at 90° and 270°, because a vertical line has no slope. The three reciprocal functions are exactly what their names say: cosecant is 1/sin, secant is 1/cos, and cotangent is cos/sin. They are undefined wherever their denominator vanishes, which is why csc and cot fail at 0° and 180° while sec and tan fail at 90° and 270°.

Signs, quadrants and periodicity

The sign of each function depends only on the signs of x and y, so it depends only on the quadrant. In quadrant I both coordinates are positive and all six functions are positive. In quadrant II only y is positive, so only sine and its reciprocal cosecant are positive. In quadrant III both coordinates are negative, so their ratio is positive and tangent and cotangent survive. In quadrant IV only x is positive, so cosine and secant are positive. The traditional mnemonic All Students Take Calculus names the surviving function in each quadrant in order.

Periodicity comes from the fact that a full revolution returns you to the same point. Sine, cosine, cosecant and secant all repeat every 360°, while tangent and cotangent repeat every 180°, because diametrically opposite points give the same slope. That is why an angle of 750° gives identical values to 30°: subtract two full turns and nothing changes. The coterminal angle calculator performs that reduction on its own.

Symmetry gives you two more free facts. Cosine is an even function, cos(−θ) = cos θ, because reflecting across the x-axis leaves x alone. Sine is odd, sin(−θ) = −sin θ, because the reflection flips y. Tangent, being their ratio, is odd too. Combined with the reference angle — the acute angle to the nearest part of the x-axis — these rules let you evaluate any angle from the first-quadrant table alone.

Worked example: evaluating all six functions at 240°

Take θ = 240° and work it out by hand before checking against the calculator.

  1. Locate the quadrant. 240° is between 180° and 270°, so it lies in quadrant III, where x and y are both negative and only tangent and cotangent are positive.
  2. Find the reference angle. Measured back to the negative x-axis, 240° − 180° = 60°. Every function's magnitude at 240° equals its magnitude at 60°.
  3. Look up the 60° values. sin 60° = √3/2 = 0.8660254, cos 60° = 1/2, tan 60° = √3 = 1.7320508.
  4. Apply the quadrant signs. sin 240° = −0.8660254; cos 240° = −0.5; tan 240° = (−0.8660254) ÷ (−0.5) = +1.7320508.
  5. Take reciprocals. csc 240° = 1 ÷ (−0.8660254) = −1.1547005; sec 240° = 1 ÷ (−0.5) = −2; cot 240° = 1 ÷ 1.7320508 = 0.5773503.
  6. Check with the Pythagorean identity. sin² + cos² = 0.75 + 0.25 = 1. The values are consistent.

That last check is worth doing on any hand computation. Because sin² θ + cos² θ = 1 is the equation of the unit circle itself, it holds for every angle without exception, and it catches a dropped sign or a mistyped surd immediately.

Reading the output, including the undefined cases

Sine and cosine always land between −1 and 1, so any value outside that band means the angle unit is wrong. That is the single most common failure: entering 30 while the calculator is in radian mode gives sin = −0.988, a perfectly valid number for a rotation of 30 radians and completely wrong for 30 degrees.

Tangent and cotangent are unbounded, so large magnitudes are legitimate. tan 89° = 57.29 and tan 89.9° = 572.96; the function grows without limit as the angle approaches 90°. At exactly 90° it does not have a large value, it has no value at all, and this calculator reports a dash rather than the enormous number a floating-point library would produce from a cosine of about 6 × 10⁻¹⁷.

Cosecant and secant are never strictly between −1 and 1, because they are reciprocals of quantities that never exceed 1 in magnitude. If you see a secant of 0.8, something upstream is wrong. Their minimum magnitude is exactly 1, reached where the underlying sine or cosine hits its extreme, and they grow without bound near their asymptotes exactly as tangent does.

Exact values at the standard angles

Every entry follows from the 30-60-90 and 45-45-90 triangles plus the quadrant signs. Decimal equivalents: √2/2 = 0.70710678, √3/2 = 0.86602540, √3/3 = 0.57735027, √3 = 1.73205081.
AngleRadianssincostan
0010
30°π/61/2√3/2√3/3
45°π/4√2/2√2/21
60°π/3√3/21/2√3
90°π/210undefined
120°2π/3√3/2−1/2−√3
135°3π/4√2/2−√2/2−1
150°5π/61/2−√3/2−√3/3
180°π0−10
210°7π/6−1/2−√3/2√3/3
225°5π/4−√2/2−√2/21
240°4π/3−√3/2−1/2√3
270°3π/2−10undefined
300°5π/3−√3/21/2−√3
315°7π/4−√2/2√2/2−1
330°11π/6−1/2√3/2−√3/3

To get csc, sec and cot, take the reciprocal of the sin, cos and tan entry in the same row. A reciprocal of 0 is undefined, which is where the asymptotes live.

Common mistakes when evaluating trig functions

  • Wrong angle mode. sin(30) is 0.5 in degrees and −0.988 in radians. Check the unit selector before trusting any answer.
  • Confusing sin² θ with sin(θ²). The first squares the result, the second squares the angle. Only the first appears in the Pythagorean identity.
  • Treating a huge tangent as an error. tan 89.99° = 5729.6 is correct; the function genuinely diverges. Only at exactly 90° is it undefined.
  • Assuming csc is the same as sin⁻¹. Cosecant is the reciprocal 1/sin; sin⁻¹ is the inverse function arcsine. They are unrelated, and the inverse trig calculator handles the second.
  • Rounding a surd too early. Writing √3/2 as 0.87 instead of 0.8660254 puts a 0.46% error into everything downstream of it, since 0.0039746 ÷ 0.8660254 = 0.0046.

Why 90° shows a dash and not a very large number

In double-precision arithmetic, cos(90°) does not evaluate to zero. Converting 90 to radians gives a value that is not exactly π/2 — π/2 is irrational and cannot be represented — so the cosine comes out around 6.1 × 10⁻¹⁷ and the tangent around 1.6 × 10¹⁶. That number is a floating-point artefact, not mathematics. This calculator snaps sines and cosines smaller than 10⁻¹² to exact zero and then reports the dependent function as undefined, which is what the mathematics actually says.

Where these values get used

Any right-triangle problem with one known angle and one known side reduces to a single multiplication by one of these values. A rafter on a 30° roof with a 12-foot horizontal run has length 12 ÷ cos 30° = 12 ÷ 0.8660254 = 13.856 feet, and rises 12 × tan 30° = 6.928 feet. The right triangle calculator and the Pythagorean theorem calculator automate the rest of that arithmetic.

Oblique triangles need the same values inside the law of sines and the law of cosines, which are what you reach for when there is no right angle to exploit. Vector resolution uses them too: a 500-newton force at 40° above horizontal has a horizontal component 500 cos 40° = 383.0 N and a vertical component 500 sin 40° = 321.4 N.

Beyond geometry, sine and cosine describe anything that oscillates: alternating current, sound pressure, the tide, a pendulum, a spring. A signal written as A sin(2πft + φ) uses the same function evaluated at an angle that grows linearly with time, which is why the argument is normally kept in radians and converted with the degrees to radians calculator. When you need to run the process backwards — from a ratio to an angle — use the inverse trig functions calculator, and when you need the acute equivalent of a large rotation, the reference angle calculator is the shortcut.

Frequently asked questions

What is sin 30 degrees?

sin 30° = 1/2 exactly, or 0.5. It comes from the 30-60-90 triangle: bisect an equilateral triangle of side 2 and you get a right triangle with hypotenuse 2 and shortest side 1, so the sine of the 30° angle is 1/2. The matching cosine is √3/2 = 0.8660254 and the tangent is 1/√3 = √3/3 = 0.5773503.

Why is tan 90 degrees undefined?

Because tangent is sine divided by cosine, and cos 90° = 0. Division by zero has no result, so the tangent has a vertical asymptote there rather than a value. Approaching from below, the tangent grows without bound; approaching from above, it comes up from negative infinity. The same happens at 270° and at every angle of the form 90° + 180°n.

How do I know which functions are positive in each quadrant?

Use the mnemonic All Students Take Calculus: All six are positive in quadrant I, only Sine and cosecant in quadrant II, only Tangent and cotangent in quadrant III, only Cosine and secant in quadrant IV. It works because the sign of every function is fixed by the signs of the x- and y-coordinates on the unit circle.

What is the difference between csc and arcsin?

Cosecant is the reciprocal of sine, csc θ = 1/sin θ, and it takes an angle and returns a number. Arcsine is the inverse function, and it takes a ratio and returns an angle. csc 30° = 2, while arcsin(0.5) = 30°. The notation sin⁻¹ means arcsine, not cosecant, which is why the arc- names are safer.

Can sine or cosine ever be greater than 1?

No. Both are coordinates of a point on a circle of radius 1, so neither can exceed 1 in magnitude. If a calculation hands you sin θ = 1.4, something upstream is wrong — most often a triangle where the side you called the hypotenuse is not actually the longest side. Secant and cosecant, being reciprocals, have the opposite restriction: they can never lie strictly between −1 and 1.

How do I evaluate a trig function for an angle over 360 degrees?

Subtract whole revolutions until the angle lands between 0° and 360°, then evaluate normally; all six functions repeat exactly every 360°. For 750°, subtract 720° to get 30°, so sin 750° = sin 30° = 0.5. This calculator does that reduction automatically and shows the coterminal angle among the steps.

What exactly is a reference angle?

It is the acute angle between your angle's terminal side and the x-axis. For 240° it is 240° − 180° = 60°; for 150° it is 180° − 150° = 30°; for 300° it is 360° − 300° = 60°. Every trigonometric function has the same magnitude at your angle as at its reference angle, so you only ever need first-quadrant values plus a sign.

Do these functions work for angles in a non-right triangle?

Yes, because the unit-circle definition does not require a right triangle at all. Obtuse and reflex angles have perfectly ordinary sines and cosines; only the sign changes. That is precisely what makes the law of sines and the law of cosines work on any triangle, and why sin 150° = sin 30° = 0.5 while cos 150° = −cos 30°.

References

  • ISO 80000-2: Quantities and units — Part 2: Mathematics — International Organization for Standardization
  • NIST Digital Library of Mathematical Functions, Chapter 4: Elementary FunctionsNational Institute of Standards and Technology
  • Handbook of Mathematical Functions with Formulas, Graphs and Mathematical Tables — U.S. National Bureau of Standards (Abramowitz and Stegun)
  • Trigonometry, 11th ed. — Pearson (Lial, Hornsby, Schneider, Daniels)