What this calculator does
This tool evaluates any of the six trigonometric functions — sine, cosine, tangent, cotangent, secant and cosecant — for a single angle. You choose the function, type the angle, and pick the unit the angle is measured in (degrees, radians, gradians or turns). The calculator converts the angle to radians, applies the chosen function, and returns the numeric value together with a readable expression such as sin(30 deg) = 0.5.
How to use it
1) Select the trigonometric function from the dropdown. 2) Enter the angle value. 3) Choose the angle unit. The result updates immediately. If you pick tangent or secant at 90 deg, or cotangent or cosecant at 0 deg, the calculator reports undefined because the function has a pole (a division by zero) there.
The formula explained
Every function is built from sine and cosine. First the angle is converted to radians: multiply by \(\frac{\pi}{180}\) for degrees, by 1 for radians, by \(\frac{\pi}{200}\) for gradians, or by \(2\pi\) for turns. Then \(\sin\theta\) and \(\cos\theta\) are computed. From those: $$\tan\theta=\frac{\sin\theta}{\cos\theta},\quad \cot\theta=\frac{\cos\theta}{\sin\theta},\quad \sec\theta=\frac{1}{\cos\theta},\quad \csc\theta=\frac{1}{\sin\theta}$$ Because floating-point cosine never returns exactly zero, the tool flags any value where \(|\cos\theta|\) or \(|\sin\theta|\) is smaller than 1e-12 as a pole and reports "undefined".
Worked example
Evaluate tan(45 deg). Convert: $$\theta = 45 \times \frac{\pi}{180} = 0.7853981634 \text{ rad}$$ Then $$\tan\theta = \frac{\sin\theta}{\cos\theta} = \frac{0.7071067812}{0.7071067812} = 1$$ So tan(45 deg) = 1. Similarly $$\csc(30\text{ deg}) = \frac{1}{\sin(30\text{ deg})} = \frac{1}{0.5} = 2$$
Exact Values of All Six Functions at Standard Angles
The table gives the exact value of each function at the standard angles, with the decimal value rounded to 4 decimal places in brackets. The reciprocal functions are defined as \(\cot\theta = \frac{\cos\theta}{\sin\theta}\), \(\sec\theta = \frac{1}{\cos\theta}\) and \(\csc\theta = \frac{1}{\sin\theta}\). A value is undefined when its denominator is zero. This happens to tan and sec where \(\cos\theta = 0\) (90°, 270°), and to cot and csc where \(\sin\theta = 0\) (0°, 180°, 360°).
| Degrees | Radians | sin | cos | tan | cot | sec | csc |
|---|---|---|---|---|---|---|---|
| 0° | \(0\) | 0 (0.0000) | 1 (1.0000) | 0 (0.0000) | undefined | 1 (1.0000) | undefined |
| 30° | \(\frac{\pi}{6}\) | \(\frac{1}{2}\) (0.5000) | \(\frac{\sqrt{3}}{2}\) (0.8660) | \(\frac{\sqrt{3}}{3}\) (0.5774) | \(\sqrt{3}\) (1.7321) | \(\frac{2\sqrt{3}}{3}\) (1.1547) | 2 (2.0000) |
| 45° | \(\frac{\pi}{4}\) | \(\frac{\sqrt{2}}{2}\) (0.7071) | \(\frac{\sqrt{2}}{2}\) (0.7071) | 1 (1.0000) | 1 (1.0000) | \(\sqrt{2}\) (1.4142) | \(\sqrt{2}\) (1.4142) |
| 60° | \(\frac{\pi}{3}\) | \(\frac{\sqrt{3}}{2}\) (0.8660) | \(\frac{1}{2}\) (0.5000) | \(\sqrt{3}\) (1.7321) | \(\frac{\sqrt{3}}{3}\) (0.5774) | 2 (2.0000) | \(\frac{2\sqrt{3}}{3}\) (1.1547) |
| 90° | \(\frac{\pi}{2}\) | 1 (1.0000) | 0 (0.0000) | undefined | 0 (0.0000) | undefined | 1 (1.0000) |
| 120° | \(\frac{2\pi}{3}\) | \(\frac{\sqrt{3}}{2}\) (0.8660) | \(-\frac{1}{2}\) (−0.5000) | \(-\sqrt{3}\) (−1.7321) | \(-\frac{\sqrt{3}}{3}\) (−0.5774) | −2 (−2.0000) | \(\frac{2\sqrt{3}}{3}\) (1.1547) |
| 135° | \(\frac{3\pi}{4}\) | \(\frac{\sqrt{2}}{2}\) (0.7071) | \(-\frac{\sqrt{2}}{2}\) (−0.7071) | −1 (−1.0000) | −1 (−1.0000) | \(-\sqrt{2}\) (−1.4142) | \(\sqrt{2}\) (1.4142) |
| 150° | \(\frac{5\pi}{6}\) | \(\frac{1}{2}\) (0.5000) | \(-\frac{\sqrt{3}}{2}\) (−0.8660) | \(-\frac{\sqrt{3}}{3}\) (−0.5774) | \(-\sqrt{3}\) (−1.7321) | \(-\frac{2\sqrt{3}}{3}\) (−1.1547) | 2 (2.0000) |
| 180° | \(\pi\) | 0 (0.0000) | −1 (−1.0000) | 0 (0.0000) | undefined | −1 (−1.0000) | undefined |
| 270° | \(\frac{3\pi}{2}\) | −1 (−1.0000) | 0 (0.0000) | undefined | 0 (0.0000) | undefined | −1 (−1.0000) |
| 360° | \(2\pi\) | 0 (0.0000) | 1 (1.0000) | 0 (0.0000) | undefined | 1 (1.0000) | undefined |
The signs follow the quadrant. All six functions are positive in the first quadrant (0° to 90°). Only sin and csc are positive in the second (90° to 180°). Only tan and cot are positive in the third (180° to 270°). Only cos and sec are positive in the fourth (270° to 360°). Every function repeats after 360° (\(2\pi\)), and tan and cot already repeat after 180° (\(\pi\)).
A note on floating-point arithmetic: \(\pi\) cannot be stored exactly, so a plain computer evaluation of something like \(\cos 90°\) returns a tiny number such as \(6.1 \times 10^{-17}\) instead of exactly 0. As a result, \(\tan 90°\) can come out as a huge finite number. This calculator detects these points and reports them as undefined, which matches the exact values in the table.
Angle Unit Conversions: Degrees, Radians, Gradians, Turns
All four units measure the same rotation on different scales. A full circle is 360 degrees, \(2\pi\) radians, 400 gradians (also called gons) or 1 turn. Radians are the standard unit in mathematics and in most programming languages. Gradians are used mainly in surveying, and appear on scientific calculators as the GRAD mode.
| Degrees | Radians (exact) | Radians (decimal) | Gradians | Turns |
|---|---|---|---|---|
| 30° | \(\frac{\pi}{6}\) | 0.5236 | \(33\tfrac{1}{3}\) (33.3333) | \(\frac{1}{12}\) (0.0833) |
| 45° | \(\frac{\pi}{4}\) | 0.7854 | 50 | \(\frac{1}{8}\) (0.125) |
| 60° | \(\frac{\pi}{3}\) | 1.0472 | \(66\tfrac{2}{3}\) (66.6667) | \(\frac{1}{6}\) (0.1667) |
| 90° | \(\frac{\pi}{2}\) | 1.5708 | 100 | \(\frac{1}{4}\) (0.25) |
| 180° | \(\pi\) | 3.1416 | 200 | \(\frac{1}{2}\) (0.5) |
| 270° | \(\frac{3\pi}{2}\) | 4.7124 | 300 | \(\frac{3}{4}\) (0.75) |
| 360° | \(2\pi\) | 6.2832 | 400 | 1 |
Conversion factors
To convert, multiply the value in the "From" unit by the factor shown.
| From | To | Multiply by | Approximate factor |
|---|---|---|---|
| Degrees | Radians | \(\frac{\pi}{180}\) | 0.0174533 |
| Radians | Degrees | \(\frac{180}{\pi}\) | 57.2958 |
| Degrees | Gradians | \(\frac{10}{9}\) | 1.11111 |
| Gradians | Degrees | \(\frac{9}{10}\) | 0.9 |
| Degrees | Turns | \(\frac{1}{360}\) | 0.00277778 |
| Turns | Degrees | \(360\) | 360 |
| Radians | Gradians | \(\frac{200}{\pi}\) | 63.6620 |
| Gradians | Radians | \(\frac{\pi}{200}\) | 0.0157080 |
| Radians | Turns | \(\frac{1}{2\pi}\) | 0.159155 |
| Turns | Radians | \(2\pi\) | 6.28319 |
| Gradians | Turns | \(\frac{1}{400}\) | 0.0025 |
| Turns | Gradians | \(400\) | 400 |
Example: converting 135° to the other three units gives the following.
$$135 \times \frac{\pi}{180} = \frac{3\pi}{4} \approx 2.3562\ \text{rad}, \qquad 135 \times \frac{10}{9} = 150\ \text{grad}, \qquad \frac{135}{360} = 0.375\ \text{turn}$$Before evaluating the function, the calculator converts the input to radians using the factor \(k\): \(\pi/180\) for degrees, 1 for radians, \(\pi/200\) for gradians and \(2\pi\) for turns. This means 90°, \(\pi/2\) rad, 100 grad and 0.25 turn all give the same result.
Signs of Trig Functions by Quadrant and Angle Reduction
The sign of each trigonometric function depends only on the quadrant in which the angle's terminal side lies. The mnemonic ASTC ("All Students Take Calculus") lists which functions are positive going counter-clockwise from Quadrant I: All, Sine (with its reciprocal cosecant), Tangent (with cotangent), Cosine (with secant).
| Quadrant | Angle range (degrees) | sin | cos | tan | cot | sec | csc | Reference angle \(\alpha\) |
|---|---|---|---|---|---|---|---|---|
| I | 0° to 90° | + | + | + | + | + | + | \(\alpha = \theta\) |
| II | 90° to 180° | + | − | − | − | − | + | \(\alpha = 180^\circ - \theta\) (or \(\pi - \theta\)) |
| III | 180° to 270° | − | − | + | + | − | − | \(\alpha = \theta - 180^\circ\) (or \(\theta - \pi\)) |
| IV | 270° to 360° | − | + | − | − | + | − | \(\alpha = 360^\circ - \theta\) (or \(2\pi - \theta\)) |
The reciprocal functions always share the sign of their partner: sec has the sign of cos, csc has the sign of sin, and cot has the sign of tan. Angles exactly on an axis (0°, 90°, 180°, 270°) lie between quadrants, so values there are 0, ±1, or undefined.
Periods
| Function | Period (radians) | Period (degrees) | Period (gradians) | Period (turns) |
|---|---|---|---|---|
| sin, cos, sec, csc | \(2\pi\) | 360° | 400 | 1 |
| tan, cot | \(\pi\) | 180° | 200 | 0.5 |
Angle reduction
- Reduce the angle to the range 0° to 360° by adding or subtracting multiples of 360° (for tan and cot, multiples of 180° also work).
- Identify the quadrant and use the table to get the sign.
- Compute the reference angle \(\alpha\) and evaluate the function at \(\alpha\), then apply the sign.
Negative angles: \(\sin(-\theta) = -\sin\theta\), \(\cos(-\theta) = \cos\theta\), \(\tan(-\theta) = -\tan\theta\). Example: 210° is in Quadrant III with reference angle 30°, so \(\sin 210^\circ = -\sin 30^\circ = -0.5\).
Interpreting Your Result: Range, Domain and Poles
Range of each function
- sin and cos: always in the closed interval \([-1, 1]\).
- sec and csc: never strictly between −1 and 1; the value always satisfies \(|\text{value}| \ge 1\).
- tan and cot: can take any real value.
Domain restrictions (poles)
Because the reciprocal functions divide by sin or cos, some angles give no finite value:
- tan and sec are undefined where \(\cos\theta = 0\): \(\theta = 90^\circ + k\cdot 180^\circ\), i.e. \(\theta = \pi/2 + k\pi\), for any integer \(k\) (equivalently 100 + 200k gradians, or 0.25 + 0.5k turns).
- cot and csc are undefined where \(\sin\theta = 0\): \(\theta = k\cdot 180^\circ\), i.e. \(\theta = k\pi\) (0, 200k gradians, or 0.5k turns).
- sin and cos are defined for every angle.
Behavior near poles
Close to a pole the value grows without bound in magnitude, and the vertical line at the pole is an asymptote. Approaching 90° from below, tan is large and positive; from above, it is large and negative. For example, \(\tan 89.9^\circ = 1/\tan 0.1^\circ \approx 572.96\), and \(\tan 89.99^\circ \approx 5729.6\). A huge result therefore usually means the angle is very near a pole, not that something is wrong.
Meaning of negative results
A negative result simply reflects the quadrant (see the sign table): sin is negative in Quadrants III and IV, cos in II and III, and tan in II and IV. Negative or very large input angles are valid; they are reduced by the function's period.
Floating-point noise
Computers store \(\pi\) approximately, so exact-zero results can appear as tiny numbers. For instance \(\cos 90^\circ\) evaluates to about \(6.1\times10^{-17}\) instead of 0, and \(\sin 180^\circ\) to about \(1.2\times10^{-16}\). These are rounding artifacts and should be read as zero. The same effect is why \(\tan 90^\circ\) would come out near \(1.6\times10^{16}\) in raw arithmetic; a pole-aware calculator treats results this close to a pole as undefined rather than as a giant number.
Key Terms and Identities
- Unit circle
- The circle of radius 1 centered at the origin. For an angle \(\theta\) measured counter-clockwise from the positive x-axis, the point on the circle is \((\cos\theta, \sin\theta)\), and \(\tan\theta = \sin\theta/\cos\theta\).
- Reciprocal functions
- Pairs that multiply to 1: \(\csc\theta = 1/\sin\theta\), \(\sec\theta = 1/\cos\theta\), \(\cot\theta = 1/\tan\theta = \cos\theta/\sin\theta\).
- Pole / asymptote
- An input where a function is undefined because of division by zero, with values growing without bound nearby (see the previous section).
- Period
- The smallest positive shift after which a function repeats: \(2\pi\) for sin, cos, sec, csc and \(\pi\) for tan, cot.
- Radian
- The angle at the center of a circle that subtends an arc equal in length to the radius. A full turn is \(2\pi\) radians, so \(180^\circ = \pi\) rad.
- Gradian (gon)
- A unit with 400 gradians in a full turn, so a right angle is 100 gradians and \(1\text{ grad} = \pi/200\) rad = 0.9°.
- Turn
- One complete revolution: 1 turn = 360° = 400 grad = \(2\pi\) rad.
- Reference angle
- The acute angle between the terminal side of an angle and the x-axis. Function values at \(\theta\) equal those at the reference angle up to sign.
Unit conversion used by the calculator
The angle is first converted to radians: \(\theta_{\text{rad}} = \text{angle} \times k\), with \(k = \pi/180\) for degrees, 1 for radians, \(\pi/200\) for gradians, and \(2\pi\) for turns.
Pythagorean identities
$$\sin^2\theta + \cos^2\theta = 1$$
$$1 + \tan^2\theta = \sec^2\theta$$
$$1 + \cot^2\theta = \csc^2\theta$$
The second holds wherever \(\cos\theta \ne 0\), and the third wherever \(\sin\theta \ne 0\).
Cofunction relations
$$\sin(90^\circ - \theta) = \cos\theta,\qquad \cos(90^\circ - \theta) = \sin\theta$$
$$\tan(90^\circ - \theta) = \cot\theta,\qquad \sec(90^\circ - \theta) = \csc\theta$$
In radians, replace \(90^\circ\) with \(\pi/2\). Example: \(\sin 60^\circ = \cos 30^\circ \approx 0.8660\).
FAQ
What range can each function take? sin and cos always fall between -1 and 1. sec and csc have absolute value at least 1. tan and cot can be any real number.
Why does it say undefined? Tangent and secant blow up where cosine is zero (90 deg, 270 deg, ...); cotangent and cosecant blow up where sine is zero (0 deg, 180 deg, ...). At those poles the function has no finite value.
What is a turn? One turn is a full revolution, equal to 360 degrees or \(2\pi\) radians. It is handy for rotational and frequency work.