Arccosine Calculator
Calculate the inverse cosine (arccos) of any value in degrees or radians, with the principal value
What Is Arccosine?
Arccosine (also written as cos⁻¹ or acos) is the inverse of the cosine function. While cosine takes an angle and returns a ratio, arccosine takes a ratio and returns the angle. If cos(60) = 0.5, then arccos(0.5) = 60 degrees. The input must be between -1 and 1, and the output falls between 0 and 180 degrees (0 to pi radians). This range differs from arcsine because cosine needs the 0-to-180 range to be one-to-one. Enter any value in the calculator above for instant arccosine results in degrees and radians.
Common Arccosine Values
arccos(1) = 0 degrees. arccos(0.8660) = 30 degrees. arccos(0.7071) = 45 degrees. arccos(0.5) = 60 degrees. arccos(0) = 90 degrees. arccos(-0.5) = 120 degrees. arccos(-0.7071) = 135 degrees. arccos(-0.8660) = 150 degrees. arccos(-1) = 180 degrees. Unlike arcsine, arccosine returns only non-negative angles (0 to 180 degrees), making it naturally suited for problems where the angle cannot be negative, such as the angle between two vectors or the interior angle of a triangle.
Arccosine in Vector Calculations
The angle between two vectors is found using arccosine: theta = arccos(A dot B / (|A| times |B|)). For vectors A = [1, 0] and B = [1, 1]: dot product = 1, magnitudes = 1 and 1.414, so theta = arccos(1/1.414) = arccos(0.7071) = 45 degrees. This calculation is fundamental in computer graphics (lighting angles), physics (force components), machine learning (cosine similarity between feature vectors), and navigation (bearing calculations). The arccosine function is the standard way to extract an angle from a dot product result.
Arccosine in the Law of Cosines
The law of cosines (c² = a² + b² - 2ab cos(C)) can be rearranged to find angles: C = arccos((a² + b² - c²) / (2ab)). This finds any angle of a triangle when all three sides are known. For a triangle with sides 5, 7, and 9: the angle opposite side 9 is arccos((25 + 49 - 81) / (2 times 5 times 7)) = arccos(-7/70) = arccos(-0.1) = 95.74 degrees. This technique is essential in surveying, navigation, structural analysis, and any situation where you know distances but need angles.
How Does Arccosine Differ from Arcsine?
Arcsine and arccosine are complementary: arcsin(x) + arccos(x) = 90 degrees for any valid input x. Arcsine returns angles from -90 to 90 degrees (the right half of the unit circle). Arccosine returns angles from 0 to 180 degrees (the upper half). For the same input value, they return different but related angles. In practice, choose arcsine when working with opposite/hypotenuse ratios in right triangles, and arccosine when working with adjacent/hypotenuse ratios, dot products, or the law of cosines. The choice depends on which function naturally fits the problem structure.
Arccosine in Computer Graphics
3D rendering engines use arccosine extensively for lighting calculations. The brightness of a surface depends on the angle between the surface normal and the light direction: intensity = cos(theta). When computing shadow boundaries, ambient occlusion, or reflection angles, the engine needs to recover theta from the dot product of normalized vectors, which requires arccosine. Game engines and ray tracers call the acos function millions of times per frame. Optimized approximations (fast inverse cosine) trade a small amount of precision for significant speed gains in real-time rendering applications.
Numerical Considerations
Floating-point arithmetic can produce dot product values slightly outside the valid -1 to 1 range (like 1.0000000001 or -1.0000000002) due to rounding. Passing these values to arccosine produces errors or NaN (not a number) results. Robust implementations clamp the input to [-1, 1] before computing arccosine. Near the boundaries (input close to 1 or -1), arccosine loses precision because the function's derivative approaches infinity. For high-precision applications near these boundaries, alternative formulations using atan2 or arcsine may provide more accurate results than direct arccosine computation.
Arccosine in Spherical Geometry
The great-circle distance between two points on a sphere (like Earth) uses arccosine. Given two points with latitude-longitude coordinates, the angular distance is arccos(sin(lat1) times sin(lat2) + cos(lat1) times cos(lat2) times cos(delta_lon)). Multiplying this angle (in radians) by Earth's radius gives the surface distance in kilometers. This formula is the basis for flight distance calculators, shipping route planners, and GPS navigation systems. For very short distances, the haversine formula is preferred over arccosine because it provides better numerical precision when the angle is small, but for distances above a few kilometers, both formulas give equivalent results.
Frequently asked questions
What is arccos(0.5)?
What is the range of arccosine?
How is arccosine different from arcsine?
How do I find the angle between two vectors?
What is arccos(0)?
What is arccos(-1)?
Rate This Calculator
Your feedback helps us improve our tools