Summary

The Excel TANH function returns the hyperbolic tangent of a number.

Purpose 

Get hyperbolic tangent of a number.

Return value 

The hyperbolic tangent of the number.

Syntax

=TANH(number)
  • number - The input number.

How to use 

The TANH function returns a number's hyperbolic tangent. Given input -2, the function returns the number -0.96402758 as output.

=TANH(-2) // returns -0.96402758

Explanation

Just like the circular tangent, the hyperbolic tangent is defined in terms of the hyperbolic sine and hyperbolic cosine.

=SINH(a)/COSH(a) // definition of TANH(a)

Geometrically, the hyperbolic tangent of a number can be interpreted as the slope of the line from the origin to the point on the unit hyperbola corresponding to the number's hyperbolic angle where the hyperbolic angle is half the area under the hyperbola between the origin and that point.

Hyperbolic tangent geometry.

For example, given the input of -1 the function returns -0.761594156.

=TANH(-1) // returns the slope of -0.761594156

This value can be interpreted as the slope of the line from the origin to the point corresponding to the hyperbolic angle of -1.

Hyperbolic tangent geometry example input.

Plot of TANH

The plot of the hyperbolic tangent is shown below and visualizes the range of possible output of the function.

Plot of the hyperbolic tangent function.

Images courtesy of wumbo.net.

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.