ATANH returns the inverse hyperbolic tangent of a number, which is the value whose hyperbolic tangent equals the given number. It is the inverse of the TANH function and accepts numbers strictly between -1 and 1.
=ATANH(number)What does ATANH do?
The ATANH function in Excel calculates the inverse hyperbolic tangent of a number. In simple terms, if you know the hyperbolic tangent of an angle, ATANH gives you back that angle. It is the mathematical inverse of the TANH function, so =ATANH(TANH(x)) returns x for any valid x. The function belongs to Excel's Math & Trigonometry category and is available in all modern versions of Excel.
You might wonder why an office worker or student would need hyperbolic functions. They appear in fields like engineering, physics, statistics, and finance—anywhere exponential growth or decay is modelled. For example, the hyperbolic tangent is often used to model learning curves, saturation effects, or signal processing. When you have a ratio that represents a hyperbolic tangent value, ATANH lets you recover the original quantity, such as a growth rate or a transformed score.
A practical situation: you have survey data where responses were transformed using the Fisher z-transformation, which is based on the inverse hyperbolic tangent. To convert the z-scores back to correlation coefficients, you use the hyperbolic tangent. Conversely, if you need to apply the transformation, you use ATANH. This makes ATANH useful for statisticians and analysts working with correlation data. The function is straightforward: you provide a number between -1 and 1, and it returns the corresponding inverse hyperbolic tangent.
When to use ATANH
- Converting Fisher z-scores back to correlation coefficients in statistical analysis.
- Modelling growth or decay processes where the rate is expressed as a hyperbolic tangent.
- Solving engineering problems involving catenary curves or hyperbolic geometry.
- Transforming data for normality in preparation for machine learning models.
- Calculating the rapidity in special relativity when given a velocity ratio.
- Working with financial models that use hyperbolic functions for option pricing.
ATANH syntax
=ATANH(number)| Argument | Required? | What to enter |
|---|---|---|
number | Required | The value for which you want the inverse hyperbolic tangent. Must be a number strictly between -1 and 1 (exclusive). You can enter a number, a cell reference, or a formula that returns a number in that range. Example: =ATANH(0.5) returns approximately 0.5493. |
What it returns: ATANH returns a numeric value representing the inverse hyperbolic tangent of the input number. The result is in radians and can be any real number. For input 0, it returns 0.
ATANH examples
1 Basic inverse hyperbolic tangent of a single value
This example shows the simplest use of ATANH. The goal is to find the inverse hyperbolic tangent of 0.5. The formula =ATANH(B2) refers to the value in cell B2, which is 0.5. ATANH calculates the value whose hyperbolic tangent is 0.5, returning approximately 0.549306. This is useful as a quick check or when you have a single value to convert.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Value | Number | |||
| 2 | Input | 0.5 | 0.5493061443 | ||
| 3 |
2 Inverse hyperbolic tangent of a negative value
ATANH also works with negative numbers between -1 and 1. Here the input is -0.3 in cell B2. The formula =ATANH(B2) returns approximately -0.30952. This demonstrates that ATANH is an odd function: ATANH(-x) = -ATANH(x). You can use this property to verify results or simplify calculations.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Value | Number | |||
| 2 | Input | -0.3 | -0.3095196042 | ||
| 3 |
3 Calculating rapidity from velocity ratio in special relativity
In special relativity, rapidity φ is related to velocity v by the equation φ = ATANH(v/c), where c is the speed of light. Here we have a velocity ratio v/c of 0.6 in cell B2. The formula =ATANH(B2) returns the rapidity in natural units, approximately 0.693147. This shows how ATANH can be used in physics calculations within Excel.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Parameter | Value | |||
| 2 | v/c | 0.6 | 0.6931471806 | ||
| 3 |
4 Transforming a proportion for a growth model
Suppose you have a proportion (between 0 and 1) representing market penetration, and you want to model it using a logistic growth curve. The logit transformation, log(p/(1-p)), is related to ATANH: logit(p) = 2 * ATANH(2p - 1). In this example, the proportion is 0.75 in cell B2. First compute 2p - 1 = 0.5, then ATANH(0.5) ≈ 0.549306, and multiply by 2 to get the logit ≈ 1.098612. The formula =2*ATANH(2*B2-1) returns this value. This is useful for preparing data for logistic regression.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Metric | Value | |||
| 2 | Proportion | 0.75 | 1.098612289 | ||
| 3 |
Common ATANH errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NUM! | The number argument is less than or equal to -1 or greater than or equal to 1. ATANH is only defined for numbers strictly between -1 and 1. | Ensure the input is between -1 and 1 exclusive. If your data can equal -1 or 1, adjust it slightly (e.g., use 0.999999) or use a different transformation. |
| #VALUE! | The argument is not a number, such as text or a blank cell that is interpreted as text. | Check that the cell contains a numeric value. Use ISNUMBER to verify, or convert text to numbers. |
| #DIV/0! | This error does not occur directly from ATANH, but may appear if the input is a formula that divides by zero. | Inspect the input formula for division by zero and correct it. |
| #NAME? | The function name is misspelled, or the Analysis ToolPak is not enabled in very old Excel versions (pre-2007). | Check the spelling: ATANH. In Excel 2007 and later, it is built-in. For older versions, enable the Analysis ToolPak. |
Tips for using ATANH
- Remember that ATANH is the inverse of TANH, so
=ATANH(TANH(x))returns x for any real x. - Use ATANH to convert a correlation coefficient to a Fisher z-score for confidence interval calculations.
- If you need the result in degrees, multiply by 180/PI(), but note that ATANH returns radians.
- Combine ATANH with other functions like EXP or LN to derive related hyperbolic identities.
- When working with proportions, the logit transformation can be expressed as
=2*ATANH(2*p-1). - Always ensure inputs are strictly between -1 and 1 to avoid #NUM! errors.
Frequently asked questions
What is the difference between ATANH and ATAN?
ATANH calculates the inverse hyperbolic tangent, while ATAN calculates the inverse trigonometric (circular) tangent. They are different functions with different domains and outputs. ATANH accepts numbers between -1 and 1, whereas ATAN accepts any real number.
Can ATANH return a result in degrees?
No, ATANH returns a value in radians. To convert to degrees, multiply the result by 180/PI(). However, the concept of degrees is not typically used for hyperbolic functions.
Why do I get #NUM! with ATANH?
You get #NUM! when the input is -1, 1, or outside the range (-1, 1). ATANH is only defined for numbers strictly between -1 and 1. Check your input and adjust it if necessary.
Is ATANH available in Excel for Mac?
Yes, ATANH is available in Excel for Mac and Excel Online, as well as Excel for Windows.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. ATANH reference