Skip to content
TheCalcUniverse

Trigonometry Calculator — Compute Sin, Cos, Tan & Inverse Trig

Calculate sine, cosine, tangent and their reciprocals for any angle. Also find angles from trig values with reference angles.

✓ Tested formula & cited sources Formula verified 2026-01-15 Runs in your browser — inputs never sent anywhere

The formula

sinθ = opposite/hypotenuse | cosθ = adjacent/hypotenuse | tanθ = opposite/adjacent | cscθ = 1/sinθ | secθ = 1/cosθ | cotθ = 1/tanθ | θ = sin⁻¹(value) | θ = cos⁻¹(value) | θ = tan⁻¹(value)

θ
Angle (theta)
sinθ, cosθ, tanθ
Primary Trigonometric Functions
cscθ, secθ, cotθ
Reciprocal Trigonometric Functions
sin⁻¹, cos⁻¹, tan⁻¹
Inverse Trigonometric Functions
π/180
Degree-to-Radian Conversion Factor
Full explanation ↓

How Trig Calculator Works

sinθ = opposite/hypotenuse | cosθ = adjacent/hypotenuse | tanθ = opposite/adjacent | cscθ = 1/sinθ | secθ = 1/cosθ | cotθ = 1/tanθ | θ = sin⁻¹(value) | θ = cos⁻¹(value) | θ = tan⁻¹(value)

Trigonometry is the branch of mathematics that studies relationships between angles and sides of triangles. The six trigonometric functions and their inverses allow you to convert between an angle and its trigonometric ratio. Sine, cosine, and tangent are the primary functions; cosecant, secant, and cotangent are their reciprocals. The inverse functions (arcsin, arccos, arctan) return the principal angle whose sine, cosine, or tangent equals a given value. These relationships are fundamental to geometry, physics, engineering, navigation, and wave analysis, forming the backbone of periodic and oscillatory phenomena modeling.

θ
Angle (theta)The angle measured in degrees from the positive x-axis. In this calculator, all angles are in degrees and are converted to radians internally for computation.
sinθ, cosθ, tanθ
Primary Trigonometric FunctionsThe three basic trigonometric functions: sine (opposite/hypotenuse), cosine (adjacent/hypotenuse), and tangent (opposite/adjacent). They relate an angle to side ratios of a right triangle.
cscθ, secθ, cotθ
Reciprocal Trigonometric FunctionsThe reciprocal functions: cosecant (1/sinθ), secant (1/cosθ), and cotangent (1/tanθ). They are undefined when their corresponding primary function equals zero.
sin⁻¹, cos⁻¹, tan⁻¹
Inverse Trigonometric FunctionsThe inverse functions (arcsine, arccosine, arctangent) return the principal angle whose sine, cosine, or tangent equals a given value. Their outputs are restricted to specific ranges.
π/180
Degree-to-Radian Conversion FactorTo convert degrees to radians, multiply by π/180. This factor arises because 360° = 2π radians, so 1° = π/180 radians. All JavaScript Math functions operate in radians.
The six trigonometric functions are defined as ratios of right triangle sides. SOH CAH TOA is a mnemonic for the three primary functions. The reciprocal functions are the multiplicative inverses.

How to Use

  1. Select the mode: "Angle → Trig Values" to compute all six trigonometric values from an angle, or "Trig Value → Angle" to find the principal angle from a trigonometric value.
  2. In Angle mode, enter any angle in degrees (e.g., 30, 45, 60, 90) and instantly see sin, cos, tan, csc, sec, and cot values with appropriate precision.
  3. In Trig Value mode, choose the trigonometric function (sin, cos, tan, csc, sec, or cot) and enter its numeric value. The calculator returns the principal angle and the reference angle.
  4. Pay attention to domain restrictions: sin and cos accept values only in [-1, 1], while tan accepts any real number. For csc and sec, the absolute value must be ≥ 1.
  5. Use the principal angle for the direct inverse result and the reference angle for understanding the acute-angle relationship in right triangle contexts.

Quick Reference

sin(30°) = 1/2cos(30°) = √3/2 ≈ 0.8660
sin(45°) = √2/2 ≈ 0.7071cos(45°) = √2/2 ≈ 0.7071
sin(60°) = √3/2 ≈ 0.8660cos(60°) = 1/2
tan(45°) = 1sin(90°) = 1, cos(90°) = 0

Common Uses

  • Right triangle solving: given one angle and one side, find all missing sides and angles using SOH CAH TOA, essential for construction, surveying, and navigation
  • Physics and engineering: analyzing periodic motion such as pendulums, springs, waves (sound, light, water), and alternating current (AC) circuits where sinusoidal functions describe oscillation
  • Computer graphics and game development: rotating objects, calculating distances and angles in 2D/3D space, and implementing camera movements using trigonometric transformations
  • Navigation and GPS: converting between bearing angles and coordinate displacements, calculating great-circle distances on Earth's surface, and maritime/aviation heading corrections
  • Architecture and structural engineering: calculating roof pitches, ramp slopes, load angles, and the forces acting on structural members at various angles of incidence

Understanding the Result

