BedrockCalculator
Figures cited to primary sourcesWritten by Aapt Dubey, MBA (Marketing & Banking), ISB 3 primary sourcesLast updated

Trig Calculator: Sin, Cos, Tan and Inverse in Degrees or Radians

The Trig Calculator: Sin, Cos, Tan and Inverse in Degrees or Radians finds sin, cos, tan, csc, sec and cot of an angle in degrees or radians, or the inverse sine, cosine and tangent of a value, with exact values at quarter turns.

Quick Answer: sin 30° is 0.5. For the same angle, cos is 0.8660 and tan is 0.5774, and 30° is 0.5236 radians.

Assumptions

Computed

Preset scenarios

Result
0.5
In words
sin(30°) = 0.5
sin
0.5
cos
0.866025403784439
tan
0.577350269189626
csc (1/sin)
2
sec (1/cos)
1.15470053837925
cot (1/tan)
1.73205080756888
Angle in the other unit
30° = 0.523598775598299 rad
arcsin of the value
90° (1.5707963267949 rad)
arccos of the value
0° (0 rad)
arctan of the value
45° (0.785398163397448 rad)

Sine, cosine and tangent of common angles

Download CSV
Each row is this calculator run on the angle in degrees in the first column. Values are shown to 15 significant figures; multiples of 90 degrees are exact.
Angle (°)Radianssincostan
00° = 0 rad010
1515° = 0.261799387799149 rad0.2588190451025210.9659258262890680.267949192431123
3030° = 0.523598775598299 rad0.50.8660254037844390.577350269189626
4545° = 0.785398163397448 rad0.7071067811865480.7071067811865481
6060° = 1.0471975511966 rad0.8660254037844390.51.73205080756888
7575° = 1.30899693899575 rad0.9659258262890680.2588190451025213.73205080756888
9090° = 1.5707963267949 rad10Undefined
120120° = 2.0943951023932 rad0.866025403784439-0.5-1.73205080756888
135135° = 2.35619449019234 rad0.707106781186548-0.707106781186548-1
150150° = 2.61799387799149 rad0.5-0.866025403784439-0.577350269189626
180180° = 3.14159265358979 rad0-10
210210° = 3.66519142918809 rad-0.5-0.8660254037844390.577350269189626
270270° = 4.71238898038469 rad-10Undefined
360360° = 6.28318530717959 rad010

This table and its CSV are free to reuse with a link to this page, CC BY 4.0.

Trig Calculator: Sin, Cos, Tan and Inverse in Degrees or Radians: Result 0.5 (Calculate: A function of an angle (sin, cos, tan ...); Angle: 30; Angle unit: Degrees; Function for the headline: sin; Value (inverse mode): 1).

Save or share this result

A one-page summary of this calculator's default example, drawn from the same calculation as the result above.

The infographic is free to reuse with a link to this page, CC BY 4.0.

Illustration of a wooden ladder standing against a white wall in a sunlit stone courtyard
Quick Answer: sin 30° is 0.5. For the same angle, cos is 0.8660 and tan is 0.5774, and 30° is 0.5236 radians.

What does this calculator do?

This trig calculator gives all six trigonometric functions of an angle (sine, cosine, tangent, cosecant, secant and cotangent) in degrees or radians, and the three inverse functions (arcsin, arccos and arctan) of a value, with the angle in both units.

The most common mistake with trigonometry on a calculator is the angle unit. "cos 1" means the cosine of one radian (57.2957795130823 degrees) unless a degree sign is written, and the two answers are very different: cos 1 is 0.54030230586814, while cos 1° is 0.999847695156391. The calculator asks for the unit every time and shows the angle converted to the other unit, so the mix-up is easy to spot.

Values are computed to 34 significant digits from the series behind decimal.js's sine and cosine, with pi computed as the arc cosine of -1 rather than typed in, and shown to 15. Angles that are whole multiples of 90 degrees are treated exactly, so sin 180° is exactly 0 and tan 90° is reported as undefined rather than as an enormous number.

Using the Trig Calculator

  1. Choose a function of an angle, or an inverse function to find an angle from a value.
  2. For a function, type the angle, choose degrees or radians, and pick the function you want as the headline. All six appear in the cards.
  3. For an inverse function, type the value and pick arcsin, arccos or arctan. All three inverses of the same value appear in the cards, in degrees and radians.

How is this calculated?

  1. Convert the angle. An angle in degrees is converted to radians by multiplying by pi and dividing by 180. The other unit is shown on its own card.

θ_rad = θ_deg × π/180

  1. Exact quarter turns. If the angle is in degrees and is a whole multiple of 90, sine and cosine are set exactly to 0, 1 or -1 according to the quarter of the circle. Every other angle is evaluated from its radian value.
  1. Sine and cosine. For all other angles, decimal.js computes sin θ and cos θ to 34 significant digits.
  1. The other four functions. Tangent, cosecant, secant and cotangent are formed from sine and cosine, as DLMF section 4.14 defines them. Where the divisor is exactly zero, the function is undefined and the card says so.

tan θ = sin θ/cos θ csc θ = 1/sin θ sec θ = 1/cos θ cot θ = cos θ/sin θ

  1. Inverse functions. arcsin and arccos accept values from -1 to 1 only; arctan accepts any value. Each returns the principal value: arcsin from -90° to 90°, arccos from 0° to 180°, arctan strictly between -90° and 90°. The radian result is converted to degrees by multiplying by 180 over pi.
  1. Show the results. Values are rounded half up to 15 significant figures with trailing zeros dropped.

Worked Example

Using the defaults, sin 30°:

  1. 30° × π/180 = 0.523598775598299 radians.
  2. sin 30° = 0.5 and cos 30° = 0.866025403784439 (which is √3/2).
  3. tan 30° = 0.5 ÷ 0.866025403784439 = 0.577350269189626.
  4. csc 30° = 1 ÷ 0.5 = 2, sec 30° = 1.15470053837925 and cot 30° = 1.73205080756888.

An inverse, from the cos⁻¹(0.5) preset: the angle whose cosine is 0.5 is 60°, or 1.0471975511966 radians.

What Is Cos 1?

It depends on the unit. Read as radians, which is what "cos 1" means in mathematics and in most software, the cos 1 (radian) preset gives 0.54030230586814. Read as degrees, the cos 1° preset gives 0.999847695156391. One radian is 57.2957795130823°, so the radian answer belongs to a much larger angle.

The same goes for tan 1: in radians it is 1.5574077246549, in degrees 0.0174550649282176.

How Do You Find the Inverse Tangent?

Switch to inverse mode, enter the value and choose arctan. The tan⁻¹(1) preset gives 45°, or 0.785398163397448 radians, because the tangent of 45° is 1. The inverse cosine of the cosine of an angle returns the original angle only if it lies between 0° and 180°; outside that range, arccos returns the matching angle inside it.

Sine, Cosine and Tangent of Common Angles

The reference table lists sin, cos and tan for the angles that come up most, from 0° to 360°. The patterns are worth knowing: sin and cos swap between 30° and 60°, both equal 0.707106781186548 at 45°, and tan is undefined at 90° and 270°, where cosine is zero.

Which Functions Are Negative in Each Quadrant?

Sine is the y coordinate of a point on a circle of radius 1 and cosine is its x coordinate, so their signs follow the quadrant. From 0° to 90° all six functions are positive. From 90° to 180° only sine and cosecant are positive: cos 120° is -0.5 in the table.

From 180° to 270° only tangent and cotangent are positive, because sine and cosine are both negative and their ratio is positive, as tan 210° shows. From 270° to 360° only cosine and secant are positive. Knowing this lets you check the sign of any answer at a glance before trusting the digits.

What does this calculator not account for?

  • Gradians. Only degrees and radians are offered. To convert gradians, multiply by 0.9 to get degrees.
  • Exact surd forms. The calculator shows 0.866025403784439, not √3/2. The exact forms for special angles are standard and listed in any table of trigonometric values.
  • All solutions of an equation. An inverse function returns one principal angle. sin θ = 0.5 has the solutions 30° and 150° in one turn, plus every multiple of 360° added to either.
  • Angles in degrees, minutes and seconds. Convert to decimal degrees first: 30° 15′ is 30.25°.
  • Hyperbolic functions. sinh, cosh and tanh are not computed.

What mistakes do people make with this?

  • Wrong angle unit. The single most common error. Check the converted angle card.
  • Reading sin⁻¹ as 1/sin. sin⁻¹ x means arcsin x. The reciprocal of sine is csc.
  • Expecting tan 90° to be a number. It is undefined, because cos 90° is zero. A calculator that returns a huge number has rounded pi.
  • Taking arcsin of a value above 1. No angle has a sine above 1, so arcsin 2 has no real answer.
  • Forgetting the sign in each quadrant. Cosine is negative between 90° and 270°, sine between 180° and 360°.

Frequently Asked Questions

How do I calculate sin, cos and tan?

Enter the angle, choose the unit, and read the cards. For a right triangle, sin is the opposite side over the hypotenuse, cos the adjacent side over the hypotenuse, and tan the opposite side over the adjacent side.

What is tan 45 degrees?

1, because the opposite and adjacent sides of a 45° right triangle are equal.

How do I convert degrees to radians?

Multiply by π and divide by 180. 30° is 0.523598775598299 radians; 1 radian is 57.2957795130823°.

What is the inverse of cosine?

arccos, written cos⁻¹. It gives the angle from 0° to 180° whose cosine is the value you enter: cos⁻¹(0.5) is 60°.

Why is sec 90° undefined?

sec is 1 divided by cos, and cos 90° is zero.

Sources

Did this calculator answer your question?

How this calculator is tested

This calculator is checked by 5 automated test cases: specific inputs whose correct result is known in advance, and rules the output must always obey. They run on every change to the site. See the testing and corrections policy.

Show the test cases
  • Default: sin 30° = 0.5, with the other five functions
  • cos 1 depends on the unit
  • quarter turns in degrees are exact
  • inverse functions return principal values
  • builds the reference table from compute()

Add This Website as Preferred Source on Google

See Bedrock Calculator first in your Search results & AI Overviews