SEC Function
Returns the secant of an angle given in radians.
Category
Math & Trig
Available in
Excel 2013+, Microsoft 365
Returns
A number
Want to practice SEC in a real spreadsheet? Open a blank sheet in our Practice Sandbox and try it with live data, with the AI Excel tutor beside you. No Excel needed — just a free account.Try it free in the Sandbox
Overview
SEC is 1 ÷ COS — the hypotenuse divided by the adjacent side.
Excel's trig functions work in radians. Convert degrees with RADIANS, or multiply by PI()/180.
Syntax
=SEC(number) Explain
Arguments
| Argument | Required? | What it does |
|---|---|---|
| number | Yes | The angle in radians. |
Examples
Example 1 — Secant of angles
Angles in degrees, converted inside the formula.
B2fx=SEC(RADIANS(A2))
| A | B | |
|---|---|---|
| 1 | Degrees | sec |
| 2 | 0 | 1 |
| 3 | 60 | 2 |
| 4 | 45 | 1.4142 |
=SEC(RADIANS(A2)) Explain
Common mistakes
- 90 degrees. The secant of 90° is undefined; Excel returns a very large number.
Notes

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.