All six functions, exact valuesReviewed 28 Sep 2026Runs in your browser

Trigonometry Calculator

Find sine, cosine, tangent, cosecant, secant and cotangent of any angle in degrees, radians or gradians — with exact radical values for special angles, the unit circle, inverse and hyperbolic functions, and a right-triangle solver.

Who wrote it

Written by Suhaib Hassan. Exact values and identities follow standard references and are checked by hand. Our methodology.

How the engine works

It converts the angle to radians, evaluates the function in double-precision floating point, and matches special angles to their exact radical forms.

Why we built it

It shows where a value comes from — the unit circle, the reference angle and the quadrant — not just the number.

Circular functions

Special angles
you can type π, e.g. pi/6
Unit
Live expansion—
sin θ—
—

—

Exact—
cos θ—

Unit circle

The point (cos θ, sin θ) on the circle of radius 1.

—

Step-by-step working

—

—

    Exact values of the special angles

    Memorise these and you can derive most others by symmetry.

    ISO 80000-2 notation
    θ (deg)θ (rad)sincostancscseccot
    0°0010undef.1undef.
    30°π/61/2√3/2√3/322√3/3√3
    45°π/4√2/2√2/21√2√21
    60°π/3√3/21/2√32√3/32√3/3
    90°π/210undef.1undef.0
    180°π0−10undef.−1undef.
    270°3π/2−10undef.−1undef.0

    Key identities

    Pythagorean

    sin²θ + cos²θ = 1
    1 + tan²θ = sec²θ
    1 + cot²θ = csc²θ

    Follow from x² + y² = 1 on the unit circle.

    Double angle

    sin 2θ = 2 sin θ cos θ
    cos 2θ = cos²θ − sin²θ
    tan 2θ = 2 tan θ ÷ (1 − tan²θ)

    Euler’s formula

    e^(iθ) = cos θ + i sin θ
    cosh x = (eˣ + e⁻ˣ) ÷ 2
    sinh x = (eˣ − e⁻ˣ) ÷ 2

    Links circular and hyperbolic functions.

    Worked examples

    Height of a tower

    From 50 m away, the angle of elevation to the top is 35°.

    h = 50 × tan 35° = 50 × 0.70021 = 35.01 m

    Ladder

    A 5 m ladder leans at 70° to the ground. How high does it reach?

    h = 5 × sin 70° = 5 × 0.93969 = 4.698 m

    Wave phase

    At phase 210°, a sine wave of amplitude 1 has what value?

    reference angle = 30°, third quadrant (negative)
    sin 210° = −1/2

    What are the trigonometric functions?

    For an angle θ in a right triangle, sin θ = opposite ÷ hypotenuse, cos θ = adjacent ÷ hypotenuse and tan θ = opposite ÷ adjacent. Their reciprocals are csc θ = 1/sin θ, sec θ = 1/cos θ and cot θ = 1/tan θ. On the unit circle, cos θ and sin θ are the x and y coordinates of the point at angle θ, which extends the definitions to all angles.

    Degrees, radians and gradians

    A full turn is 360° = 2π rad = 400 grad. Convert with rad = deg × π ÷ 180 and grad = deg × 10 ÷ 9. Calculus and most science use radians because derivatives such as d/dx sin x = cos x hold only in radians.

    By Suhaib Hassan · Reviewed 28 September 2026 · How CalculatePilot verifies formulas →

    Sources

    • NIST Digital Library of Mathematical Functions, chapter 4 — sections 4.14 (trigonometric functions) and 4.28 (hyperbolic functions).
    • Euler, L. (1748). Introductio in analysin infinitorum, vol. 1, ch. 8 — trigonometric quantities arising from the circle.
    • ISO 80000-2:2019, Quantities and units — Part 2: Mathematics.

    Frequently asked questions

    Why use radians instead of degrees in calculus?

    Radian measure is the ratio of arc length to radius, so it needs no arbitrary scale factor. The key limit lim sin x ÷ x = 1 holds only in radians, and therefore d/dx sin x = cos x. In degrees an extra factor of π/180 appears in every derivative.

    Why is tan 90° undefined?

    tan θ = sin θ ÷ cos θ, and cos 90° = 0, so the quotient divides by zero. The tangent function has vertical asymptotes at odd multiples of 90°, where secant is also undefined.

    What are the ranges of the inverse functions?

    The principal values are: arcsin in −90° to 90°, arccos in 0° to 180°, arctan in −90° to 90° (exclusive), arccot in 0° to 180° (exclusive). Because trig functions repeat, other angles share the same value; the Inverse tab lists them within one full turn.

    What is a reference angle?

    It is the acute angle between the terminal side and the x-axis. Every trig value of θ equals the value for its reference angle up to a sign determined by the quadrant (All-Sine-Tangent-Cosine: all positive in I, sine in II, tangent in III, cosine in IV).

    How accurate is the result?

    The functions are evaluated in IEEE 754 double precision, about 15 to 16 significant digits. Values that are mathematically zero (such as cos 90°) are cleaned to exactly 0. Exact radical forms are shown for angles that are multiples of 30° or 45°.

    What are hyperbolic functions?

    sinh, cosh and tanh are built from exponentials: sinh x = (eˣ − e⁻ˣ)/2 and cosh x = (eˣ + e⁻ˣ)/2. They satisfy cosh²x − sinh²x = 1 and describe hanging cables (catenaries) and relativistic rapidity.

    Related calculators

    Continue with geometry and vectors.

    All Math Calculators

    Embed This Trigonometry Calculator

    Free and responsive, and it runs in the visitor's browser. Branding removal from $7.99/month.

    <iframe src="https://www.calculatepilot.com/embed/trigonometry-calculator.html" width="100%" height="560" loading="lazy" title="Trigonometry Calculator"></iframe>
    For website owners

    Want this calculator on your own website?

    Embed it in one line of code. Keep it free with a small CalculatePilot attribution link, or go white-label: your brand, no attribution, one license for all your domains.

    • All 159 calculators, unlimited embeds
    • Works on WordPress, Webflow, Squarespace, Wix and plain HTML
    • Runs in your visitor's browser, so nothing is sent to a server
    • License key emailed automatically after checkout, cancel anytime
    $7.99 / month
    or $89.99 / year · white-label Pro
    Get the white-label license Embed free with attribution