HomeCalculatorsMathTrigonometry & TrianglesCos Calculator
Math calculator

Cos Calculator

Calculate cosine from degrees, radians, or triangle side ratios. Inspect numerical limits, share precise inputs, export results, and call the REST or MCP API.

Instant result
Result
—

Enter values to calculate.

Inputs—
Mode—
Formula—
Trust summary CVP VERIFIED · production STALE · CVP protocol 1.0.0-proposed · Core assurance
Input interpretation
Enter values to calculate.
Result
—
Assurance
Core
Declared partition coverage
PASS · 4/4 declared partitions (ratio, cos, invalid-domain, xcal) · Matrix
Numerical scope
≤2 ULP vs O3 applies to the 18 published tabulated vectors (common angles 0°…180° plus 8 seeded random angles in (−50°, 50°)). It is not a guarantee over the entire real line, including huge angles or unlisted neighborhoods of zeros.
Known limitations
  • 99 independent Decimal420/620 and Fraction references; strict aliases/decimal inputs and bounded symbolic recognition; ratio mode; 2ULP fixed-vector budget, not whole-domain guarantee
  • Core CVP does not include live graph, viewport, or pointer interaction.
Model
The real cosine y = cos(θ), or adjacent/hypotenuse in ratio mode. Angle mode defaults to degrees.
Scope
Real cosine. The published engine supports angle and triangle-ratio modes. Adjacent/hypotenuse is a shared ratio mode (hypotenuse > 0, adjacent ≥ 0, adjacent ≤ hypotenuse). Use Arccos for the inverse API.
Verification
Engine tested · Source checked · v1.0.6 · CVP VERIFIED · production STALE · CVP protocol 1.0.0-proposed · Core assurance· View Manifest · CVP overview · Specification
Versions
Calculation 1.0.6 · CVP protocol 1.0.0-proposed · Evidence 2026-10-28.meta-metrics-v2
Verification revision
2026-10-28.meta-metrics-v2 · 3/3 property · digest 176d7e8ae931
Legacy regression
6/6 tests · Production surface contract 6/6
Trust layers
Verification VERIFIED · Production STALE · Overall CVP state: VERIFIED_STALE under CVP 1.0.0-proposed
CVP status
STALE · attestation snapshot core a8dccdccfcd9 ≠ live cvp_core_sha256 176d7e8ae931 (2026-10-28.meta-metrics-v2)
Reference
O1 model · O3 expected_values · O3 expected_values · O3 numerical_behavior · O2 expected_values · O2 numerical_behavior
Interfaces
PASS · UI (SSR) / REST / MCP / URL→result→graph — Success 100/100. Error-path engine·REST·MCP 25/25 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only. Integration: URL → SSR result → Live graph current point (4/4). Hydration/slider/history are URL-canonical contracts, not a live browser session.
Supplemental domain review
Not performed
Named expert review
Not performed
CVP suite
103/103 golden · 2/2 CVP boundary · 27/27 invalid · 3/3 property · 3/3 metamorphic · 4/4 round-trip · 18/18 O3 · 125/125 cross-interface · 8/8 cross-calculator · 4/4 URL→result→graph · 6/6 CVP contract · Manifest
Sources
Sources
Evidence
4 legacy golden · 2 legacy boundary · legacy regression suite · 103/103 oracle-backed golden · 27/27 invalid · Artifact integrity PASS
STALE · Build schema 1.0.6 matches page · production binding STALE · Semantic contract ✓ · Last attestation PASS · current evidence changed · re-attestation required · CVP STALE · attestation STALE — Production CURRENT withheld · Public/cache ✓ · Origin ✓
Semantic contract
PASS
Full verification

Manifest identity, reference classes, interfaces, suite, and production records.

Formulas

Core equations used by this calculator.

Degreescos(θ°) = cos(θ × π/180)
Radianscos(θ)
Trianglecos(θ) = adjacent / hypotenuse
iDegree input is reduced before conversion. Common identities use symbolic recognition without an angle-proximity epsilon; nonzero results remain nonzero in display and exports. Triangle mode returns the side ratio directly.

How to use

1

Enter the angle θ

Angle mode takes θ in degrees or radians. Share URLs include theta and unit. An engine-linked Overview range slider on [−360°, 360°] (or [−2π, 2π]) writes θ through the same local engine. Domain remains all real θ.

