StatGardenREF. DESK
Calculators/Maths/Trigonometric functions
Maths

Trigonometric functions calculator

sin, cos, tan and their inverses for one angle.

What this calculator does

The three primary trigonometric functions describe the ratios between the sides of a right triangle, but they are more usefully understood through the unit circle. There, cosine is the horizontal coordinate of a point and sine is the vertical one, which is why both oscillate between −1 and 1 and why they extend naturally beyond the 0 to 90° range a triangle allows.

Tangent is their ratio, and it behaves differently: it grows without bound as the angle approaches 90°, where cosine reaches zero and the division becomes undefined. This calculator reports all three along with their reciprocals and converts between degrees and radians.

The formula

Formularadians = degrees × π/180; tan θ = sin θ / cos θ

Radians measure angle by arc length on a unit circle, so a full turn is 2π rather than 360. Programming languages and calculus both work in radians, which is why the conversion appears so often. The reciprocal functions, secant, cosecant and cotangent, are simply one divided by cosine, sine and tangent respectively.

TermMeaning
sinOpposite ÷ hypotenuse; the vertical coordinate on the unit circle.
cosAdjacent ÷ hypotenuse; the horizontal coordinate.
tansin ÷ cos; the gradient of the radius line.
RadianThe angle subtending an arc equal to the radius. 180° = π radians.

The inputs explained

FieldWhat to enter
AngleThe angle. Values outside 0 to 360 are handled fine, since the functions repeat.
UnitsWhether the angle is in degrees or radians.

When to use it

Finding a height from an angle

Measuring the angle of elevation to the top of a structure and your distance from it gives the height as distance × tan(angle).

Working with gradients and slopes

A roof pitch or road gradient is the tangent of the angle. A 1-in-10 slope is an angle whose tangent is 0.1, about 5.7°.

Converting for programming

Nearly every programming language expects radians. The conversion line gives the value to pass in when your source data is in degrees.

Understanding periodic behaviour

Waves, alternating current, tides and orbits are all described by sine and cosine. The functions repeat every 360°, which is what makes them the natural language for anything cyclical.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

The standard angles

The angles whose exact values are worth knowing by heart.

Degrees
AnglesincostanIn the other unit
01.00000 rad
30°0.50000.86600.57740.5236 rad
45°0.70710.70711.00000.7854 rad
60°0.86600.50001.7321.047 rad
90°1.0006.1232e-171.6331e+161.571 rad
180°1.2246e-16-1.000-1.2246e-163.142 rad
At 45° sine and cosine are equal at about 0.7071, which is 1 over the square root of two. At 90° the tangent is undefined, since cosine is zero: the calculator returns a very large value from floating-point rounding rather than a true infinity.

Values in radians

The same key angles expressed in radians, which is how mathematics and programming handle them.

Radians
AnglesincosIn the other unit
0 rad01.000
0.5236 rad0.50000.866030.000°
0.7854 rad0.70710.707145.000°
1.0472 rad0.86600.500060.000°
1.5708 rad1.0000-0.00000490.000°
3.1416 rad-0.000007-1.0000180.000°
1.5708 radians is π/2, or 90°. Radians look awkward as decimals but they are what make calculus work cleanly: the derivative of sine is cosine only when angles are measured this way.

Questions

What is a radian?

The angle at which the arc length equals the radius. A full circle is 2π radians, so 180° equals π radians and one radian is about 57.3°. It is the natural unit for calculus, because the derivative rules only take their simple form in radians.

How do I convert degrees to radians?

Multiply by π and divide by 180. To go the other way, multiply by 180 and divide by π. The calculator shows the conversion alongside the trigonometric values.

Why is tan(90°) undefined?

Because tangent is sine divided by cosine, and cosine is zero at 90°. Division by zero has no value. Approaching 90° from below, the tangent grows without limit.

What are secant, cosecant and cotangent?

The reciprocals: secant is 1/cos, cosecant is 1/sin, cotangent is 1/tan. They appear mainly in calculus and in some engineering conventions, and are rarely needed otherwise.

Can I use angles over 360°?

Yes. The functions repeat every 360°, or 2π radians, so 450° gives the same values as 90°. Negative angles work too, measuring clockwise.

To solve a whole triangle, see the triangle solver. For angle unit conversion on its own, use the angle converter.