User Rating 0.0
Total Usage 0 times
Enter a value between −1 and 1
Presets:
Enter a cosine value and press Calculate
Is this tool helpful?

Your feedback helps us improve.

About

The inverse cosine function, arccos(x), returns the angle whose cosine equals x. Its domain is restricted to [−1, 1] and its principal value range is [0, π] radians, or [, 180°]. Feeding a value outside this domain produces NaN, which silently corrupts downstream calculations in spreadsheets and code. This calculator validates domain membership before computation, returns results in both angle units, and provides a round-trip verification by computing cos(arccos(x)) to confirm numerical consistency.

Note: this tool uses IEEE 754 double-precision arithmetic. Floating-point representation limits precision to roughly 15 - 17 significant digits. Results near domain boundaries (x ±1) are exact by definition, but intermediate values carry rounding error on the order of 10−15. For safety-critical engineering applications, always cross-check with an independent source.

arccos calculator cos inverse inverse cosine arccos degrees trigonometry calculator acos

Formulas

The inverse cosine is defined as the angle θ satisfying:

θ = arccos(x), where −1 x 1 and 0 θ π

Degree conversion uses the factor:

θdeg = θrad × 180π

The identity linking cosine and its inverse:

cos(arccos(x)) = x, for all x [−1, 1]

Supplementary angle relationship:

arccos(x) = π arccos(x)

Where x = input cosine value, θ = resulting angle, π 3.14159265.

Reference Data

xarccos(x) in Degreesarccos(x) in RadiansExact Radian Form
−1180°3.14159π
−0.8660150°2.617995π6
−0.7071135°2.356193π4
−0.5120°2.094402π3
090°1.57080π2
0.258875°1.309005π12
0.560°1.04720π3
0.707145°0.78540π4
0.866030°0.52360π6
0.923922.5°0.39270π8
0.965915°0.26180π12
100

Frequently Asked Questions

Cosine is not one-to-one over its full domain, so its inverse must be restricted to a principal branch. The convention uses [0, π] (or [0°, 180°]) because cosine is strictly decreasing and covers its entire range [−1, 1] on that interval. This guarantees a unique output for every valid input.
The real-valued arccos function is undefined outside [−1, 1]. Attempting Math.acos(1.01) in JavaScript returns NaN. This calculator validates the input before computation and displays a domain error. In complex analysis, arccos extends to all real numbers via complex logarithms, but that is outside the scope of this tool.
At domain boundaries, arccos(1) = 0 and arccos(−1) = π are computed exactly because they are special cases in the IEEE 754 implementation. However, values like arccos(0.9999999999999999) may differ from the true analytical result by up to 1 ULP (unit in the last place), approximately 2.2 × 10⁻¹⁶ radians. For most engineering work, this error is negligible.
The general solution is θ = ±arccos(x) + 2nπ, where n is any integer. This calculator returns only the principal value θ₀ ∈ [0, π]. To find all solutions in a specific interval, compute θ₀ and 2π − θ₀, then add integer multiples of 2π as needed.
They are complementary: arccos(x) + arcsin(x) = π/2 for all x ∈ [−1, 1]. This means arccos(0.5) = 60° and arcsin(0.5) = 30°, summing to 90°. The calculator displays both the arccos result and its complement so you can verify this identity.
Yes. The angle between two vectors u and v is θ = arccos((u · v) / (|u| × |v|)). First compute the normalized dot product to obtain x ∈ [−1, 1], then enter that value here. Be cautious with near-parallel vectors: numerical error in the dot product can push x slightly outside [−1, 1], requiring clamping.