Math & trig function

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)
ArgumentWhat it means
numberRequiredThe 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

D2fx=B2*CSC(RADIANS(C2))
ABCD
1RampRise (m)Max angle (°)
2Shop entrance0.54.85.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

A1fx=CSC(0)
A
1#DIV/0!

Result: #DIV/0!

sin(0) = 0, so there is no reciprocal.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DutchCOSEC
FinnishKOSEK
GermanCOSEC
Portuguese (Brazil)COSEC