Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets ACOS Function: How to Use It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You do not use ACOS as a spreadsheet function in Google Sheets; the function is written as ACOS in spreadsheets only when the argument fits between -1 and 1, and it returns the angle in radians whose cosine equals that value. In practice you type =ACOS(0.5) into a cell and get about 1.0472 radians, which is 60 degrees. Google Sheets uses the same ACOS syntax as most spreadsheet programs: one numeric argument in the range -1 to 1, and if you want the result in degrees you wrap it in DEGREES, as in =DEGREES(ACOS(0.5)). That is the whole function. The difficulty is in knowing what input the function expects, what it returns, and why you sometimes see #NUM! or #VALUE! errors.

What You'll Need

  • A Google account with access to Google Sheets (free with any Google account) and a browser, or the Google Sheets mobile app if you are only reading or editing simple formulas.
  • A spreadsheet open and at least one cell you can type a formula into.
  • A number, cell reference or formula that produces a value between -1 and 1 to pass to ACOS.
  • Optional: a calculator or the DEGREES function if you need the answer in degrees rather than radians.

Step-by-Step

  1. Open your spreadsheet at sheets.google.com in a browser, or open the Sheets app on your phone or tablet. Menu labels can differ slightly by version, device or region, so treat the labels below as a guide rather than exact wording.
  2. Click the cell where you want the result. This is the cell that will display the angle, not the input value.
  3. Type an equals sign to start a formula, then type =ACOS(. Google Sheets will show a suggestion tooltip with the function and its argument as you type.
  4. Enter the argument. You can type a literal number such as =ACOS(0.5), or refer to a cell such as =ACOS(A2). Close the bracket and press Enter. The cell shows 1.047197551, which is the angle in radians.
  5. Convert to degrees if that is what you need. Wrap the function: =DEGREES(ACOS(A2)). For an input of 0.5 the result is 60, because 60 degrees is the angle whose cosine is 0.5.
  6. Check that your input is in range. ACOS accepts any number from -1 to 1 inclusive. ACOS(1) returns 0 radians (0 degrees), ACOS(0) returns 1.5708 radians (90 degrees), and ACOS(-1) returns about 3.1416 radians (180 degrees). Any value outside that band produces an error.
  7. Copy the formula down a column if you have a list of values. Select the cell, drag the small square handle at the bottom-right corner down the column, or copy and paste. Relative cell references update automatically. If you want to point at one fixed value for every row, lock the reference with dollar signs, for example =DEGREES(ACOS($B$1)).
  8. Round the output for readability if you like. =ROUND(DEGREES(ACOS(A2)),2) gives two decimal places. Alternatively leave the full value and apply number formatting to the cell, which does not change the stored number.
  9. Use it inside other formulas where an angle is needed. For example, if you know the cosine of an angle in one cell, =COS(ACOS(A2)) returns the original input, which is a quick way to confirm your formula is doing what you think.

Common Mistakes

  • Passing a value outside -1 to 1. This is the most frequent problem. A cosine can never be larger than 1 or smaller than -1, so ACOS(1.5) is not a calculation the function can perform. It returns #NUM!, not a silent wrong answer.
  • Forgetting the input is a cosine, not an angle. ACOS takes a cosine value and gives you the angle back. If you already have an angle and want the cosine, you want COS instead. Mixing these up gives confusing but plausible-looking numbers.
  • Expecting degrees. ACOS always returns radians in Google Sheets. If your result looks like 1.05 instead of 60, you have radians. Wrap it in DEGREES.
  • Leaving the argument as text. If the cell contains a number stored as text, for example pasted with an apostrophe or a trailing space, you may get #VALUE!. Numbers must be true numeric values.
  • Using the wrong separator. In locales where the decimal separator is a comma, you write =ACOS(0,5) rather than =ACOS(0.5). Google Sheets generally adapts to your locale, but pasted formulas from other files can break on this.
  • Assuming ACOS is an advertising metric. If you searched for something else and landed here, note that ACOS in advertising is a completely separate term. The spreadsheet function is purely trigonometry.

Tips

  • Keep your input in its own cell and reference it. It makes a sheet far easier to audit than typing 0.5 inside a dozen formulas.
  • Use =DEGREES(ACOS(x)) from the start if you work with compass or construction angles; most people think in degrees.
  • For inverse cosine values that are close to 1 or -1, small input changes produce large angle changes. Round the input or the result deliberately rather than assuming precision you do not have.
  • If the value is a ratio that can legitimately reach 1 or slightly exceed it because of measurement noise, clamp it: =DEGREES(ACOS(MIN(1,MAX(-1,A2)))). This avoids #NUM! while keeping the result meaningful.
  • Combine with ASIN or ATAN when you are resolving a triangle from side lengths, and label the units in a neighbouring cell so nobody mistakes radians for degrees later.

Troubleshooting

If you see #NUM!, the argument is outside -1 to 1. Check the referenced cell for an empty result, a percentage typed as 150 instead of 1.5, or a formula that produces a number larger than one. Clamping with MIN and MAX as above fixes borderline noise; anything genuinely large means the input is wrong.

If you see #VALUE!, the argument is not a number. Look for text, a leading apostrophe, a stray space, or a cell that looks numeric but is formatted as plain text. Re-enter the value or use a numeric conversion.

If the answer is far smaller than expected, you are almost certainly reading radians, not degrees. Apply DEGREES and check again. If the answer is empty, make sure the reference points at a cell that actually has a value.

If the formula seems not to update after you change the input, check that the cell is not set to a manual recalculation mode and that the reference is not locked to the wrong cell with dollar signs. If the sheet is shared, confirm you are looking at the current version rather than a stale copy.

If nothing resolves the error, retype the formula from scratch in a clean cell rather than copying it, since invisible characters from pasted text are a common culprit.

Frequently Asked Questions

What does ACOS do in Google Sheets?

It returns the arccosine of a number: the angle in radians whose cosine equals the value you supply. The input must be between -1 and 1 inclusive.

How do I get the result in degrees instead of radians?

Wrap the function in DEGREES, for example =DEGREES(ACOS(0.5)), which returns 60.

Why does ACOS return #NUM!?

The argument is outside -1 to 1, or the referenced cell produced a value outside that range. Correct the input, or clamp it with MIN and MAX if you are dealing with noisy ratios.

Does ACOS work in the Google Sheets mobile app?

Yes. You can type the same formula in the Sheets app on Android and iOS. Longer nested formulas are easier to build, review and debug on a desktop browser, though.

What is the difference between ACOS and COS?

COS takes an angle and gives you its cosine. ACOS takes a cosine and gives you the angle. They are inverse operations, not the same calculation.

Can I use ACOS on a range of cells?

Not directly. ACOS expects a single value. Use ARRAYFORMULA, such as =ARRAYFORMULA(DEGREES(ACOS(A2:A10))), to apply it to a column in one go, or copy the formula down.