2

Or use adjacent / hypotenuse

Select ratio mode: hypotenuse > 0 and 0 ≤ adjacent ≤ hypotenuse. Sharing retains both raw lengths and mode. Use Arccos for an inverse angle.

3

Read cos(θ)

Read the scalar result and full input summary. The working records the unrounded binary64 result; a graph or derived inverse angle is not independent verification.

Example calculations

Common configurations with formula and result.

ϟ

cos(60°)

Classic half

cos(π/3)
0.5
ϟ

cos(0°)

Unit circle at (1, 0)

cos(0)
1
ϟ

cos(90°)

Unit circle at (0, 1)

cos(π/2)
0
ϟ

Adjacent / hypotenuse

cos = b/c

1/2
1/2 (θ = 60° principal)

Cosine common values

Common values at a glance.

θ (°)θ (rad)cos θ
180°π−1
150°5π/6−√3/2
135°3π/4−√2/2
120°2π/3−1/2
90°π/20
60°π/31/2
45°π/4√2/2
30°π/6√3/2
0°01
i Example: cos(60°) = 0.5. Values repeat every 360° (2π rad).

Cos calculator specification

Version 1.0.6 · Engine tested

Calculation status

Review policy · Evidence

Definition
Cosine of an angle θ is the ratio of the adjacent side to the hypotenuse in a right triangle, and the x-coordinate on the unit circle. Range is [−1, 1]. The function is even and 2π-periodic: cos(−θ) = cos(θ) and cos(θ + 360°) = cos(θ).
What it calculates
The real cosine y = cos(θ), or adjacent/hypotenuse in ratio mode. Angle mode defaults to degrees.
Inputs
  • Angle θ (finite real)
  • Optional unit: deg (default) or rad
  • Ratio mode: adjacent and hypotenuse lengths
Outputs
  • cos(θ) in [−1, 1]
Formula
y = cos(θ_rad); θ_rad = θ° × π/180 when unit is deg
Assumptions
  • Real cosine. The published engine supports angle and triangle-ratio modes. Adjacent/hypotenuse is a shared ratio mode (hypotenuse > 0, adjacent ≥ 0, adjacent ≤ hypotenuse). Use Arccos for the inverse API.
  • Algebraic snap applies only when the reduced angle (mod 360°) is a listed identity such as 0°, 30°, 45°, 60°, 90°. Nearby degree floats keep their distinct reduced-quadrant binary64 evaluation; generic radians use Math.cos.
Units
  • Dimensionless cosine value
  • Degrees or radians for the angle
Boundary conditions
  • Missing θ returns MISSING_REQUIRED_INPUT. Invalid unit returns INVALID_UNIT. Malformed numbers, NaN, and ±Infinity return INVALID_NUMBER.
  • cos(0°) = 1; cos(60°) = 1/2; cos(90°) = 0; cos(180°) = −1; cos(300°) = 1/2; cos(−θ) = cos(θ).
Numerical precision
  • IEEE-754 binary64 input. Degrees are reduced by signed remainder and quadrant before conversion; generic radians use Math.cos. Listed identities use symbolic recognition, with no proximity epsilon.
  • Near-zero nonzero values remain nonzero in the display; legitimate binary64 saturation to ±1 remains possible. Display rounding never changes the stored scalar.
  • 99 independent Decimal420/620 and Fraction references use a 2 ULP fixed-vector ceiling, not a whole-domain guarantee.
  • Near zeros relative conditioning is unbounded. Very large source angles can lose information before the binary64 input is accepted.
  • Live graph uses the same engine; omitted above |theta|=1e6 and in ratio mode. The slider covers ±360 degrees or ±2pi radians.
  • Native exports retain the full scalar and raw inputs. Shared URLs and REST/MCP use the same two-mode contract.
Example
cos(60°) = 0.5; cos(π rad) = −1; cos(47.1°) ≈ 0.6807208689589178
Validation cases

