Arccos Calculator

Enter x in [−1, 1] and choose degrees or radians. Inverse cosine (arccos) recovers the angle α in [0°, 180°] whose cosine equals x. arccos(0.5) = 60° = π/3. arccos(0) = 90°. arccos(1) = 0°.

Input

Result

Enter x between −1 and 1.

arccos only works for x ∈ [−1, 1]. The result lies in [0°, 180°] (0 to π). Outside the domain there is no real cosine value — the calculator reports an error instead of inventing an angle.

How it works

How arccos(0.5) is computed
x0.5
arccosπ/3
α60°

Inverse cosine, written arccos(x) or acos(x), is the inverse of cosine on an interval where cosine is one-to-one. Cosine on the whole real line is periodic and not injective, so it has no unique inverse. On [0, π], cos is continuous and strictly decreasing from 1 to −1. Therefore there is a unique inverse arccos : [−1, 1] → [0, π] such that cos(arccos(x)) = x and arccos(cos θ) = θ for θ ∈ [0, π]. That choice is the principal value and is the standard in NIST DLMF §4.23 and in Abramowitz and Stegun’s tables.

The domain is therefore [−1, 1]. The number 1.2 is not a real cosine value, so the calculator rejects it. The result range is [0, π] in radians, or [0°, 180°] in degrees. Landmark values: arccos(1) = 0, arccos(0) = π/2, arccos(−1) = π, arccos(1/2) = π/3, arccos(√2/2) = π/4, arccos(√3/2) = π/6, arccos(−1/2) = 2π/3.

The calculator uses the number x you enter and the result-unit switch. The calculator computes arccos(x) in radians in [0, π], then — when you choose degrees — multiplies by 180/π. For x = 0.5 the degree result is 60°, and in radians π/3 ≈ 1.047198. A comma and a period in the x field are equivalent.

The link to arcsin follows from a quadrant identity: for x ∈ [−1, 1], arccos(x) + arcsin(x) = π/2, so arccos(x) = π/2 − arcsin(x). Cosine evenness also gives arccos(−x) = π − arccos(x). On the principal branch the sine of α = arccos(x) is nonnegative: sin α = √(1 − x²). Those relations let you check the result: cos α returns x, and π/2 − arcsin(x) must match arccos(x).

The derivative and integral belong to standard calculus. For |x| < 1, (arccos x)′ = −1/√(1 − x²); the minus sign reflects that arccos is decreasing. The indefinite integral ∫ arccos(x) dx = x·arccos(x) − √(1 − x²) + C appears via integration by parts. In numerical practice an angle from the pair (x, √(1 − x²)) is often written atan2(√(1 − x²), x); that form distinguishes quadrants and can be better conditioned near the domain ends, but the principal-branch result matches arccos.

In geometry arccos appears for the angle between vectors: if a·b = |a||b| cos α, then α = arccos((a·b)/(|a||b|)) once the normalized dot product lies in [−1, 1]. In a 3-4-5 triangle the ratio 4/5 = 0.8 gives α ≈ 36.8699°. In 3D graphics angles between normals and lighting directions use the same function. This calculator does not compute vectors or side lengths — only α = arccos(x) from one argument.

Formula

α = arccos(x), where x ∈ [−1, 1] and α ∈ [0, π].

In degrees: α° = arccos(x) · (180 / π). The symbol x is the cosine value you enter. The symbol α is the principal angle. The constant π comes from the radian definition (a half-turn). Computation: arccos(x) in radians, then optional multiplication by 180/π.

Mathematical model: principal branch of inverse cosine (principal arccos), following the NIST Digital Library of Mathematical Functions, §4.23, and Abramowitz and Stegun’s classical tables (Chapter 4).

Theory, identities, and derivatives

Definition

The inverse cosine, written arccos(x) or acos(x), is the inverse of the restriction of cosine to an interval on which cosine is one-to-one. The map cos : ℝ → [−1, 1] is periodic and is not injective on the whole real line: cos(θ) = cos(−θ) = cos(θ + 2πk) for integers k. Hence no global single-valued inverse exists. On the closed interval [0, π], cos is continuous and strictly decreasing from 1 to −1, so it is bijective onto [−1, 1]. The inverse of that restriction is arccos : [−1, 1] → [0, π].

The range [0, π] is the principal value. It is the standard branch in the NIST Digital Library of Mathematical Functions, §4.23, and in Abramowitz and Stegun, Handbook of Mathematical Functions, Chapter 4. In degrees the principal range is [0°, 180°]. This calculator uses the same branch: it computes arccos in radians and, when requested, converts α° = α · (180/π).

Historical and conceptual context

Inverse trigonometric functions arose wherever an angle must be recovered from a sine, cosine, or tangent value — in navigation, astronomy, and calculus. In modern analysis arccos is one of the six standard inverse trigonometric functions. MathWorld treats Inverse Cosine as multi-valued in the complex plane, with a distinguished real branch on [−1, 1].

