SECH function
Returns the hyperbolic secant of a number (1 ÷ COSH), a bell-shaped curve with peak 1 at zero.
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
SECH(number)| Argument | What it means | |
|---|---|---|
number | Required | Any number; |number| must be less than 2^27. |
Returns: A value greater than 0 and at most 1.
How SECH works
SECH is the reciprocal of COSH. Its graph is a smooth bell, 1 at x = 0 and falling towards 0 on both sides, similar to the normal curve but with heavier tails. It describes the shape of optical solitons (light pulses in fibre), solitary water waves and some probability distributions; the squared form sech²(x) is the derivative of TANH.
SECH never returns an error for numeric inputs within range and is symmetrical: SECH(−x) = SECH(x). Before Excel 2013 use 1/COSH(x).
Examples
1Relative intensity of a light pulse
| A | B | |
|---|---|---|
| 1 | Input | Value |
| 2 | Distance from pulse centre (widths) | 1 |
| 3 | 0.4200 |
Result: 0.4200
A soliton's intensity follows sech²: one width from the centre it is about 0.4200 of the peak (4 decimals).
2Peak value
| A | |
|---|---|
| 1 | 1 |
Result: 1
cosh(0) = 1, so the curve peaks at 1.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | |number| ≥ 2^27. | Reduce the input. |
Tips
- sech²(x) = 1 − tanh²(x).
Google Sheets
SECH also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
SECH 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.