Wauvel

Excel like a finance pro.

← The library

Math function

TANH

Returns the hyperbolic tangent of a number.

Rarely usedDifficulty 1300 · ProficientUsage rank #312 of 520
Practice · 2 questions →

When to use it

Hyperbolic tangent: SINH/COSH. An S-shaped curve from -1 to 1, used as a smooth clamp and as an activation function.

The shape of it

Syntax
=TANH(number)

Worked examples

  • Zero

    =TANH(0) 0

    Zero.

  • One

    =TANH(1) 0.761594156

    One.

  • Negative

    =TANH(-0.5) -0.462117157

    Odd function.

Worth knowing

  • Smoothly squash any score into -1 to 1: TANH(score/scale).
  • ATANH inverts it.
  • TANH(x) = (EXP(2x)-1)/(EXP(2x)+1).

Where it goes wrong

  • Saturates: inputs beyond about 20 all return 1 exactly.
  • Not an angle function.

Related

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.