MathsTrigonometry

Trigonometry
calculator.

Find sine, cosine, tangent and their reciprocals for any angle, in any angle unit.

How it's worked out

Draw a ray from the center of a circle of radius 1, turned by your angle counterclockwise from the positive x-axis. It meets the circle at a point (x, y). The six functions are built from those two numbers.

sin⁡θ\displaystyle \sin\theta=y\displaystyle {}= y
cos⁡θ\displaystyle \cos\theta=x\displaystyle {}= x
tan⁡θ\displaystyle \tan\theta=yx\displaystyle {}= \frac{y}{x}
csc⁡θ\displaystyle \csc\theta=1y\displaystyle {}= \frac{1}{y}
sec⁡θ\displaystyle \sec\theta=1x\displaystyle {}= \frac{1}{x}
cot⁡θ\displaystyle \cot\theta=xy\displaystyle {}= \frac{x}{y}

In a right triangle with an acute angle, those same ratios read opposite over hypotenuse and so on. The circle extends them to any angle, negative or past a full turn.

The tool first changes your angle into degrees and removes whole turns, since sine and cosine repeat every full turn. An angle that lands on an axis uses exact values, so the sine of 180° is 0 and not a tiny leftover from rounding. Where a ratio would divide by 0, it reports no value.

radians\displaystyle \text{radians}=degrees×π180\displaystyle {}=\;\text{degrees} \times \frac{\pi}{180}
gradians\displaystyle \text{gradians}=degrees×109\displaystyle {}=\;\text{degrees} \times \frac{10}{9}

A gon, or gradian, is 0.9° and a revolution is 360°. A gradian makes a right angle 100, which suits some surveying work. Exact forms show for every whole multiple of 15°, because those angles come from sums and differences of 30° and 45°.

Worked examples

Jonah checks 37° against a 3-4-5 triangle

A physics book treats 37° as the smaller angle of a 3-4-5 triangle. Jonah gets a sine of 0.6018, a cosine of 0.7986 and a tangent of 0.7536. Those are close to 35\frac{3}{5}, 45\frac{4}{5} and 34\frac{3}{4}.

So the book's shortcut is near, not exact. At 36.87° the tangent is 0.75, which sits closer to 34\frac{3}{4}. The three identities hold at 37°: the squares of sine and cosine add up to 1, and the other two leave 0 and 0.

Open this example in the tool

Aisha finds out why her sine of 30 looks wrong

Aisha expects a sine of 30 to be one half, and her handheld gives −0.988. It was set to radians, and 30 radians is about 279° after removing whole turns. In degrees the sine is 0.5, or 12\frac{1}{2}. The same keystrokes meant two different angles.

Open this example in the tool

Leo works out 240°, past the half turn

240° is in the third quadrant, with a reference angle of 60°, the angle back to the x-axis. Sine and cosine are both negative there, so the sine is −32-\frac{\sqrt{3}}{2} and the cosine is −12-\frac{1}{2}.

Tangent is the ratio of those two negatives, so it comes out positive, at 3\sqrt{3}, or 1.7321. Knowing the sign first is a good check on any result you get by hand.

Open this example in the tool

Reading your result

Here is how the values change on the way from 0° to 90°. Sine climbs as cosine falls. Tangent grows without limit near 90°.

Values from 0° to 90°
θsin θcos θtan θ
0°010
10°0.17360.98480.176
20°0.3420.93970.364
37°0.60180.79860.754
53°0.79860.60181.327
70°0.93970.3422.747
80°0.98480.17365.671
89°0.99980.017557.29
90°10no value

Paired angles swap values. The sine of an angle is the cosine of its partner, the angle that makes 90° with it. So the sine of 10° is 0.1736, and the cosine of 80° is 0.1736.

No value is the honest answer at some angles. Tangent and secant have no value when x is 0, which happens at 90°, 270° and every half turn from them. Cosecant and cotangent have no value when y is 0, at 0° and 180°.

A rounded angle hides that. 1.5708 radians is close to a quarter turn, but it is not one, so its tangent comes out as −272,242. Type π2\frac{\pi}{2} with the math keys, and the tangent has no value, as it should.

Common mistakes

  • Using the wrong unit. It is the most common wrong answer. If a sine comes out oddly, look at the unit first. The tool shows both readings of the same number side by side.
  • Expecting an inverse to give back your angle. The sine of 510° is 0.5, and the inverse sine of that is 30°, not 510° or 150°. An inverse returns its own principal angle.
  • Treating the reciprocal as the inverse. Cosecant is one over sine, and it takes an angle. The inverse sine takes a ratio and gives an angle back.
  • Rounding too early. Use the exact angle, then round at the end. Each rounded step adds its own small error.

Questions people ask

It is almost always in the other angle mode. The same number means 30 degrees in one mode and 30 radians in the other, and those are different angles. Look for DEG or RAD on the display, and set it to match your problem.

Sources