Skip to main content
ponderloop

Trig Calculator

sin(30°) = 1/2 = 0.5, an exact value. At 30° the cosine is √3/2 ≈ 0.8660254, the tangent is √3/3 ≈ 0.57735027, and the reciprocals csc, sec and cot are 2, 2√3/3 ≈ 1.1547005 and √3 ≈ 1.7320508. Choose sin, cos, tan, csc, sec or cot (or asin, acos, atan to turn a ratio back into an angle), type the angle in degrees or radians (π/6 works) and read the exact radical form for every multiple of 30° and 45°, the decimal to the significant digits you pick, the quadrant and the reference angle. Round-off is cleaned up by exact arithmetic: sin(180°) is 0, not 1.2246e−16, and tan(90°) is undefined.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Type degrees: a whole or decimal number such as 30, 22.5 or -135. Large angles and negative angles work.

sin(30°) = 1/2 = 0.5

30° is in Quadrant I, with reference angle 30° (π/6). Sine is positive here.

Exact value
1/2
Decimal value
0.5
Angle in degrees
30°
Angle in radians
π/6 ≈ 0.52359878
Coterminal angle (0° to 360°)
30°
Quadrant
Quadrant I
Reference angle
30° (π/6)

Shown to 8 significant digits. An angle that is exactly a multiple of 90° gives an exact 0, 1 or “undefined”, never round-off such as 1.2246e-16.

All six functions at this angle

All six functions at 30°
FunctionExact valueDecimal value
sin1/20.5
cos√3/20.8660254
tan√3/30.57735027
csc22
sec2√3/31.1547005
cot√31.7320508

The working

  1. Angle: 30° = π/6 radians (degrees × π ÷ 180 gives radians).
  2. 30° is already between 0° and 360°, so it is its own coterminal angle.
  3. 30° is in Quadrant I; the reference angle, the acute angle to the x-axis, is 30° (π/6).
  4. 30° is a special angle, so the exact-value table gives sin(30°) = 1/2 = 0.5 (sin θ = y on the unit circle).
  5. Shown to 8 significant digits. An angle that is exactly a multiple of 90° gives an exact 0, 1 or “undefined”, never round-off such as 1.2246e-16.

Exact values of sin, cos, tan, csc, sec and cot at the special angles

Each row is the calculator’s own answer for the angle in the first column; “undefined” marks a division by zero.
AngleRadianssincostancscseccot
0°0010undefined1undefined
30°π/61/2√3/2√3/322√3/3√3
45°π/4√2/2√2/21√2√21
60°π/3√3/21/2√32√3/32√3/3
90°π/210undefined1undefined0
120°2π/3√3/2−1/2−√32√3/3−2−√3/3
135°3π/4√2/2−√2/2−1√2−√2−1
150°5π/61/2−√3/2−√3/32−2√3/3−√3
180°π0−10undefined−1undefined
210°7π/6−1/2−√3/2√3/3−2−2√3/3√3
225°5π/4−√2/2−√2/21−√2−√21
240°4π/3−√3/2−1/2√3−2√3/3−2√3/3
270°3π/2−10undefined−1undefined0
300°5π/3−√3/21/2−√3−2√3/32−√3/3
315°7π/4−√2/2√2/2−1−√2√2−1
330°11π/6−1/2√3/2−√3/3−22√3/3−√3
360°2π010undefined1undefined

Unit circle table: coordinates (cos θ, sin θ) of the special angles

On the unit circle the point at angle θ is (cos θ, sin θ). Decimals are the calculator’s answer to 6 significant digits.
AngleRadiansPoint (cos θ, sin θ)cos θsin θWhere the angle sits
0°0(1, 0)10the positive x-axis
30°π/6(√3/2, 1/2)0.8660250.5Quadrant I
45°π/4(√2/2, √2/2)0.7071070.707107Quadrant I
60°π/3(1/2, √3/2)0.50.866025Quadrant I
90°π/2(0, 1)01the positive y-axis
120°2π/3(−1/2, √3/2)−0.50.866025Quadrant II
135°3π/4(−√2/2, √2/2)−0.7071070.707107Quadrant II
150°5π/6(−√3/2, 1/2)−0.8660250.5Quadrant II
180°π(−1, 0)−10the negative x-axis
210°7π/6(−√3/2, −1/2)−0.866025−0.5Quadrant III
225°5π/4(−√2/2, −√2/2)−0.707107−0.707107Quadrant III
240°4π/3(−1/2, −√3/2)−0.5−0.866025Quadrant III
270°3π/2(0, −1)0−1the negative y-axis
300°5π/3(1/2, −√3/2)0.5−0.866025Quadrant IV
315°7π/4(√2/2, −√2/2)0.707107−0.707107Quadrant IV
330°11π/6(√3/2, −1/2)0.866025−0.5Quadrant IV
360°2π(1, 0)10the positive x-axis

Signs of the six functions in each quadrant

Each sign is the sign of the calculator’s answer at one angle inside the quadrant: all functions are positive in Quadrant I, only sin and csc in II, only tan and cot in III, only cos and sec in IV.
QuadrantAnglessin and csccos and sectan and cot
Quadrant I0° to 90°+++
Quadrant II90° to 180°+−−
Quadrant III180° to 270°−−+
Quadrant IV270° to 360°−+−

Reference angle by quadrant

The reference angle is the acute angle between the terminal side and the x-axis. Each example is the calculator’s own answer.
QuadrantAnglesRuleExample angleReference angle
Quadrant I0° to 90°Reference angle = θ25°25° (5π/36)
Quadrant II90° to 180°Reference angle = 180° − θ150°30° (π/6)
Quadrant III180° to 270°Reference angle = θ − 180°200°20° (π/9)
Quadrant IV270° to 360°Reference angle = 360° − θ340°20° (π/9)

Plain floating point against this calculator

The middle column is JavaScript’s Math.sin, Math.cos and Math.tan of the angle converted to radians; the last column is this calculator at 8 significant digits.
CalculationPlain floating pointThis calculator
sin(180°)1.2246467991473532e−160
sin(360°)−2.4492935982947064e−160
cos(90°)6.123233995736766e−170
cos(270°)−1.8369701987210297e−160
tan(90°)16331239353195370undefined
sin(30°)0.499999999999999940.5
cos(60°)0.50000000000000010.5
tan(45°)0.99999999999999991

Trig calculator worked examples

Each row is the calculator’s own answer for the input in the first column, at 8 significant digits.
InputResultExact valueWhere it sits
sin 30°0.51/2Quadrant I; reference angle 30° (π/6)
cos 135°−0.70710678−√2/2Quadrant II; reference angle 45° (π/4)
sin of π/3 radians0.8660254√3/2Quadrant I; reference angle 60° (π/3)
sin 180°00On the negative x-axis; reference angle 0° (0)
tan 90°undefinedundefinedOn the positive y-axis; reference angle 90° (π/2)
csc 210°−2−2Quadrant III; reference angle 30° (π/6)
sin 35°0.57357644—Quadrant I; reference angle 35° (7π/36)
acos of −1/2120°2π/3 ≈ 2.0943951All angles in one turn: 120° and 240°

How to find the sine, cosine or tangent of an angle

  1. Pick the function. Choose sin, cos, tan, csc, sec or cot to go from an angle to a ratio, or asin, acos or atan to go from a ratio back to an angle.
  2. Type the angle and its unit. Enter 30 with the unit set to degrees, or choose radians and type a decimal such as 0.5236 or a multiple of π such as pi/6. Both give the same angle: 30°.
  3. Choose the significant digits. Pick 3 to 15 significant digits. Cosine of 30° shows as 0.866 at 4 digits and 0.866025403784 at 12.
  4. Read the exact and the decimal value. For 30° the tool shows the exact value 1/2 and the decimal 0.5. Multiples of 30° and 45° get a radical such as √2/2; other angles get the decimal only.
  5. Check the quadrant and the reference angle. The quadrant (Quadrant I here), the reference angle (30° (π/6)) and a table of all six functions at the same angle show why the value has the sign it has. Copy the results to keep them.

Frequently asked questions