22 published on this page · 6/6 tests · Production surface contract 6/6 · View evidence

  • theta=0, unit=deg → 1
  • theta=30, unit=deg → √3/2
  • theta=45, unit=deg → √2/2
  • theta=60, unit=deg → 0.5
  • theta=90, unit=deg → 0
  • theta=-47.1, unit=deg → cos(47.1°) (even); IEEE-754, no snap
  • theta=120, unit=deg → −0.5
  • theta=180, unit=deg → −1
  • theta=270, unit=deg → 0
  • theta=300, unit=deg → 0.5 (principal arccos = 60°)
  • theta=360, unit=deg → 1
  • theta=720, unit=deg → 1
  • theta=47.1, unit=deg → 0.6807208689589178 (IEEE-754)
  • theta=π, unit=rad → −1
  • theta=π/3, unit=rad → 0.5
  • theta=89.99999995, unit=deg → IEEE-754 Math.cos (not snapped to 0)
  • empty theta → error MISSING_REQUIRED_INPUT
  • theta=60, unit=foo → error INVALID_UNIT
  • theta=abc → error INVALID_NUMBER
  • theta=NaN → error INVALID_NUMBER
  • theta=Infinity → error INVALID_NUMBER
  • theta=1e16, unit=deg → IEEE-754 Math.cos after θ×π/180; low-order phase may be lost
Sources
  • NIST Digital Library of Mathematical Functions, Chapter 4 — Elementary Functions
    Supports: Cosine as a standard trigonometric function with period 2π
  • NIST DLMF §4.14 — Definitions and period of sine and cosine
    Supports: cos(θ) on the real line; even function; degree input converted via θ° × π/180
  • CalculatorX mathematical conventions — Degree default; listed-identity exact values; inverse is Arccos
    Supports: Angle and ratio modes share strict input normalization. Symbolic recognition is identity-only; nonzero outputs are retained in display and exports.
Calculation version
1.0.6

Background

Interpretation and common distinctions.

What does this cos calculator compute?

Cosine of an angle θ is the ratio of the adjacent side to the hypotenuse in a right triangle, and the x-coordinate on the unit circle. Range is [−1, 1]. The function is even and 2π-periodic: cos(−θ) = cos(θ) and cos(θ + 360°) = cos(θ).

The published formula or method is y = cos(θ_rad); θ_rad = θ° × π/180 when unit is deg. The following references support the stated mathematics or method:

Which inputs and limits should you check?

Follow the selected angle unit and normalization policy. Degrees and radians are different representations of the same angle.

The worked example uses Classic half with cos(π/3). Compare it with the Example calculations and the complete result for the same inputs.

How can you verify and cite this result?

CalculatorX is responsible for this page. The mathematical references above explain the model; implementation checks and their scope are documented separately in the math.cos v1.0.6 Evidence and capability contract. Read the displayed verification and production state together with the specification's numerical limits.

Use the clean calculator URL to cite the tool. A shared input link identifies a particular calculation. Content updates, numerical verification, and domain reviews have separate dates and scopes.

What cosine is

Cosine is one of the six basic trigonometric functions. For a right triangle:

cos(θ) = adjacent/hypotenuse

On the unit circle, cos(θ) is the x-coordinate after rotating by θ from the positive x-axis.

The result always lies in [−1, 1].

Degrees or radians

Unit Typical use Conversion
Degrees (°) Geometry, surveying θ(rad) = θ° × π/180
Radians Calculus, most code libraries θ° = θ(rad) × 180/π

This calculator reduces degree input before conversion; radians use the declared symbolic-token or Math.cos path.

Periodicity and symmetry

cos(θ + 360°) = cos(θ), cos(θ + 2π) = cos(θ)

cos(−θ) = cos(θ)

(even function)

Inverse

To recover an angle from a cosine value, use Arccos (principal value in [0°, 180°]).

Graph sketch

y = cos(θ)

  • Period 360°; even: cos(−θ)=cos(θ)
  • At 0°, y=1; at 90°, y=0; at 180°, y=−1

Related: Sin, Tan, Arcsin.

CVP (Calculator Verification Protocol)

