Trigonometric Functions Calculator
Enter an angle and read off all six trigonometric functions at once — sine, cosine, and tangent, plus their reciprocals cosecant, secant, and cotangent — in degrees or radians. Angles have no exact decimal form, so the values are computed in double precision and printed under this site's 10-decimal rule; where a function has no value — tan at 90°, cosecant at 0° — the table prints undefined, because that is the true answer, instead of a meaningless near-infinite number.
The inverse direction answers the other question: given a sine, cosine, or tangent value, which angle produces it? The tool returns the principal value in both degrees and radians, and refuses values no angle can produce — arcsin of 1.5 is not a hard question, it is an impossible one, and the page says so.
| sin — sine | 0.5 |
|---|---|
| cos — cosine | 0.8660254038 |
| tan — tangent | 0.5773502692 |
| csc — cosecant (1/sin) | 2 |
| sec — secant (1/cos) | 1.1547005384 |
| cot — cotangent (cos/sin) | 1.7320508076 |
How it is worked out
- 30° = 0.5235987756 radians (× π ÷ 180).
- The reciprocal functions are 1 ÷ the primary ones: csc = 1/sin, sec = 1/cos, cot = cos/sin — where that divisor is zero the function is undefined, and the table says so instead of printing a near-infinite number.
Embed this calculator on your website →
The formula
sin θ = opposite/hypotenuse · cos θ = adjacent/hypotenuse · tan θ = sin θ/cos θ
- The reciprocals — csc θ = 1/sin θ, sec θ = 1/cos θ, cot θ = cos θ/sin θ. Where the divisor is zero (within 10⁻¹²), the function is undefined and printed as such.
- Degrees ↔ radians — radians = degrees × π/180. The internal computation is always in radians; the conversion is shown in the working.
- Inverse functions — arcsin and arctan return angles in [−90°, 90°]; arccos returns [0°, 180°]. Those ranges are what make each inverse a function at all.
Worked example: at 30° the table reads sin = 0.5, cos = 0.8660254038, tan = 0.5773502692, and cot = 1.7320508076 — the values your textbook's special-angle triangle promises (½, √3/2, 1/√3, √3), printed as decimals.
How it works
Why undefined is printed, not a giant number. On a calculator, tan(90°) often shows an enormous figure like 1.6 × 10¹⁶ — that is a rounding artifact of cos(90°) not being exactly zero in floating point. Mathematically the tangent has no value at 90°: the function climbs without bound as the angle approaches. This tool tests the divisor honestly and tells you the function is undefined there.
One angle, infinitely many answers. Every sine value (except the extremes) comes from infinitely many angles — sin θ = 0.5 at 30°, 150°, 390°, … An inverse function must choose, so by universal convention it returns the principal value in its standard range. If your problem lives in another range, add or subtract full turns (360°) or use the supplementary angle (180° − θ for sine) as your course directs.
Examples
- 45° — sin and cos are both 0.7071067812, tan and cot are exactly 1.
- 1 radian — sin = 0.8414709848, cos = 0.5403023059, tan = 1.5574077247. One radian is about 57.3°, which is why the sine is already large.
- arctan(2) — 63.4349488229° (1.1071487178 rad): the angle whose tangent is 2, the slope angle of a 2-in-1 roof pitch.
Frequently asked questions
Why does tan(90°) say undefined instead of a huge number?
Because mathematically it has no value: as the angle approaches 90°, the tangent grows without bound, and at exactly 90° the divisor cos θ is zero. Hand calculators often print a giant number because their floating-point cos(90°) is a hair above zero; that artifact is not the answer. Where a divisor is within 10⁻¹² of zero, this page prints undefined.
What is the difference between degrees and radians?
They are two units for the same thing. A full turn is 360° or 2π radians, so 1 radian ≈ 57.2958°. School geometry usually works in degrees; calculus, physics, and programming work in radians because formulas simplify there. This tool accepts either and converts exactly by × π/180.
Why did arcsin give me a different angle than I expected?
Because infinitely many angles share each sine, and arcsin returns the principal value — the one between −90° and 90°. If your triangle or problem has the angle in another range, the companions are 180° − θ (for sine, in degrees) and θ + 360°k for any whole number k.
What are csc, sec, and cot for?
They are the reciprocals: cosecant = 1/sine, secant = 1/cosine, cotangent = cosine/sine (= 1/tangent). They appear in older textbooks, some engineering formulas, and integration tables. This page shows them beside the primary three so you never have to divide by hand — and marks them undefined exactly where their divisor vanishes.
How accurate are the values?
They are computed in IEEE double precision (about 15–16 significant digits) and printed to 10 decimal places, which is beyond what any measurement you feed them can support. Values that are exact in floating point (sin 30° = 0.5, tan 45° = 1) print exactly; the rest are correctly rounded decimals.
Related calculators
Triangle Calculator
LiveSolve any triangle from SSS, SAS, ASA, AAS, or SSA — sides, angles, area, radii, and heights, with the ambiguous SSA case printing zero, one, or two full solutions.
Scientific Calculator
LiveA full scientific keypad in your browser: sine, cosine and tangent in degrees or radians, logarithms, powers, roots and exact factorials — with brackets, memory, Ans and results shown to 12 significant digits.
Pythagorean Theorem Calculator
LiveFind any side of a right triangle from the other two, plus its area, perimeter, and angles — exact answers, radicals where the answer is irrational.

