Arccos Calculator
Calculate arccos(x) = cos⁻¹(x) for x in [−1, 1]. Fast local calculation with shareable, machine-readable results.
Enter values to calculate.
Live graph
Interactive plot
Trust summary CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance
- Input interpretation
- Enter values to calculate.
- Result
- —
- Assurance
- Core
- Declared partition coverage
- PASS · 2/2 declared partitions (arccos, invalid-domain) · Matrix
- Known limitations
- x ∈ [−1, 1]; principal range [0, π]
- Core CVP does not include live graph, viewport, or pointer interaction.
- Model
- The principal real arccosine θ = arccos(x) in degrees and radians. Default display is degrees.
- Scope
- Real inverse cosine with principal branch [0, π] (NIST DLMF §4.23(ii)). Complex arccos is not returned.
- Verification
- Engine tested · Source checked · v1.0.4 · CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance· View Manifest · CVP overview · Specification
- Versions
- Calculation 1.0.4 · CVP protocol 1.0.0-proposed
- CVP identity
- 8/8 property · digest 2dd501560e45
- Legacy regression
- 10/10 tests · Production surface contract 3/3
- Reference
- O1 model · O3 expected_values · O3 numerical_behavior · O2 expected_values · O2 numerical_behavior
- Interfaces
- PASS · UI (SSR) / REST / MCP / URL→result→graph
- Supplemental domain review
- Not performed
- Named expert review
- Not performed
- CVP suite
- 9/9 golden · 5/5 CVP boundary · 5/5 invalid · 8/8 property · 4/4 metamorphic · 5/5 round-trip · 30/30 O3 · 1/1 cross-interface · 4/4 URL→result→graph · 1/1 CVP contract · Manifest
- Sources
- NIST Digital Library of Mathematical Functions, Chapter 4
- NIST DLMF §4.23
- CalculatorX mathematical conventions
- Evidence
- 5 legacy golden · 5 legacy boundary · legacy regression suite · 9/9 oracle-backed golden · 5/5 invalid · Artifact integrity PASS
- Semantic contract
- PASS
Full verification
Formulas
Core equations used by this calculator.
How to use
Enter the cosine value x
x must satisfy −1 ≤ x ≤ 1. Share URLs include x, for example /calc/math/arccos?x=0.5.
Read degrees and radians
The main result is in degrees; the explainer also shows radians (and exact π forms for common values).
Check with cosine
Verify with cos(θ) ≈ x using the Cos calculator if needed.
Example calculations
Common configurations with formula and result.
arccos(0.5)
Classic acute angle
arccos(0)
Right angle
arccos(1)
Zero angle
arccos(−1)
Straight angle
Arccos common values
Common values at a glance.
| x | arccos(x) ° | arccos(x) rad |
|---|---|---|
| −1 | 180° | π |
| −√3/2 ≈ −0.8660254 | 150° | 5π/6 |
| −√2/2 ≈ −0.7071068 | 135° | 3π/4 |
| −0.5 | 120° | 2π/3 |
| 0 | 90° | π/2 |
| 0.5 | 60° | π/3 |
| √2/2 ≈ 0.7071068 | 45° | π/4 |
| √3/2 ≈ 0.8660254 | 30° | π/6 |
| 1 | 0° | 0 |
Arccos calculator specification
Version 1.0.4 · Engine tested
- Engine tested 10/10 tests · Production surface contract 3/3
- Named expert review Not performed
- Calculation version 1.0.4
- Definition
- Arccosine is the inverse of cosine. For x in [−1, 1], arccos(x) is the unique angle θ in [0, π] (0° to 180°) such that cos(θ) = x. Notation: arccos(x) or cos⁻¹(x).
- What it calculates
- The principal real arccosine θ = arccos(x) in degrees and radians. Default display is degrees.
- Inputs
- Real cosine value x ∈ [−1, 1]
- Outputs
- deg: principal angle in degrees, range [0, 180]
- rad: the same angle in radians, range [0, π]
- Formula
θ = arccos(x); θ° = θ × 180/π- Assumptions
- Real inverse cosine with principal branch [0, π] (NIST DLMF §4.23(ii)). Complex arccos is not returned.
- When x is exactly a listed common value (0, ±1/2, ±√2/2, ±√3/2, ±1), the engine returns the exact algebraic angle such as 60° = π/3. Nearby floats are not snapped.
- Units
- Degrees (°)
- Radians (rad)
- Boundary conditions
- Missing x returns MISSING_REQUIRED_INPUT.
- Non-numeric, object, array, boolean, NaN, or Infinity inputs return INVALID_NUMBER.
- x < −1 or x > 1 returns NOT_REAL. Direct user input is not clamped onto the domain, even if |x| − 1 is only a few 1e-13.
- arccos(1) = 0°; arccos(0.5) = 60°; arccos(0) = 90°; arccos(−1) = 180°.
- Numerical precision
- Computation uses IEEE-754 binary64 Math.acos. Canonical deg/rad are that numeric result unless x is bitwise-equal to a listed common value.
- Exact algebraic angles (integer degrees and nπ/m radians) are returned only when x === a listed common value (for example x = 0.5 → 60° = π/3).
- Direct inputs are not repaired onto [−1, 1]. x = 1.0000000000005 is NOT_REAL. Derived IEEE rounding (future a/b internals) may use ULP repair; this published engine does not.
- A value within 1e-9 of a common x may include a display hint (≈ π/3) but does not replace deg/rad.
- Otherwise, |θ°| < 1e-12 is cleaned to 0. REST and SSR return { deg, rad, verification }; exact inputs also set exact: true. The page shows Check: cos(θ) = x.
- Interactive evaluation runs in the browser. Shared URLs and REST use the same engine server-side.
- The Result Card includes an engine-linked Live graph of θ = arccos(x) using the same Full range / Focus template as bounded inverse trig (domain −1 ≤ x ≤ 1; vertical axis labelled θ (°)).
- Example
- arccos(0.5) = 60° = π/3
- Validation cases
8 published on this page · 10/10 tests · Production surface contract 3/3 · View evidence
- x=0.5 → 60°
- x=0 → 90°
- x=1 → 0°
- x=-1 → 180°
- empty x → error MISSING_REQUIRED_INPUT
- x=2 → error NOT_REAL
- x=0.5000000009 → ≈59.99999994° (not snapped to 60°)
- x=1.0000000000005 → error NOT_REAL
- Sources
- NIST Digital Library of Mathematical Functions, Chapter 4 — Elementary FunctionsSupports: Inverse trigonometric functions as elementary inverses of sine, cosine, and tangent
- NIST DLMF §4.23 — Inverse trigonometric functions; principal valuesSupports: Principal arccos on [−1, 1] with range [0, π]; degree output is θ × 180/π
- CalculatorX mathematical conventions — Principal branch; exact algebraic values only for exact inputsSupports: Published engine is arccos(x). Direct inputs outside [−1, 1] are NOT_REAL with no domain clamp.
- NIST Digital Library of Mathematical Functions, Chapter 4 — Elementary Functions
- Calculation version
- 1.0.4
Background
Interpretation and common distinctions.
What arccos is
The arccosine function is the inverse of cosine:
arccos(x) = cos⁻¹(x)
If cos(60°) = 0.5, then:
arccos(0.5) = 60° = (π)/3 rad
It answers: “which angle (in the principal range) has this cosine?”
Domain and range
| Real arccos | |
|---|---|
| Domain | x ∈ [−1, 1] |
| Range | [0, π] rad = [0°, 180°] |
Many programming libraries return radians by default; this tool shows degrees as the main result and radians alongside.
Relation to other inverse trig functions
For x ∈ [−1, 1]:
arccos(x) + arcsin(x) = (π)/2
Also, asec(x) = arccos(1/x) when |x| ≥ 1.
Use Cos to go the other direction (angle → cosine), and Arcsin / Arctan for the other inverse functions.
Notation tip
cos⁻¹(x) means inverse cosine, not 1/cos(x). The reciprocal of cosine is sec(x).
CVP (Calculator Verification Protocol)
Math pilot under CVP 1.0 Proposed. Profile: core (pure inverse-cosine transform, not an engineering model).
- Evidence Manifest: /evidence/math.arccos/1.0.4.cvp.json
- 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;
declared_before_evaluation=true - Interfaces: UI (SSR), REST, and MCP must agree. A separate integration check covers URL → result → Live graph.
ui-ssris not a live browser session. - Expert review is optional and is not required for CVP Verified.
Frequently asked questions
Key distinctions behind the calculation.
What is arccos?
Arccos (arccosine) is the inverse of cosine. It returns the angle whose cosine equals the input x.
What is the domain of arccos?
For real numbers, x must be in [−1, 1]. Outside that interval the real arccos is undefined.
What range does arccos return?
The principal value is in [0, π] radians, or 0° to 180°.
Is cos⁻¹ the same as 1/cos?
No. cos⁻¹(x) means inverse cosine (arccos), not the reciprocal (secant). The reciprocal is written 1/cos(x) or sec(x).
Does the calculator use degrees or radians?
Both: the primary display is degrees; radians (and exact π labels for common inputs) appear in the explanation.
How is arccos related to arcsin?
For x in [−1, 1], arccos(x) + arcsin(x) = π/2 (90°).