Excel SEC Function: Syntax, Examples & Tips

The SEC function calculates the secant of an angle in radians, useful for precise trigonometric analysis and applications in Excel.
Excel
=SEC(angle)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single SEC formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a SEC Formula in Excel?
  3. A Practical Example
  4. SEC Formula
  5. Result of the Formula
  6. Why Use SEC?
  7. Key Takeaways:
  8. Example use case

Parameters

angle:
The angle in radians for which you want to calculate the secant. This can be a number, a cell reference, or a formula that returns a numeric value representing the angle in radians.

What is a SEC Formula in Excel?

The SEC function in Excel is a mathematical function that calculates the secant of an angle provided in radians. The secant is defined as the reciprocal of the cosine function, which means that SEC(x) = 1/cos(x). This function is particularly useful in trigonometry and can be applied in various fields such as engineering, physics, and computer graphics.

In simpler terms, the SEC function helps you find the secant of an angle, making it easier to perform calculations involving trigonometric functions.

A Practical Example

Imagine you are working on a project that involves calculating the angles of a triangle, and you need to find the secant of a specific angle in your calculations.

Angle Data Table:

Angle (Degrees)Angle (Radians)SEC Value
300.5236
450.7854
601.0472

You want to find the secant values for the angles provided in radians.

SEC Formula

To calculate the secant for the angle of 30 degrees, you would use the SEC formula as follows:

Excel
=SEC(B2)

Breakdown of the Formula:

  • B2: This is the cell that contains the angle in radians for which you want to calculate the secant.

Result of the Formula

When you apply the formula for the angle of 30 degrees, the output would be:

SEC Value for 30 Degrees
2.0000

Here, the secant of 30 degrees (or 0.5236 radians) is calculated as 1/cos(30°) = 2.

Why Use SEC?

The SEC function is particularly useful when you need to perform trigonometric calculations involving angles in your data analysis or engineering projects. It allows you to easily compute secant values without needing to manually calculate the cosine and its reciprocal.

Key Takeaways:

  • SEC: Calculates the secant of an angle in radians.
  • Trigonometric Calculations: Helps in performing calculations involving angles efficiently.
  • Common Use Cases: Ideal for engineering, physics, and any scenario where trigonometric functions are needed.

Understanding how to use the SEC function can significantly enhance your mathematical capabilities in Excel, enabling you to perform complex calculations with ease.

Happy calculating!

Example use case

You have a table where Column A contains angles in degrees, and you want to calculate the secant of each angle in Column B. You can use the SEC function to find the secant values for each angle, which helps in various trigonometric calculations and analyses, such as in physics or engineering applications, without needing to manually convert angles or use more complex calculations.

Beyond the SEC function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.