Trigonometry Calculator

Updated July 2026

Enter an angle to get all six trigonometric functions — sin, cos, tan, csc, sec and cot — in degrees or radians, or use the inverse functions to turn a value back into an angle. Everything runs privately in your browser.

The three core functions come from SOH-CAH-TOA: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, Tangent = Opposite / Adjacent. The other three are reciprocals — csc = 1/sin, sec = 1/cos, cot = 1/tan. For example, sin(30°) = 0.5 and tan(45°) = 1.
Choose how the angle above is measured.
sin of your angle
sin
cos
tan
csc
sec
cot
arcsin/arccos need a value between −1 and 1; arctan accepts any number. Result uses the unit above.
arcsin
arccos
arctan

How this trigonometry calculator works

Trigonometry relates the angles of a triangle to the ratios of its side lengths. The three primary functions are sine, cosine and tangent, summarised by the mnemonic SOH-CAH-TOA: sine is the opposite side over the hypotenuse, cosine is the adjacent side over the hypotenuse, and tangent is the opposite over the adjacent. The remaining three functions are their reciprocals — cosecant is 1/sin, secant is 1/cos and cotangent is 1/tan.

Because JavaScript's built-in math works in radians, this calculator converts your input first. If you pick degrees, it multiplies by π/180 before evaluating; if you pick radians, it uses the angle as-is. Inverse functions run the conversion in reverse, returning the principal angle in whichever unit you selected.

Worked example: for an angle of 30°, sin(30°) = 0.5, cos(30°) ≈ 0.8660 and tan(30°) ≈ 0.5774. Likewise cos(60°) = 0.5 and tan(45°) = 1. Going the other way, arcsin(0.5) = 30° and arctan(1) = 45°.

Reference note: results are rounded to a sensible number of decimals. Functions that divide by zero — such as tan(90°), cot(0°), sec(90°) and csc(0°) — are reported as undefined rather than as an enormous floating-point number.

Common angles reference

Exact values of the three primary functions at the most-used angles:

Anglesincostan
010
30°1/2 (0.5)√3/2 (≈0.8660)1/√3 (≈0.5774)
45°√2/2 (≈0.7071)√2/2 (≈0.7071)1
60°√3/2 (≈0.8660)1/2 (0.5)√3 (≈1.7321)
90°10undefined

Frequently asked questions

How do I calculate sine, cosine and tangent?
Enter an angle and choose degrees or radians. Sine is opposite / hypotenuse, cosine is adjacent / hypotenuse, and tangent is opposite / adjacent (the same as sine divided by cosine). This calculator evaluates all six functions automatically.
What is SOH-CAH-TOA?
A memory aid for the three primary trig ratios in a right triangle: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, Tangent = Opposite / Adjacent. The reciprocals are cosecant (1/sin), secant (1/cos) and cotangent (1/tan).
What is the difference between degrees and radians?
Degrees split a full circle into 360 parts; radians measure angle by arc length, so a full circle is 2π radians. Multiply degrees by π/180 to get radians, or radians by 180/π to get degrees. The unit toggle handles this for you.
Why is tan(90°) undefined?
Tangent equals sine divided by cosine, and at 90° the cosine is 0, so it divides by zero. The same applies to cot(0°), sec(90°) and csc(0°). This tool shows "undefined" instead of a huge rounding artefact.
What are inverse trigonometric functions?
Inverse functions (arcsin, arccos, arctan) take a ratio and return the angle. arcsin and arccos accept values from −1 to 1 only, while arctan accepts any real number. The result is the principal angle in your chosen unit.
What is sin(30)?
sin(30°) equals exactly 0.5. Other handy values are cos(60°) = 0.5, sin(45°) = cos(45°) ≈ 0.7071, sin(60°) = cos(30°) ≈ 0.8660, and tan(45°) = 1.
⚡ Trigonometry Calculator — by larely ↗

Related tools

Ideal Gas Law Calculator

Solve PV = nRT for pressure, volume, moles or temperature.

Weighted Average Calculator

Calculate a weighted average from value and weight pairs.

Probability Calculator

Calculate single-event probability and combined odds for two events.

Linear Interpolation Calculator

Interpolate a value between two known points, or solve the inverse.

Wavelength Calculator

Convert between wavelength, frequency and wave speed .

Force Calculator

Solve Newton's second law F = ma for force, mass or acceleration.

Kinetic Energy Calculator

Solve KE = ½mv² for kinetic energy, mass or velocity.

Rounding Calculator

Round a number to decimals, a nearest multiple, or by mode .

Arithmetic Sequence Calculator

Find the nth term and sum of an arithmetic sequence from a1 and the common difference.

Geometric Sequence Calculator

Find the nth term, sum and infinite sum of a geometric sequence.

Pythagorean Theorem Calculator

Solve a² + b² = c² for any missing side of a right triangle, plus angles and area.

Distance Formula Calculator

Find the distance between two points, plus the midpoint and slope.

Browse all 251 free tools →