Trigonometry is a fundamental branch of mathematics that deals with the relationships between angles and sides of triangles, particularly right triangles. The word comes from Greek "trigonon" (triangle) and "metron" (measure). At its core, trigonometry provides six functions that connect an angle to the ratios of triangle sides. The three primary functions are sine (sin), cosine (cos), and tangent (tan), commonly remembered by the mnemonic SOH CAH TOA: Sine = Opposite over Hypotenuse, Cosine = Adjacent over Hypotenuse, Tangent = Opposite over Adjacent. The three reciprocal functions are cosecant (csc = 1/sin), secant (sec = 1/cos), and cotangent (cot = 1/tan). These functions have specific domains and ranges: sine and cosine accept any real angle and return values between -1 and 1; tangent accepts any angle except odd multiples of 90° (where cos = 0) and returns all real numbers. The reciprocal functions have complementary domains: csc and sec are undefined for angles where sin or cos equal zero, and their absolute values are always greater than or equal to 1. The inverse trigonometric functions (arcsin, arccos, arctan) reverse this process, returning the principal angle for a given trigonometric value. Principal angles have restricted ranges: arcsin returns angles in [-90°, 90°], arccos in [0°, 180°], and arctan in (-90°, 90°). For example, sin(30°) = 1/2, so arcsin(1/2) = 30°, and the reference angle (the acute angle to the x-axis) is also 30°. For negative values, arcsin(-1/2) = -30°, but the reference angle (absolute value) remains 30°. Trigonometric functions are periodic: sine and cosine have periods of 360° (2π radians), while tangent has a period of 180° (π radians). This periodicity means there are infinitely many angles producing the same trigonometric value. The principal angle is the canonical representative, typically the one closest to 0°. Understanding these functions is essential for analyzing any phenomenon involving rotation, oscillation, waves, or periodic behavior, from the orbit of planets to the vibration of guitar strings to the analysis of alternating current in electrical engineering. Trigonometry also underpins the Fourier transform, a mathematical tool that decomposes complex signals into their constituent sinusoidal frequencies, which is fundamental to digital signal processing, image compression (JPEG), and audio analysis.

Frequently Asked Questions

What is the difference between the principal angle and the reference angle?
The principal angle is the angle returned by the inverse trigonometric function (arcsin, arccos, arctan), which has a restricted range to ensure a unique result. For arcsin and arctan, the principal angle is in [-90°, 90°]; for arccos, it is in [0°, 180°]. The reference angle is the acute angle (between 0° and 90°) that the terminal side of the angle makes with the x-axis. It is always non-negative and always between 0° and 90°. For example, if the principal angle is -30°, the reference angle is 30°. The reference angle is useful because the absolute values of trigonometric functions for any angle equal those of its reference angle, with only the sign depending on the quadrant.
Why do sin and cos only accept values between -1 and 1, while tan accepts any real number?
Sine and cosine represent ratios of triangle sides where the numerator (opposite or adjacent) can never exceed the hypotenuse in magnitude. In the unit circle definition, sinθ and cosθ are the y and x coordinates of a point on the unit circle, which must satisfy x² + y² = 1 — therefore both coordinates are constrained to [-1, 1]. Tangent, however, equals sinθ/cosθ, and since cosθ approaches 0, the ratio can approach positive or negative infinity. For the reciprocal functions: csc = 1/sin and sec = 1/cos, so their absolute values must always be ≥ 1 (since |sin| ≤ 1 and |cos| ≤ 1). Cosecant cannot take values between -1 and 1.
What happens when I enter an angle like 90° or 0°?
At 0°: sin(0) = 0, cos(0) = 1, tan(0) = 0. Cosecant (1/sin) is undefined because division by zero is not possible — there is no triangle with zero opposite side length relative to a non-zero hypotenuse. Secant (1/cos) = 1, and cotangent (1/tan) is also undefined. At 90°: sin(90) = 1, cos(90) = 0, tan(90) approaches ∞ (infinity). Secant (1/cos) is undefined at 90° because cos = 0, while cosecant (1/sin) = 1. The calculator clearly labels these as "Undefined" rather than returning an erroneous numeric value or crashing.
How are inverse trigonometric functions different from reciprocals?
This is a common point of confusion. The inverse sine function, denoted sin⁻¹(x) or arcsin(x), returns the angle whose sine is x. It is NOT the same as (sin x)⁻¹ = 1/(sin x) = csc x. The superscript -1 for inverse functions denotes functional composition, not multiplicative inverse. For example, arcsin(1/2) = 30° (an angle), while csc(30°) = 1/sin(30°) = 2 (a ratio). To avoid this ambiguity, many textbooks use the "arc" prefix: arcsin, arccos, arctan. The calculator uses both notations for clarity.
Why does tan have asymptotes at 90° and 270°?
Since tanθ = sinθ/cosθ, it is undefined whenever cosθ = 0. Cosine equals 0 at θ = 90° + n×180° for any integer n (i.e., 90°, 270°, -90°, etc.). At these angles, cos approaches 0 while sin approaches ±1, so the ratio sin/cos approaches ±∞. These are called vertical asymptotes. On a graph of y = tan(x), the function rapidly rises toward + ∞ just before the asymptote and reappears from -∞ just after it. This is why the inverse tangent function arctan has a range of (-90°, 90°) — it only returns one branch between two asymptotes.
Was this calculator helpful?
Cite this calculator

TheCalcUniverse. "Trigonometry Calculator — Compute Sin, Cos, Tan & Inverse Trig." TheCalcUniverse, 2026, https://thecalcuniverse.com/math/trigonometry-calculator/. Accessed July 24, 2026.

Embed this calculator on your site

Free to embed. Paste this into any HTML page — it stays up to date automatically.

Open embed ↗

You may also like