Smart Systems for Home

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

Google Sheets COS Function: How to Use It

· 5 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

The COS function in Google Sheets returns the cosine of an angle given in radians. To use it, type =COS(angle) into a cell, replacing angle with a number or a cell reference that holds the angle in radians. If your angle is in degrees, wrap it in the RADIANS function: =COS(RADIANS(60)) returns 0.5. That is the entire answer for most people. The rest of this guide covers the syntax, how to convert degrees to radians, common errors, and practical examples so you can apply it confidently.

What You'll Need

  • A Google account with access to Google Sheets (free with any Google account).
  • A spreadsheet open in a browser or the Google Sheets mobile app. The steps below work in both, though menu labels can differ slightly by version, device, or region.
  • No add-ons or special permissions are required. COS is a built-in function available in every spreadsheet.

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com, sign in, and open an existing file or create a new blank spreadsheet. On mobile, open the Google Sheets app and tap the file you want to edit.
  2. Select the cell where you want the result. Click or tap an empty cell. This is where the cosine value will appear.
  3. Start the formula with an equals sign. Type = to tell Sheets you are entering a formula rather than text.
  4. Type COS and an opening parenthesis. Your cell should now show =COS(. As you type, Sheets may show a suggestion for COS in a dropdown; you can press Tab or click the suggestion to insert it.
  5. Enter the angle in radians. You can type a number directly, such as =COS(0), or reference another cell, such as =COS(A2). Radians are the default unit for trigonometric functions in Sheets.
  6. Close the parenthesis and press Enter. The cell displays the cosine of the angle. For example, =COS(0) returns 1, and =COS(PI()) returns -1.
  7. Convert degrees to radians if needed. If your angle is in degrees, use =COS(RADIANS(60)). RADIANS converts degrees to radians, so 60 degrees becomes about 1.047 radians, and the cosine is 0.5. Alternatively, multiply by PI()/180: =COS(60*PI()/180) gives the same result.
  8. Copy the formula down a column. If you have a list of angles in column A, put =COS(A2) in B2 and drag the fill handle (the small square at the bottom-right of the cell) down to apply it to the rest of the column. Relative references adjust automatically.

Common Mistakes

  • Using degrees without converting. COS expects radians. Typing =COS(60) does not return 0.5; it returns the cosine of 60 radians, which is about -0.952. Always wrap degree values in RADIANS or multiply by PI()/180.
  • Forgetting the closing parenthesis. Sheets will usually offer to fix this, but an incomplete formula shows an error until corrected.
  • Referencing a text cell. If the referenced cell contains text rather than a number, COS returns a #VALUE! error. Check that your angle cells are formatted as numbers.
  • Confusing COS with COSH. COSH is the hyperbolic cosine, a different function. Use COS for standard trigonometry.
  • Expecting degrees in the result. COS returns a ratio between -1 and 1, not an angle. If you need the angle from a cosine value, use ACOS.

Tips

  • Use PI() for precise pi values. =COS(PI()/3) returns 0.5, the cosine of 60 degrees.
  • Format results to a fixed number of decimals with Format > Number > Number or the toolbar decimal buttons, so long floating-point results like 0.5000000000000001 display cleanly.
  • Combine COS with SIN and TAN in the same sheet for geometry or engineering calculations. All three use radians.
  • Use absolute references (for example $A$2) if you want to keep the angle fixed while copying the formula elsewhere.
  • For a quick reference, cosine values follow a pattern: cos(0) = 1, cos(π/2) = 0, cos(π) = -1, and the function repeats every 2π radians.

Troubleshooting

If the formula does not work as expected, check these in order:

  • #VALUE! error: The argument is text or a cell containing text. Confirm the cell holds a number, or use VALUE() to convert text that looks like a number.
  • #NAME? error: The function name is misspelled. Check that you typed COS, not COSS or another variant.
  • Wrong result: The angle is probably in degrees but treated as radians. Wrap it in RADIANS() and recalculate.
  • Formula shows as text: The cell may be formatted as plain text. Select the cell, go to Format > Number > Automatic, then re-enter the formula.
  • Unexpectedly long decimals: This is normal floating-point behavior. Round with ROUND(=ROUND(COS(A2),4)) or adjust the display format.
  • Mobile app behaves differently: The formula bar on mobile is accessed by tapping the cell and then the formula icon. Function suggestions may not appear, so type the full formula manually.

If none of these resolve the issue, try the formula in a fresh blank spreadsheet to rule out formatting or data problems in the original file.

Frequently Asked Questions

Does Google Sheets COS use degrees or radians?

COS uses radians. To use degrees, convert with RADIANS or multiply the angle by PI()/180.

How do I get the cosine of 45 degrees?

Use =COS(RADIANS(45)), which returns approximately 0.7071.

Why does =COS(90) not return 0?

Because 90 is interpreted as 90 radians, not 90 degrees. Use =COS(RADIANS(90)) to get 0 (or a value extremely close to 0 due to floating-point precision).

Can COS reference a range of cells?

No. COS takes a single numeric argument. To apply it to a range, enter the formula in one cell and copy it down, or use ARRAYFORMULA with COS over a range, for example =ARRAYFORMULA(COS(A2:A10)).

What is the difference between COS and ACOS?

COS returns the cosine of an angle. ACOS does the reverse: it returns the angle whose cosine is the given value, in radians.

Does COS work in Google Sheets on mobile?

Yes. The function is identical on the Android and iOS apps; type the formula into the formula bar the same way.