To use the CSC function in Google Sheets, type =CSC(angle) into a cell, replacing angle with the angle in radians (or a cell reference containing the angle). Press Enter and the cosecant of that angle appears. That is the whole answer — the rest of this guide explains how to get the angle right, what errors mean, and how to avoid the most common mistakes.
What You'll Need
- A Google account and access to Google Sheets (desktop browser or the mobile app).
- A sheet where you can enter data or formulas.
- Angles expressed in radians. If your angles are in degrees, you will need to convert them (see Step 2).
Step-by-Step
- Open your spreadsheet. Go to Google Sheets and open a new or existing file. The steps below work the same on desktop and mobile, though the formula bar looks slightly different; on mobile, tap the cell and then the formula input area.
- Decide on your angle unit. Google Sheets trigonometric functions expect radians, not degrees. If you have an angle in degrees, convert it by multiplying by
PI()/180or using theRADIANS()function. For example, 30 degrees becomes=RADIANS(30)or=30*PI()/180. - Enter the CSC formula. Click an empty cell and type
=CSC(followed by your angle or a reference to the cell containing the angle, then a closing parenthesis. For example,=CSC(1)returns the cosecant of 1 radian. If your angle is in cell A2, use=CSC(A2). - Press Enter. The result appears in the cell. If the angle is a multiple of π (pi), you will see a
#DIV/0!error because sine is zero there and cosecant is undefined. - Copy the formula down (optional). Drag the fill handle or copy and paste the formula to apply it to a column of angles. Relative references adjust automatically.
- Format the result if needed. Use the toolbar to increase or decrease decimal places, or apply a number format. CSC results can be large near multiples of π, so formatting helps readability.
Common Mistakes
- Using degrees directly. Typing
=CSC(30)treats 30 as radians, not degrees. The result will be wrong for a 30-degree angle. Always convert degrees to radians first. - Forgetting the parentheses. A formula like
=CSC A2is invalid; you need=CSC(A2). - Expecting a result at multiples of π. At 0, π, 2π and so on, sine is zero, so CSC returns
#DIV/0!. That is correct behavior, not a bug. - Mixing up CSC with SIN. CSC is the reciprocal of sine (1/sin). If you need sine, use
=SIN(); if you need cosecant, use=CSC(). - Referencing text or blank cells. If the referenced cell contains text or is empty, CSC may return an error or zero. Ensure the input is numeric.
Tips
- Use
=1/SIN(angle)as an alternative if you prefer; it gives the same result and can be easier to remember. - Combine CSC with
ARRAYFORMULAto apply it to a whole range at once, e.g.,=ARRAYFORMULA(CSC(A2:A10)). - If you work mostly in degrees, set up a helper column that converts degrees to radians, then run CSC on that column.
- Remember that CSC is undefined wherever sine is zero; you can wrap the formula in
IFERRORto display a blank or custom message instead of an error.
Troubleshooting
- #DIV/0! error: The angle is a multiple of π (including 0). Check your input; if you intended a non-zero angle, you may have converted incorrectly.
- #NAME? error: The function name is misspelled or not recognized. Ensure you typed
CSCexactly, with no spaces. - #VALUE! error: The argument is non-numeric (text or a blank cell). Verify the cell contains a number.
- Unexpectedly large or small results: Near multiples of π, cosecant grows very large. This is mathematically correct; double-check your angle if the magnitude seems off.
- Formula not calculating: Ensure the cell is not formatted as plain text. Re-enter the formula or change the format to automatic.
Frequently Asked Questions
What does the CSC function do in Google Sheets?
It returns the cosecant of an angle given in radians, which is the reciprocal of the sine (1/sin).
Can I use degrees with CSC?
No, CSC expects radians. Convert degrees to radians first using RADIANS() or multiply by PI()/180.
Why do I get #DIV/0! for some angles?
Because cosecant is undefined when sine is zero, which happens at 0, π, 2π, etc. That is a mathematical limitation, not an error in your formula.
Is there a SEC or COT function too?
Google Sheets does not have built-in SEC or COT functions, but you can calculate them as =1/COS(angle) and =1/TAN(angle) or =COS(angle)/SIN(angle).
How do I apply CSC to a whole column?
Use ARRAYFORMULA with a range, such as =ARRAYFORMULA(CSC(A2:A100)), or drag the fill handle.
Does CSC work on the mobile app?
Yes, the function works the same in the Google Sheets mobile app; just enter the formula in the cell's input area.