Math graph pilot under CVP 1.0 Proposed. Profile: core (pure cosine transform, not an engineering model).

  • Evidence Manifest: /evidence/math.cos/1.0.6.cvp.json
  • Reproduce: /evidence/math.cos/reproduce — tabulated O3 inputs, expected values, generator, and re-run commands
  • Independent reference: O1 (NIST DLMF model) + O3 mpmath/MPFR expected values and numerical behavior + O2 live identities
  • Numerical policy: IEEE-754 binary64; ≤2 ULP vs O3 applies to the 18 published tabulated vectors (common angles 0°…180° plus 8 seeded random angles in (−50°, 50°)). It is not a guarantee over the entire real line, including huge angles or unlisted neighborhoods of zeros.declared_before_evaluation=true
  • Cross-calculator (CVP-XCAL-01): sin²θ + cos²θ = 1 vs published Sin; cos(arccos x) = x vs published Arccos for x ∈ (−1,1). Listed Tan / Arcsin do not share those identities (N/A). Huge angles are N/A after binary64 phase-bit loss.
  • Interfaces: UI (SSR), REST, and MCP must agree. A separate integration check covers URL → result → Live graph. ui-ssr is not a live browser session.
  • Versions stay distinct: calculation 1.0.6 · CVP Proposed 1.0 · evidence revision 2026-10-27.full-review-v2. This revision uses signed degree reduction before conversion, strict raw inputs, and consistent ratio-mode execution.
  • Expert review is optional and is not required for CVP Verified.

Numerical contract and limits

Angle mode accepts a finite binary64 angle in degrees (default) or radians. Numeric text must be decimal/scientific notation of at most 512 characters. Hexadecimal, grouped numbers, booleans and blank numbers reject. Nonzero text rounding to zero rejects NUMERIC_UNDERFLOW. Aliases theta, t, angle, thetaInput must agree; unit and unitInput normalize degree(s), °, radian(s), case and surrounding spaces. Unknown keys reject.

Degree angles are reduced by a signed remainder before quadrant reduction and conversion to radians; no proximity epsilon merges neighboring angles with a zero. Listed common degree identities use algebraic values. In radians, symbolic recognition is restricted to the exact accepted binary64 tokens 0, π/6, π/4, π/3, π/2, 2π/3, 3π/4, 5π/6, π, 7π/6, 5π/4, 4π/3, 3π/2, 5π/3, 7π/4, 11π/6, 2π, and their negatives. These tokens are floating-point approximations, not exact mathematical radians. Other radians use Math.cos.

Ratio mode uses mode=ratio, adjacent (alias adjInput) and hypotenuse (alias hypInput), with 0 ≤ adjacent ≤ hypotenuse and hypotenuse > 0. It returns adjacent/hypotenuse without an inverse/forward round trip. A nonzero ratio rounding to zero rejects RESULT_UNDERFLOW. Ratio mode rejects angle/unit fields; angle mode rejects side fields. All surfaces share this contract; a derived triangle angle is approximate.

99 independent Decimal420/620 Taylor/Machin and Fraction references cover common-angle neighbors, huge degrees/radians, subnormal inputs, aliases and ratio endpoints, with a 2 ULP fixed-vector ceiling and strict zero, sign and types. The legacy 18 tabulated O3 cases retain their own 2 ULP budget. These checks do not prove the continuous domain or bitwise equality across runtimes. Near zeros, relative conditioning is unbounded. Large source angles can lose information when first rounded to binary64. Cosine can legitimately round to ±1.

Display uses 12 significant digits, falling back to the unrounded binary64 text when rounding would change a nonzero or ±1 boundary. Graphs are illustrative samples using the same degree/radian function, not independent verification. The graph is omitted for |θ| > 1e6 and in ratio mode; the scalar result remains available. The slider only spans ±360° or ±2π. Unit selection reinterprets the current number; it does not silently convert or round the typed input.

Typing calculates locally. Sharing sends inputs in the URL; REST/MCP send inputs in request bodies, and these paths may enter server logs. Native CSV/JSON retain the full scalar and raw provided inputs. Verification and production state have separate identities; local verification does not establish that a candidate has been deployed.

Frequently asked questions

Key distinctions behind the calculation.

How do I find the cosine of an angle?

Enter the angle and select degrees or radians. The calculator converts to radians if needed and evaluates cos(θ).

Should I use degrees or radians?

Use whichever unit your problem states. The tool shows the equivalent in the other unit in the explainer.

Why is cos the same every 360°?

Cosine is periodic with period 360° (2π radians). Angles that differ by a full turn have the same cosine.

What is the range of cos?

Always between −1 and 1 inclusive.

What is cos(60°)?

Exactly 1/2 (0.5).

How do I go from cosine back to an angle?

Use the Arccos calculator for the principal value in [0°, 180°].