SEC Function

Excel Functions › Math & Trig

Excel 2013+ Math & Trig

The Excel SEC function returns the secant of an angle — the reciprocal of the cosine, 1/COS. Excel measures angles in radians, so convert degrees with RADIANS first.


Quick answer:
=SEC(0) secant of 0 = 1

Syntax

=SEC(number)
ArgumentDescription
numberRequiredThe angle in radians whose secant you want. Convert degrees with RADIANS(deg) or deg*PI()/180.

How to use it

SEC is simply 1/COS(number), introduced in Excel 2013 as a shorthand. Excel expects radians, so wrap any degree value in RADIANS():

=SEC(0) // = 1
=SEC(RADIANS(60)) // 60 deg = 2
=SEC(PI()/3) // pi/3 radians = 2

Because secant is the reciprocal of cosine, =SEC(x) gives exactly the same result as =1/COS(x) — handy if you're working in an older version without SEC.

Undefined where cosine is zero. At 90° the cosine is zero, so secant is undefined and =SEC(RADIANS(90)) returns a very large finite number from floating-point rounding rather than a clean value.

Try it: interactive demo

Live demo

Pick a SEC example to see the formula and its result.

Result:

Practice workbook

📊
Download the free SEC practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What is the secant of an angle?
Secant is the reciprocal of cosine: SEC(x) = 1/COS(x). So if the cosine of an angle is 0.5, its secant is 2.
Which Excel versions have SEC?
SEC was added in Excel 2013. In Excel 2010 and earlier, use =1/COS(x) instead.
Does SEC take degrees or radians?
Radians, just like COS. Convert degrees first with RADIANS(deg), for example =SEC(RADIANS(60)).
Why does SEC sometimes return a huge number?
When cosine is zero (at 90°, 270°, etc.) secant is undefined. Floating-point rounding makes Excel return a very large finite number instead of an error.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: COS · CSC · COT · SIN · RADIANS · PI