Conceptually, arccos does not select an angle outside the principal branch. For x = 0 both 90° and 270° have cosine zero, yet arccos(0) = π/2. That choice is an analytic convention, not a physical ban on other angles. When a two-argument angle from (cos, sin) with quadrant resolution is required, atan2 is used rather than arccos alone.

Formal properties

Domain: x ∈ [−1, 1]. A number outside this interval is not a real cosine value, so no real result exists. Codomain (principal range): [0, π]. The function arccos is continuous on [−1, 1], strictly decreasing, with arccos(1) = 0, arccos(0) = π/2, arccos(−1) = π.

Identities for x ∈ [−1, 1]: cos(arccos(x)) = x; arccos(cos θ) = θ for θ ∈ [0, π]; arccos(x) + arcsin(x) = π/2; arccos(−x) = π − arccos(x); sin(arccos(x)) = √(1 − x²) ≥ 0 on the principal branch.

Derivative: for |x| < 1, (arccos x)′ = −1/√(1 − x²). At the endpoints the derivative has vertical asymptotes. Antiderivative: ∫ arccos(x) dx = x·arccos(x) − √(1 − x²) + C.

Full derivation of the branch and the derivative

Step 1. Let f(θ) = cos θ on [0, π]. Then f′(θ) = −sin θ ≤ 0 and is strictly negative on (0, π), so f is strictly decreasing. Since f(0) = 1 and f(π) = −1, the image is [−1, 1].

Step 2. Therefore a unique inverse g : [−1, 1] → [0, π] exists. Write g = arccos. By definition, cos(arccos(x)) = x and arccos(cos θ) = θ on the indicated sets.

Step 3 (derivative). Let y = arccos(x), so x = cos y. Differentiating in y yields dx/dy = −sin y, hence dy/dx = −1/sin y. On (0, π), sin y > 0 and sin y = √(1 − x²), so (arccos x)′ = −1/√(1 − x²).

Step 4 (link to arcsin). Let α = arcsin(x) ∈ [−π/2, π/2]. Then cos(π/2 − α) = x and π/2 − α ∈ [0, π]. Uniqueness of arccos gives arccos(x) = π/2 − arcsin(x).

Special cases

Standard values: arccos(1) = 0; arccos(√3/2) = π/6; arccos(√2/2) = π/4; arccos(1/2) = π/3; arccos(0) = π/2; arccos(−1/2) = 2π/3; arccos(−1) = π. For x = 0.8 (the 4/5 ratio from a 3-4-5 triangle) the result is arccos(0.8) ≈ 0.6435 rad ≈ 36.87°.

As x → ±1 the angle approaches the end of the range and sensitivity (the derivative) grows without bound. Near |x| = 1 a small change in x produces a large change in angle — a geometric feature of the unit circle, not a calculator defect.

Numerical and computational notes

The browser uses arccos (floating-point arithmetic, about 15–16 significant digits). In numerical literature the angle from (x, √(1−x²)) is sometimes computed as atan2(√(1−x²), x), which recovers the same [0, π] branch and can be better conditioned near the endpoints. This calculator reports arccos — the same principal value.

Input outside [−1, 1] is rejected with an error message; the calculator does not return a complex arccos. A comma or a period in the field is accepted equivalently.

Related concepts and authorities

Related tools on this site: inverse sine (range [−π/2, π/2]), inverse tangent, cosine of an angle (the forward map), and the degrees–radians converter. Arccos does not compute triangle side lengths — use the law of cosines for that.

Authorities: NIST DLMF §4.23; Abramowitz & Stegun, Chapter 4; MathWorld — Inverse Cosine; Wikipedia — Inverse trigonometric functions (principal ranges). The calculator is educational and does not replace a textbook.

How to use

  1. Enter x in Value x (cosine), from −1 to 1, for example 0.5.
  2. Choose Show result in: Degrees (°) or Radians.
  3. Click Calculate or wait for the live result. 0.5 gives 60°. 0 gives 90°. 1 gives 0°. −1 in radians gives π.
  4. Check the panel: degrees, radians, √(1 − x²), the cos α check, and π/2 − arcsin(x). The unit-circle diagram draws angle α.
  5. x outside [−1, 1] is rejected. Bare cosine of an angle lives on the cosine page — here you go from a value to an angle.

Symbol glossary

arccos recovers the angle whose cosine is x. arccos(0.5) = 60°. Domain [−1, 1], principal range [0°, 180°].

arccos
Principal inverse cosine: arccos : [−1, 1] → [0, π]. Input only from −1 to 1. arccos(0.5) = 60°, arccos(−1) = π.
x
The cosine value in the form field. 0.5, 0, 1, or −1. 1.2 is rejected, because it is not a real cosine.
α
The result angle on the principal branch. Degrees or radians per the switch. Always in [0°, 180°].
√(1−x²)
sin α on the principal branch. For x = 0.5 it equals √0.75 ≈ 0.866025.

Examples

Example 1

  • x: 0.5 · degrees

60°

What is arccos(0.5)? 60° = π/3.

Example 2

  • x: 0 · degrees

90°

What is arccos(0)? 90° = π/2.

Example 3

  • x: 1 · degrees

0°

What is arccos(1)? 0°.

Example 4

  • x: −1 · radians

π ≈ 3.141593

What is arccos(−1)? 180° = π.

Example 5

  • x: −0.5 · degrees

120°

What is arccos(−0.5)? 120° = 2π/3.

Example 6

  • x: 0.866 · degrees

≈ 30°

What is arccos(√3/2) ≈ arccos(0.866)? ≈ 30°.

Example 7

  • x: 0.707 · degrees

≈ 45°

What is arccos(√2/2) ≈ arccos(0.707)? ≈ 45°.

Example 8

  • x: 0.8 · degrees

≈ 36.87°

What is arccos(0.8) from a 3-4-5 triangle? ≈ 36.87°.

Related calculators

Frequently asked questions

What are the domain and range of arccos?

The domain is the closed interval [−1, 1]: only those numbers are cosine values in the reals. The principal-value range is [0, π] in radians, or [0°, 180°] in degrees. Outside [−1, 1] there is no real result — the calculator shows an error, not a fake angle.

What is arccos(0.5)?

The angle is 60°, because cos 60° = 1/2. In radians that is π/3 ≈ 1.047198. That is the first worked example on this page and the same fill from “Fill this example”.

What is arccos(0)?

The angle is 90°, because cos 90° = 0. In radians that is π/2 ≈ 1.570796. That is the midpoint of [0°, 180°].

What are arccos(1) and arccos(−1)?

arccos(1) = 0° (0 rad), arccos(−1) = 180° (π rad). Those are the ends of the domain and of the principal range.

Why is the result never 270°?

By definition the principal value of arccos is restricted to [0°, 180°]. The angle 270° shares cosine with 90°, but it is not on the principal branch. The calculator picks 90° from x = 0, matching NIST DLMF 4.23.

How do I switch the result to radians?

In “Show result in”, choose Radians. Then 60° becomes π/3 ≈ 1.047198, and 180° becomes π. The result panel also always shows the other unit beside the primary field.

How does arccos differ from cosine and from arcsin?

Cosine goes from angle to number: cos 60° = 0.5. Arccos goes the other way: 0.5 returns 60°. Arcsin inverts sine and has range [−90°, 90°]. For x ∈ [−1, 1], arccos(x) = π/2 − arcsin(x).

What is arccos(−0.5)?

The angle is 120° (2π/3 rad). A negative cosine lands in the second quadrant, still inside [0°, 180°]. The identity arccos(−x) = π − arccos(x) gives π − π/3 = 2π/3.

What angle comes from x = 0.8 in a 3-4-5 triangle?

About 36.8699°. In a 3-4-5 right triangle the adjacent-over-hypotenuse ratio is 4/5 = 0.8, so α = arccos(0.8). The calculator computes the angle, not the sides.

How do the derivative and integral of arccos work?

For |x| < 1 the derivative is (arccos x)′ = −1/√(1 − x²). The indefinite integral is ∫ arccos(x) dx = x·arccos(x) − √(1 − x²) + C. Those formulas are standard in calculus and in tables (Abramowitz & Stegun, Ch. 4).

Why do numerical libraries sometimes prefer atan2 for angles?

arccos in the browser uses the platform math library. In numerical literature an angle from a (cos, sin) pair is often computed as atan2(√(1 − x²), x), because atan2 distinguishes quadrants and can be better conditioned near the endpoints. Here the result is the principal arccos value: the same angle acos returns.

Do the currency and unit settings in the page header affect the result?

No. The result depends only on x and on the degrees/radians switch in the form. The currency and unit settings in the page header do not affect this result.

How do I calculate arccos?

Enter x in [−1, 1]. The result is the angle α ∈ [0°, 180°] such that cos α = x. For 0.5 you get 60° (π/3); for 0 — 90°; for −0.5 — 120°. Outside [−1, 1] there is no real result.

What is arccos (inverse cosine)?

Arccos, arccosine, or cos⁻¹ is the inverse of cosine on [0, π]. From a number in [−1, 1] it returns the principal angle. Do not confuse it with hyperbolic cosine or with area cosine (arcosh).

What is arccos(√2/2)?

45° = π/4, because cos 45° = √2/2 ≈ 0.707. The page has an example with x ≈ 0.707 — the same angle after “Fill this example”.

Can I compute arccos of a number greater than 1?

Not in the reals. Cosine never exceeds 1 or falls below −1, so the domain of arccos is [−1, 1]. For |x| > 1 the calculator shows an error, not a fake angle.

What is arccos(√3/2)?

30° = π/6, because cos 30° = √3/2 ≈ 0.866. The example with x ≈ 0.866 on the page gives about 30°.

The result is the principal arccos value: for x = 0.5 the angle is 60° (π/3). The cos α check returns x. A separate inverse sine lives on the arcsin page.

Knowledge sources

Definitions, domain, range, and identities below come from established mathematical references.

Page Updated November 2, 2026.