CSC function
Returns the cosecant of an angle in radians (1 / sine), e.g. sloping length from a vertical rise.
Available in Excel 2013 and later, Microsoft 365, Excel for the web, Excel for Mac 2016 and later
Excel 2013 and laterWorks in Google Sheets
Syntax
CSC(number)| Argument | What it means | |
|---|---|---|
number | Required | The angle in radians; |number| must be less than 2^27. |
Returns: 1 ÷ sin(number).
How CSC works
The cosecant is the reciprocal of the sine: hypotenuse divided by the opposite side. Given a vertical rise and the maximum allowed angle, rise*CSC(angle) gives the sloping length you need, which is how you size a ramp, a ladder or a guy wire that must reach a certain height.
CSC(0) returns #DIV/0! because the sine is 0. Before Excel 2013, use 1/SIN(x). Excel's trigonometric functions work in radians, not degrees. Convert an angle with RADIANS (or multiply by PI()/180) before passing it in, and convert results back with DEGREES.
Examples
1Ramp length to reach a doorway
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Ramp | Rise (m) | Max angle (°) | |
| 2 | Shop entrance | 0.5 | 4.8 | 5.98 |
Result: 5.98
To climb 0.5 m at no more than 4.8°, the ramp must be about 5.98 m long (2 decimals).
2Cosecant of zero
| A | |
|---|---|
| 1 | #DIV/0! |
Result: #DIV/0!
sin(0) = 0, so there is no reciprocal.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | The angle is 0. | Check the angle. |
#NUM! | |number| ≥ 2^27. | Reduce the angle. |
Tips
- Guy wire length:
=mast_height*CSC(RADIANS(angle)).
Google Sheets
CSC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
CSC in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Dutch | COSEC |
| Finnish | KOSEK |
| German | COSEC |
| Portuguese (Brazil) | COSEC |