Trigonometry links angles to lengths. This calculator works in both directions. Give it an angle and pick a function — sine, cosine, tangent or one of their reciprocals, cotangent, secant, cosecant — and it returns the value. Give it a ratio instead and the inverse functions arcsin, arccos, arctan or the two-argument atan2 return the angle.
Unlike a basic calculator, it recognizes the special angles that appear in every textbook. For any multiple of 15° (or of radians) you get the exact value — , , — next to the decimal. It never shows rounding noise such as for : the answer is exactly 0. And when a function has no value, as does, it says undefined instead of printing an enormous number.
You can type the angle as a decimal, a fraction or a multiple of π (π/6, 2pi/3), in degrees, radians or gradians. Every answer comes with the coterminal angle, the quadrant, the reference angle and a table of all six functions.
How to use this calculator
To evaluate a function:
- Keep the mode on sin, cos, tan… of an angle and choose the function.
- Type the angle. Use
piorπfor radians, e.g.3pi/4. - Choose the unit: degrees, radians or gradians (400 gradians make a full turn).
- Read the value, exact when the angle is a multiple of 15°, and the table with all six functions.
To find an angle:
- Switch to Find the angle and choose arcsin, arccos, arctan or atan2.
- Type the ratio. Roots are accepted:
√3/2,sqrt(2)/2,-1/2. - For atan2, enter the coordinates and of a point; the result is its direction, quadrant included.
- Read the angle in degrees, radians (with the π form for special angles) and gradians.
The formula
On the unit circle, the point at angle from the positive x-axis has coordinates . In a right triangle, that becomes the familiar ratios of sides:
The reciprocal functions are , and . They are undefined wherever their denominator is zero: and at , and at .
Units convert with . Any angle is first reduced to , then to a reference angle between 0° and 90°; the quadrant gives the sign.
The inverse functions return principal values: and for , and for any . The two-argument returns the polar angle of the point in .
Worked example
Special angle. : 210° lies in quadrant III with a reference angle of 30°, and sine is negative there, so . Likewise .
A right triangle. A 4 m ladder leans against a wall at 35° to the ground. The height it reaches is m.
Back to the angle. A ramp rises 3 m over a run of 4 m. Its angle is .
Direction of a point. For the point , would give −45°, which points the wrong way. correctly places it in quadrant II.
Exact values of the special angles
| θ | 0° | 30° | 45° | 60° | 90° |
|---|---|---|---|---|---|
| radians | 0 | ||||
| 0 | 1 | ||||
| 1 | 0 | ||||
| 0 | 1 | undefined |
These come from two triangles: half a square (45°–45°–90°, sides ) and half an equilateral triangle (30°–60°–90°, sides ). The calculator also knows 15° and 75°, where and .
Cosine, arcsin and arctan in practice
The cosine gives the horizontal component of a slanted length: a 10 m cable at 60° to the ground covers m of ground. It is also the key to the law of cosines, , which solves any triangle given two sides and the included angle.
Arcsin answers “which angle has this sine?”. If a 5 m ramp must rise 0.5 m, its angle is . Arctan does the same with a rise and a run: it turns a slope or a percentage grade into an angle, as in the slope calculator. Remember that inverse functions return only one angle: is also , but returns 30°.
Frequently asked questions
Why is tan 90° undefined and not infinite?
tan θ = sin θ / cos θ, and cos 90° = 0. Division by zero has no value. Close to 90° the tangent grows without limit, positive on one side and negative on the other, so no single “infinity” fits. The calculator therefore reports “undefined”.
Should my calculator be in degrees or radians?
Use degrees for everyday angles (construction, navigation, school geometry) and radians for calculus, physics and programming, where sin and cos functions expect radians. sin(30) is 0.5 in degrees but about −0.988 in radians — a classic mistake.
What is the difference between arctan and atan2?
arctan(y/x) only sees the ratio, so the points (1, 1) and (−1, −1) give the same 45°. atan2(y, x) takes the signs of both coordinates into account and returns the true direction, −135° for (−1, −1).
Why does arcsin give an error for 1.5?
The sine of a real angle always lies between −1 and 1, so no angle has a sine of 1.5. The same domain applies to arccos. Arctan, by contrast, accepts any number.
How do I get the cosecant, secant or cotangent?
They are the reciprocals of sine, cosine and tangent: csc θ = 1/sin θ, sec θ = 1/cos θ, cot θ = 1/tan θ. Choose them in the function list, or read them in the table under the result.
Sources
- NIST Digital Library of Mathematical Functions, §4.14 Definitions and Periodicity
- NIST DLMF, §4.23 Inverse Trigonometric Functions
- NIST DLMF, §1.9 Calculus of a Complex Variable (phase of a point, eq. 1.9.5)
- OpenStax, Precalculus 2e — §5.2 Unit Circle: Sine and Cosine Functions
- OpenStax, Precalculus 2e — §6.3 Inverse Trigonometric Functions
Last updated: