The SECH function returns the hyperbolic secant of a given number, calculated as 1 divided by the hyperbolic cosine. It is useful in mathematics, engineering, and statistics for modelling exponential decay and wave forms.
=SECH(number)What does SECH do?
The SECH function in Excel calculates the hyperbolic secant of a number. In mathematical terms, the hyperbolic secant of x is equal to 1 divided by the hyperbolic cosine of x, written as sech(x) = 1 / cosh(x). This function belongs to Excel's Math & Trigonometry category and is available in Excel 2013 and later versions.
While hyperbolic functions may sound advanced, they appear in many practical fields. Engineers use them to describe the shape of hanging cables and waves, statisticians use them in probability distributions, and analysts use them for smoothing data and modelling exponential decay. Knowing how to use SECH can simplify complex calculations that would otherwise require manual formulas.
Imagine you are analysing signal strength over time and need to apply a mathematical model that uses the hyperbolic secant. Instead of typing a long formula with COSH, you can simply use =SECH(number) to get accurate results quickly. This guide will walk you through the syntax, provide worked examples, and help you avoid common mistakes.
When to use SECH
- Calculating the shape of a hanging chain or cable (catenary curve) in engineering.
- Modelling signal attenuation or wave forms in physics and electronics.
- Computing probability density in certain statistical distributions.
- Smoothing data series in financial or scientific analysis.
- Solving differential equations that involve hyperbolic functions.
- Teaching or learning calculus and advanced mathematics in Excel.
SECH syntax
=SECH(number)| Argument | Required? | What to enter |
|---|---|---|
number | Required | The angle in radians for which you want the hyperbolic secant. It can be a number, a cell reference, or a formula that returns a number. For example, =SECH(1) returns the hyperbolic secant of 1 radian. |
What it returns: The hyperbolic secant of the given number as a decimal value. The result is always positive and approaches zero as the input grows large in either direction.
SECH examples
1 Basic Hyperbolic Secant of a Number
This example shows the simplest use of SECH with a single number. The formula =SECH(B2) calculates the hyperbolic secant of the value in cell B2, which is 1. The result is approximately 0.648054. This demonstrates how SECH works on a plain number.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Input | Value | |||
| 2 | x | 1 | 0.6480542737 | ||
| 3 |
2 Hyperbolic Secant for Multiple Values
Here we apply SECH to a small list of numbers to see how the function behaves. Each formula references a different cell in column B. The results show that as the input increases, the hyperbolic secant decreases toward zero. This helps illustrate the function's range.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Index | Number | |||
| 2 | 1 | 0 | 1 | ||
| 3 | 2 | 0.5 | |||
| 4 | 3 | 1 | |||
| 5 | 4 | 1.5 | |||
| 6 | 5 | 2 | |||
| 7 |
3 Using SECH with Negative Numbers
SECH is an even function, meaning SECH(-x) = SECH(x). This example uses negative inputs to confirm that the result is the same as for positive inputs. The formula =SECH(B2) with B2 = -1 returns the same value as SECH(1). This is useful when working with symmetric data.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Label | Value | |||
| 2 | Negative | -1 | 0.6480542737 | ||
| 3 | Negative | -0.5 | |||
| 4 | Negative | -2 | |||
| 5 |
4 SECH in a Realistic Business Scenario: Signal Decay
Suppose you are analysing signal strength over distance. The hyperbolic secant can model how the signal decays. Column B contains distance in metres, and you want to compute a decay factor using SECH. The formula =SECH(B2/10) scales the distance for a smoother curve. The result in D2 is the decay factor for the first distance.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Distance (m) | Distance | |||
| 2 | 10 | 10 | 0.6480542737 | ||
| 3 | 20 | 20 | |||
| 4 | 30 | 30 | |||
| 5 | 40 | 40 | |||
| 6 | 50 | 50 | |||
| 7 |
5 Combining SECH with Other Functions
You can nest SECH inside other functions for more complex calculations. Here we multiply the hyperbolic secant by a scaling factor from column C. The formula =SECH(B2)*C2 gives a weighted decay value. This shows how SECH can be part of a larger formula.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | ID | Input | Factor | ||
| 2 | A | 1 | 100 | 64.80542737 | |
| 3 | B | 2 | 200 | ||
| 4 | C | 3 | 300 | ||
| 5 |
Common SECH errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #VALUE! | The argument is not a number, such as text or a blank cell that is interpreted as text. | Ensure the argument is a numeric value or a reference to a cell containing a number. Use ISNUMBER to check. |
| #NAME? | The function name is misspelled, or the Analysis ToolPak is not enabled in older Excel versions. | Check the spelling of SECH. In Excel 2007 and earlier, enable the Analysis ToolPak add-in. |
| #NUM! | The argument is extremely large, causing the result to underflow to zero, but Excel may return #NUM! in some cases. | Use a smaller number. SECH approaches zero for large inputs, but Excel may not handle very large numbers. |
Tips for using SECH
- Remember that SECH takes angles in radians, not degrees. To convert degrees to radians, multiply by PI()/180.
- SECH is always positive, so you never get a negative result.
- Use cell references instead of hard-coded numbers to make your formulas dynamic.
- Combine SECH with other functions like EXP or COSH for advanced modelling.
- If you need the inverse hyperbolic secant, use the ASECH function (available in Excel 2013 and later).
Frequently asked questions
What is the difference between SECH and COSH?
COSH returns the hyperbolic cosine of a number, while SECH returns the reciprocal of COSH, i.e., 1/COSH(number).
Can SECH return a negative value?
No, the hyperbolic secant is always positive for real numbers.
Is SECH available in all Excel versions?
SECH was introduced in Excel 2013. For earlier versions, you can use 1/COSH(number) as a workaround.
How do I calculate the hyperbolic secant of an angle in degrees?
Convert degrees to radians first using RADIANS(degrees) or degrees*PI()/180, then apply SECH.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. SECH reference