How do I calculate sin, cos and tan of an angle?
Put the angle in standard position and read the point where its terminal side meets the unit circle: its y-coordinate is the sine, its x-coordinate the cosine, and the tangent is sine ÷ cosine. For 30° that point is (√3/2, 1/2) ≈ (0.8660254, 0.5), so tan 30° = √3/3 ≈ 0.57735027. The calculator does this for any angle, including negative angles and angles above 360°, by first reducing the angle to a small remainder from the nearest multiple of 90°.
How do I switch between degrees and radians?
A half turn is 180° and π radians, so multiply degrees by π ÷ 180 to get radians and radians by 180 ÷ π to get degrees. 45° is π/4 ≈ 0.78539816 radians, and π/3 radians is 60°. Set the angle unit to radians and type π as pi: pi/3, 3pi/4 and 2pi are read exactly. A plain decimal in radians such as 1.0472 is converted with π held to 100 digits and has no exact value, because it is not a multiple of π.
Why is tan 90° undefined?
Tangent is sine ÷ cosine, and cos 90° is exactly 0. Dividing by 0 has no value, so tan 90° is undefined, and so is tan 270° (undefined). The same happens to sec at 90° and 270°, and to csc and cot at 0° and 180° where sine is 0 (csc 0° is undefined). Just either side of 90° the tangent is huge: it is positive and growing as you approach from below, and negative on the other side, which is why the graph has a vertical asymptote there.
Why does sin(180°) show 0 and not 1.2246e−16?
Most programs convert degrees to radians in floating point first, and the result for 180° is the double nearest π, which is slightly different from π, so the sine of it is 1.2246e−16 instead of 0. This calculator reduces the angle exactly first (as a fraction of degrees, with no rounding), and only turns the small remainder from the nearest multiple of 90° into a decimal. When the remainder is exactly 0 the answer is exactly 0 or ±1, and a division by it is “undefined”. Nothing is rounded to zero by a tolerance: the decimal 3.14159265358979 in radians is not π, so its sine is the true 3.2385e−15.
What are the exact values of sin, cos and tan at 30°, 45° and 60°?
sin 30° = 1/2, cos 30° = √3/2, tan 30° = √3/3. sin 45° = cos 45° = √2/2 (0.70710678) and tan 45° = 1. sin 60° = √3/2, cos 60° = 1/2, tan 60° = √3. The first table above lists all six functions for every multiple of 30° and 45° up to 360°; every other special angle is one of these with the sign of its quadrant.
What are csc, sec and cot?
They are the reciprocals of the three main functions: csc θ = 1 ÷ sin θ, sec θ = 1 ÷ cos θ and cot θ = cos θ ÷ sin θ = 1 ÷ tan θ. At 30°, csc is 2 because sin 30° is 1/2, sec is 2√3/3 and cot is √3. They are undefined wherever the function they invert is 0. Do not confuse csc with sin⁻¹: sin⁻¹ means the inverse function (asin), not 1 ÷ sin.
How do asin, acos and atan work, and why are there two answers?
They turn a ratio back into an angle: asin returns the angle from −90° to 90° with that sine, acos the angle from 0° to 180° with that cosine, and atan the angle between −90° and 90° with that tangent. asin(0.5) is 30°, which is π/6 ≈ 0.52359878 radians; acos(−1/2) is 120° and atan(1) is 45°. A sine value repeats, so more than one angle in a full turn has it: 30° and 150° both have sine 0.5. The tool lists every angle from 0° to 360°. Type a ratio as a decimal, a fraction (1/2) or a root (√3/2 or sqrt(3)/2); exact ratios of special angles give exact angles.
How do I find the reference angle and the quadrant?
Reduce the angle to between 0° and 360° by adding or subtracting whole turns. Then the reference angle is θ in Quadrant I, 180° − θ in II, θ − 180° in III and 360° − θ in IV. For 150° that is 30° (π/6) in Quadrant II, so sin 150° = sin 30° = 1/2; the sign comes from the quadrant (All Students Take Calculus: all in I, sine in II, tangent in III, cosine in IV). −30° has the coterminal angle 330°, so sin(−30°) = −1/2, and 390° gives the same values as 30° (sin 390° = 1/2).
How many significant digits should I use, and how accurate is it?
The decimal is a double-precision number, good to about 15 significant digits, and the tool shows 3 to 15 of them without trailing zeros. cos 30° is 0.866 at 4 digits and 0.866025403784 at 12. Use as many digits as the angle you typed deserves: an angle measured to the nearest degree does not justify a 12-digit sine. Results were checked against independent Python values to within 1e-12.
Why is there no exact value for 15° or 35°?
Only multiples of 30° and 45° are in the exact table, because their values are the short radicals √2, √3 and fractions. Other angles have no equally short form: sin 15° = (√6 − √2) ÷ 4 needs two roots, and sin 35° has no closed form with ordinary roots at all. They still get an accurate decimal: sin 15° ≈ 0.25881905 and sin 35° ≈ 0.57357644.
Can I type pi, negative angles or huge angles?
Yes. In radians, write pi, π, pi/4, 3pi/4, 3*pi/4, (1/3)pi or 0.5pi; a minus sign works anywhere an angle does. An angle is kept as an exact fraction, so a huge one such as 3600000000000030 degrees is reduced exactly and gives 1/2 for the sine, the same as 30°. The inverse functions refuse a ratio they cannot take, in words: “asin needs a value from −1 to 1, and 1.5 is outside that range: no real angle has a sine that large.”
What is the difference between sin⁻¹(0.3) and 1 ÷ sin(0.3)?
sin⁻¹(0.3) is the angle whose sine is 0.3, 17.457603° (0.30469265 radians). 1 ÷ sin of an angle is the cosecant of that angle. The −1 on a function name is the inverse function, not a power; powers of trig functions are written sin²θ = (sin θ)².

How it works

The angle is read as an exact fraction of degrees (BigInt fractions): degrees as typed, multiples of π exactly, and a decimal in radians with π held to 100 digits. It is reduced exactly to a remainder between −45° and 45° from the nearest multiple of 90°, only that remainder becomes a double, and the quarter turns are applied as an exact rotation of (sin, cos). This keeps full relative precision close to every multiple of 90°. When the remainder is exactly 0, sine or cosine is exactly 0 and the ratios that divide by it are undefined; nothing is ever snapped by a tolerance. The exact radicals of the special angles come from a typed table of the five first-quadrant angles (0°, 30°, 45°, 60°, 90°) with the sign of the quadrant; the unit tests parse every typed value back to a number and compare it with floating point. The decimal is an IEEE 754 double (about 15.95 digits), rounded for display to 3 to 15 significant digits, with an exponent below 1e-6 and from 1e15. The inverse functions use Math.asin, Math.acos and Math.atan in double precision, except for the exact ratios 0, 1/2, √2/2, √3/2, 1, √3/3 and √3, which give exact angles. The calculator was tested against independent reference values from Python (decimal-module Taylor series at 90 digits, and math.asin, math.acos, math.atan) to 1e-12.

Sources

More: Geometry and measurementAll math & numbersAll toolsHome & DIY calculators