ACOS

Math & Trigonometry Functions
(4.7/5)

Returns the arccosine (inverse cosine) of a number, in radians. The result is an angle between 0 and π (0 and 180 degrees). Essential for trigonometry, engineering calculations, angle conversions, and solving equations involving cosine.

Interactive Formula Tester

=ACOS("0.5")

Complete Theory & Understanding

Master the fundamentals of Excel ACOS function

Core Concept

The ACOS function returns the arccosine (inverse cosine) of a number in radians. It is the inverse of the COS function: if y = COS(x), then x = ACOS(y). ACOS returns angles between 0 and π radians (0 to 180 degrees). Essential for trigonometry, engineering calculations, and solving equations where you know the cosine and need the angle.

Why Use ACOS?

  • Find angles from cosine values
  • Calculate angles in engineering problems
  • Solve triangle angle problems
  • Perform scientific angle calculations

Key Characteristics

Inverse Cosine

Returns angle whose cosine is the number

ACOS(0.5) = 60° because cos(60°) = 0.5

Range: -1 to 1

Input must be between -1 and 1

ACOS(2) = #NUM! error

Returns Radians

Result is in radians (0 to π)

Use DEGREES() to convert

Principal Value

Always returns 0 to π range

ACOS(0) = π/2 = 90°

Function Anatomy

=ACOS(parameters...)
Required
Parameters:

Function-specific parameters

Returns
Return Value:

Function-specific return type

Primary Use Cases

Trigonometry

Find angles from cosine values

Engineering

Calculate angles in engineering problems

Geometry

Solve triangle angle problems

Scientific Calculations

Perform scientific angle calculations

Theory Summary

Precise

Exact matching required

Position-Based

Returns numeric position

Error-Safe

Handles missing text gracefully

Syntax & Parameters

=ACOS(number)
Required
number:

The cosine of the angle you want. Must be between -1 and 1 inclusive. The arccosine is the angle whose cosine is number.

Returns
Return Value:

The arccosine in radians (0 to π, or 0 to 180 degrees)

Description: Returns the arccosine (inverse cosine) of a number in radians

Interactive Examples

Basic ACOS

Calculate arccosine

"0.5"
=ACOS(0.5)
1.047197551

Returns approximately 1.047 radians (60 degrees). ACOS(0.5) = 60° because cos(60°) = 0.5.

VBA Implementation & Automation

Basic ACOS in VBA

Use ACOS function in VBA

' Basic ACOS in VBA
Range("C1").Value = Application.WorksheetFunction.Acos(0.5)
' Returns: 1.047 (radians)

' Calculate angle in degrees
Sub CalculateAngleDegrees()
    Dim cosineValue As Double
    cosineValue = Range("A1").Value
    Dim angleRadians As Double
    Dim angleDegrees As Double
    angleRadians = Application.WorksheetFunction.Acos(cosineValue)
    angleDegrees = Application.WorksheetFunction.Degrees(angleRadians)
    Range("B1").Value = angleDegrees
End Sub

' Calculate angle in triangle
Sub TriangleAngle()
    Dim adjacent As Double, hypotenuse As Double
    adjacent = Range("A1").Value
    hypotenuse = Range("B1").Value
    Dim cosine As Double
    cosine = adjacent / hypotenuse
    Dim angleDegrees As Double
    angleDegrees = Application.WorksheetFunction.Degrees( _
        Application.WorksheetFunction.Acos(cosine))
    Range("C1").Value = angleDegrees
End Sub

' Validate input range
Sub SafeACOS()
    Dim value As Double
    value = Range("A1").Value
    If value < -1 Or value > 1 Then
        Range("B1").Value = "#NUM!"
    Else
        Range("B1").Value = Application.WorksheetFunction.Acos(value)
    End If
End Sub

Business Applications

Triangle Angles

Find angle from cosine ratio

=DEGREES(ACOS(adjacent/hypotenuse))

Angle Conversion

Convert cosine to angle in degrees

=DEGREES(ACOS(cosine_value))

Engineering Calculations

Calculate angles in engineering problems

=ACOS(cosine_value)

Scientific Analysis

Perform trigonometric analysis

=DEGREES(ACOS(value))

Common Issues & Solutions

#NUM! Error

ACOS returns #NUM! for values outside -1 to 1

=IF(AND(A1>=-1, A1<=1), ACOS(A1), "#NUM!")

Solution: Ensure input is between -1 and 1. Cosine values are always in this range. Use IF to validate: =IF(AND(A1>=-1, A1<=1), ACOS(A1), "#NUM!").

Result in Radians

ACOS returns radians but need degrees

=DEGREES(ACOS(A1))

Solution: Wrap ACOS with DEGREES: DEGREES(ACOS(number)). This converts radians to degrees. Remember: π radians = 180 degrees.

Precision Issues

ACOS results have many decimal places

=ROUND(DEGREES(ACOS(A1)), 2)

Solution: Use ROUND for display: ROUND(ACOS(value), digits) or ROUND(DEGREES(ACOS(value)), digits) for degrees.

Inverse Relationship

Uncertainty about ACOS vs COS relationship

ACOS(COS(60°)) = 60° (after converting)

Solution: ACOS is inverse of COS: ACOS(COS(angle)) = angle (in radians). COS(ACOS(value)) = value (if value is between -1 and 1).

Performance Tips & Best Practices

⚡ Performance Optimization

  • ACOS is fast - minimal performance impact
  • Validate input range before calculation to avoid errors
  • Use DEGREES() only when needed (adds small overhead)
  • Round results only for display, not in calculations
  • ACOS works efficiently in array formulas

🎯 Best Practices

  • Always validate input is between -1 and 1
  • Use DEGREES(ACOS()) for angles in degrees
  • Remember ACOS returns radians (0 to π)
  • Common values: ACOS(0) = 90°, ACOS(1) = 0°, ACOS(-1) = 180°
  • Test with known values to verify correctness
  • Document when using radians vs degrees
  • Combine with other trigonometric functions for complex calculations