Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Trigonometry calculator

Get all six trig functions of an angle, in degrees or radians. Special angles, like 30°, 45° or π/3, get exact answers such as √3/2 as well as decimals.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Going the other way, from a ratio to an angle? Use the inverse trig calculator. Solving a triangle? Try the triangle calculator.

The six trig functions

For an angle θ on the unit circle, the point where it ends is (cos θ, sin θ). In a right triangle, sin is opposite ÷ hypotenuse, cos is adjacent ÷ hypotenuse and tan is opposite ÷ adjacent. The other three are reciprocals:

tan θ = sin θ ÷ cos θ · csc θ = 1 ÷ sin θ · sec θ = 1 ÷ cos θ · cot θ = cos θ ÷ sin θ

tan and sec are undefined where cos θ = 0 (90°, 270°, …), and csc and cot are undefined where sin θ = 0 (0°, 180°, …).

Exact values at special angles

For any multiple of 15°, the calculator gives the exact value, not just a decimal. These come from the 30-60-90 and 45-45-90 triangles, and from 15° = 45° − 30°.

Anglesincostan
0°010
30°1/2√3/2√3/3
45°√2/2√2/21
60°√3/21/2√3
90°10undefined
120°√3/2−1/2−√3
135°√2/2−√2/2−1
150°1/2−√3/2−√3/3
180°0−10

The signs follow the quadrant. sin is positive in quadrants I and II, cos in I and IV, and tan in I and III.

Worked example

Find all six for 135°. It's in quadrant II with a reference angle of 180° − 135° = 45°. So sin 135° = √2/2 ≈ 0.7071, cos 135° = −√2/2 ≈ −0.7071 and tan 135° = sin ÷ cos = −1. The reciprocals are csc = √2, sec = −√2 and cot = −1.

For a non-special angle, like 1 radian (about 57.3°), there's no simple exact form: sin 1 ≈ 0.8414709848 and cos 1 ≈ 0.5403023059.

Getting a realistic number

  • The most common mistake is the wrong mode. sin(30) is 0.5 in degrees but −0.988 in radians. Pick the unit above.
  • In radians you can type pi: pi/6, 2pi/3 or 3π/2. Those are treated as exact.
  • Decimals are rounded to 10 significant figures.

Going from a ratio back to an angle is the inverse trig calculator. To switch units, see degrees to radians or the unit circle.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • sin 30° = 1/2 ✓
  • cos 135° = −√2/2 ≈ −0.7071067812 ✓
  • sec 15° = √6 − √2 ≈ 1.03527618 ✓
  • sin(π/3) = √3/2 ≈ 0.8660254038 ✓
  • sin(1 radian) = 0.8414709848 ✓
  • tan 240° = √3 ✓
  • Edge: tan 90° is undefined ✓
  • Edge: π typed in degree mode is caught ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is sin 30°?

Exactly 1/2, or 0.5. cos 30° is √3/2 ≈ 0.8660 and tan 30° is √3/3 ≈ 0.5774.

What are csc, sec and cot?

The reciprocals: csc θ = 1 ÷ sin θ, sec θ = 1 ÷ cos θ and cot θ = 1 ÷ tan θ. For example, sec 60° = 1 ÷ 0.5 = 2.

Why is tan 90° undefined?

tan θ = sin θ ÷ cos θ, and cos 90° = 0. You can't divide by 0, so tan 90° has no value.

Should my calculator be in degrees or radians?

Use the unit your angle is in. Geometry problems usually use degrees; calculus and physics formulas usually use radians. 180° = π radians.

What is the exact value of sin 15°?

(√6 − √2)/4 ≈ 0.2588, from sin(45° − 30°) = sin 45° cos 30° − cos 45° sin 30°.

Related calculators