Trigonometry Calculator (Sin, Cos, Tan)

Find sin, cos, tan, csc, sec and cot of any angle in degrees, radians or gradians, with exact values for 30°, 45° and 60°, or the inverse of a ratio.

Any angle, positive or negative. Exact values are shown for multiples of 30° and 45°.

Results

sin (sine)
0.5 (exact: 1/2)
cos (cosine)
0.866025403784 (exact: √3/2)
tan (tangent)
0.57735026919 (exact: √3/3)
csc (cosecant = 1 ÷ sin)
2
sec (secant = 1 ÷ cos)
1.15470053838 (exact: 2√3/3)
cot (cotangent = cos ÷ sin)
1.73205080757 (exact: √3)
Angle in standard position
30° (0.523598775598 rad), quadrant I
The angle reduced to 0°–360°, measured counterclockwise from the positive x-axis.

How it’s calculated

For an angle θ, place it on the unit circle (a circle of radius 1). The point where the angle's arm meets the circle is (cos θ, sin θ), and the other functions follow from those two numbers:

sin θ = y cos θ = x tan θ = sin θ ÷ cos θ csc θ = 1 ÷ sin θ sec θ = 1 ÷ cos θ cot θ = cos θ ÷ sin θ

Where the denominator is zero the function is undefined: tan and sec at 90° and 270°, and csc and cot at 0° and 180° (and every full turn from those). The calculator says “not defined” rather than showing a huge number.

For multiples of 30° and 45° the values have exact forms, shown beside the decimal:

Anglesincostan
0°010
30°1/2√3/2√3/3
45°√2/2√2/21
60°√3/21/2√3
90°10undefined

Other quadrants use the same numbers with signs from the unit circle (all positive in quadrant I, only sin in II, only tan in III, only cos in IV).

Inverse functions go the other way: given a ratio, sin⁻¹, cos⁻¹ and tan⁻¹ return the principal value (sin⁻¹ and tan⁻¹ between −90° and 90°, cos⁻¹ between 0° and 180°). Because trig functions repeat, the calculator also lists every angle between 0° and 360° with that ratio.

Example: for 150° the reference angle is 180° − 150° = 30° in quadrant II, so sin 150° = 1/2 = 0.5, cos 150° = −√3/2 ≈ −0.866025 and tan 150° = −√3/3 ≈ −0.57735. Check: cos⁻¹(−0.866025) = 150°.

Frequently asked questions

How do I convert between degrees and radians?

Multiply degrees by π/180 to get radians, or radians by 180/π to get degrees. Choose the unit next to the angle and the calculator does it for you; 180° = π rad ≈ 3.14159 rad.

Why does tan(90°) say undefined?

tan θ = sin θ ÷ cos θ and cos 90° = 0, so the division has no answer. The graph of tan has a vertical asymptote there.

Why does sin⁻¹ give only one answer?

The inverse function returns the principal value so it is a single number. Because sine repeats every 360° (and sin θ = sin(180° − θ)), there are other angles with the same ratio; the calculator lists those in one turn.

What is a gradian?

A gradian (gon) is 1/400 of a full turn, so a right angle is 100 gradians and 360° = 400 gradians.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator