Sin Cos Tan Calculator
This calculator finds all six trigonometric function values for any angle you enter: sine, cosine, tangent, and their reciprocals cosecant, secant and cotangent. Trigonometry is the branch of mathematics that connects angles to ratios of side lengths in triangles, and these six functions form the foundation of that connection. Sine (sin) gives the ratio of the opposite side to the hypotenuse in a right triangle. Cosine (cos) gives the ratio of the adjacent side to the hypotenuse. Tangent (tan) gives the ratio of the opposite side to the adjacent side, which is also equal to sine divided by cosine. The three reciprocal functions follow directly: cosecant (csc) is one divided by sine, secant (sec) is one divided by cosine, and cotangent (cot) is one divided by tangent. You enter your angle and choose whether it is in degrees or radians, and the calculator returns all six values instantly. Results are rounded to six decimal places, and any value that is mathematically undefined (such as tan at 90 degrees, where cosine is zero) is shown as undefined rather than a very large number. The tool is useful for students studying NCEA Level 2 or 3 mathematics, university science and engineering courses, and anyone who needs quick trig values without consulting printed tables. For any angle, the identity sin squared plus cos squared always equals one, which you can use to cross-check your results.
How it works
When you enter an angle in degrees, the calculator converts it to radians by multiplying by pi divided by 180, because JavaScript's built-in Math functions work in radians. It then evaluates Math.sin, Math.cos and Math.tan directly. Cosecant is computed as 1 divided by sine, secant as 1 divided by cosine, and cotangent as 1 divided by tangent. Where a denominator is less than 1e-10 in absolute value, the result is shown as undefined to avoid displaying misleadingly large numbers caused by floating-point limits. If you enter the angle in radians, no conversion is applied.
Worked example
Enter 30 degrees. The calculator converts to pi divided by 6 radians (approximately 0.5236 rad). sin(30) = 0.500000, cos(30) = 0.866025, tan(30) = 0.577350, csc(30) = 2.000000, sec(30) = 1.154701, cot(30) = 1.732051. These values match the defaults pre-filled above. Notice that sin squared (0.25) plus cos squared (0.75) equals 1, confirming the Pythagorean identity.
Related calculators
- Law of Sines Calculator: use sine ratios to solve oblique triangles with known angle-side pairs.
- Law of Cosines Calculator: find sides and angles using the cosine rule for SAS or SSS triangles.
- Triangle Angle Calculator: find the missing angle from two known angles in a triangle.
- Percent Error Calculator: compare your trig approximation to an exact value.