Inverse Cosine (arccos) Calculator
Enter any cosine value between -1 and 1 to find the corresponding angle using the inverse cosine function (also written arccos or cos⁻¹). You can also switch to right-triangle mode and enter the adjacent side and hypotenuse instead. Results appear in degrees, radians, and gradians, and the step-by-step panel shows exactly how the angle was found.
Formula
Worked example
Find arccos(0.5): the angle whose cosine is 0.5. Because cos(60°) = 0.5, arccos(0.5) = 60° = π/3 radians = 66.6667 gradians. To verify: cos(60°) = 0.5. For a right triangle with adjacent = 3 and hypotenuse = 5: ratio = 3/5 = 0.6, so arccos(0.6) ≈ 53.1301°.
What is the inverse cosine function?
The inverse cosine function, written arccos(x) or cos⁻¹(x), answers the question: "which angle has a cosine equal to x?" Because cosine takes an angle and returns a ratio, the inverse function takes a ratio and returns the angle. The input must be a number between -1 and 1 inclusive, since those are the only values cosine ever produces. The output is always in the principal range from 0° to 180° (or 0 to π radians), which is the conventional restriction that makes the function single-valued. You will see it written three ways: arccos, cos⁻¹, and acos (in programming languages). All three mean the same thing.
How to use this calculator
In the default mode (cosine value), type any number from -1 to 1. The angle appears immediately in degrees, radians, and gradians, and the worked-steps panel shows every conversion so you can follow the arithmetic. In right-triangle mode, enter the length of the side adjacent to the angle you want and the length of the hypotenuse. The calculator divides them to get the cosine ratio, then applies arccos. This is useful when you have a triangle and need to find a missing angle without first computing the ratio yourself. The gauge shows where your angle falls on the 0-to-180-degree scale and labels it as acute (below 90°) or obtuse (above 90°).
Degrees, radians, and gradians
Degrees are the everyday unit, dividing a full circle into 360 equal parts. Radians are the natural unit for mathematics and most programming languages: a full circle is 2π radians, so a half-circle (the arccos range) is π ≈ 3.14159 radians. To convert degrees to radians, multiply by π/180. Gradians (also called gons or grades) divide a full circle into 400 parts, so a right angle is exactly 100 grad. They are used mainly in surveying and some European engineering traditions. Since arccos returns values from 0 to 180°, the equivalent range in radians is 0 to π, and in gradians 0 to 200 grad.
Finding a triangle angle with inverse cosine
In a right triangle, the cosine of an angle equals the adjacent side divided by the hypotenuse. If you know these two sides, you can recover the angle: theta = arccos(adjacent / hypotenuse). For example, a right triangle with an adjacent side of 4 and a hypotenuse of 5 gives a cosine ratio of 4/5 = 0.8, and arccos(0.8) ≈ 36.87°. For non-right triangles, the law of cosines generalises this: cos(A) = (b² + c² - a²) / (2bc), and then A = arccos of that expression. The inverse-triangle mode in this calculator handles the right-triangle case directly.
Common inverse cosine values
| Cosine value (x) | Degrees | Radians | Exact radians |
|---|---|---|---|
| -1 | 180° | 3.141593 | π |
| -0.866025 | 150° | 2.617994 | 5π/6 |
| -0.707107 | 135° | 2.356194 | 3π/4 |
| -0.5 | 120° | 2.094395 | 2π/3 |
| 0 | 90° | 1.570796 | π/2 |
| 0.5 | 60° | 1.047198 | π/3 |
| 0.707107 | 45° | 0.785398 | π/4 |
| 0.866025 | 30° | 0.523599 | π/6 |
| 1 | 0° | 0.000000 | 0 |
Exact and decimal values of arccos(x) for frequently encountered cosine ratios in degrees and radians.
Frequently asked questions
What is the domain and range of arccos?
The domain (valid inputs) of arccos is every real number from -1 to 1, written [-1, 1]. The range (possible outputs) is 0° to 180°, or equivalently 0 to π radians. Any input outside [-1, 1] is undefined because no angle has a cosine larger than 1 or smaller than -1.
What is the difference between arccos, cos⁻¹, and acos?
They all refer to the same inverse cosine function. "arccos" is the traditional mathematical notation, "cos⁻¹" uses the inverse-function superscript, and "acos" is the name used in most programming languages (C, Python, JavaScript). The superscript -1 here means inverse function, not the reciprocal 1/cos(x), which is the secant.
Why does arccos only return angles between 0 and 180 degrees?
Cosine is not a one-to-one function: cos(60°) = cos(-60°) = 0.5, and many other pairs share the same cosine value. To define a true inverse that returns exactly one answer, mathematicians restrict arccos to the principal value range [0°, 180°]. This choice covers one full arc of the cosine curve and produces a unique angle for every input in [-1, 1]. If you need an angle outside that range, you can add or subtract multiples of 360° or use symmetry arguments for your specific problem.
How do I convert the arccos result from radians to degrees?
Multiply the radian value by 180 and divide by π (approximately 57.2958). For example, arccos(0.5) = π/3 radians; π/3 × 180/π = 60°. To go the other way, multiply degrees by π/180. This calculator shows both results automatically so you never need to convert manually.
What happens if I enter a number outside -1 to 1?
Arccos is undefined for those inputs. Mathematically, no angle can produce a cosine ratio larger than 1 or smaller than -1, because cosine is always between these bounds. The calculator will show no result and prompt you to correct the input. In code, Math.acos(x) returns NaN for out-of-range values.
How is arccos used in the law of cosines?
The law of cosines states that a² = b² + c² - 2bc·cos(A), where a, b, c are side lengths and A is the angle opposite side a. Rearranging gives cos(A) = (b² + c² - a²) / (2bc). Applying arccos to both sides gives A = arccos((b² + c² - a²) / (2bc)), which solves any triangle when all three sides are known.
Is arccos the same as 1/cos(x)?
No. The reciprocal 1/cos(x) is the secant function, written sec(x). The inverse cos⁻¹(x) is arccos(x), which returns an angle. The two are completely different operations: sec(x) flips the cosine value, while arccos(x) undoes the cosine function to recover the angle.