Tanh calculator

Type x. The result is tanh(x). 0 gives 0. 1 gives 0.761594. 2 gives 0.964028.

One field. This is not tangent of an angle. tanh stays between −1 and 1. A fraction through six decimal places. Empty leaves a blank.

Input data

Results

Enter data and click Calculate.

How it works

Hyperbolic tangent is tanh(x), not tan of an angle. The calculator computes tanh, and if that were missing, (eˣ−e⁻ˣ)/(eˣ+e⁻ˣ). x = 0 gives 0. x = 1 gives 0.761594. x = 2 gives 0.964028.

The result never leaves (−1, 1). Large x goes toward 1, a large minus toward −1. The function is odd: tanh(−1) is −0.761594.

An empty field is a blank value and a blank. sinh and cosh of that x live next door. We do not overwrite the gold tangent-of-an-angle card.

The header units switch does not multiply anything. 0 stays 0 whatever the label says.

0 is an integer, so the string 0. 0.761594 is six decimal places.

x = 0 gives 0. x = 1 gives 0.761594. x = 2 gives 0.964028.

Formula

tanh(x) = Math.tanh(x), fallback (eˣ − e⁻ˣ)/(eˣ + e⁻ˣ)

How to use

  1. Type x, for example 0.
  2. Click Calculate. tanh(0) comes out 0.
  3. 1 gives 0.761594. 2 gives 0.964028.
  4. This is not tangent of an angle in degrees.
  5. sinh and cosh of that x live on the neighbouring cards.

x = 0 gives 0

tanh(x) is the hyperbolic tangent. 0 gives 0. 1 gives 0.761594. 2 gives 0.964028.

Hyperbolic
tanh, not tan of an angle. tanh(0) = 0. tanh(1) = 0.761594.
tangent
Here hyperbolic. 2 gives 0.964028. The result stays in (−1, 1).
tanh
tanh(x). Fallback (eˣ−e⁻ˣ)/(eˣ+e⁻ˣ). A fraction through six decimal places.

Examples

Example 1

  • x = 0

0

What is tanh(0)? The result is 0, because tanh(0) = 0.

Example 2

  • x = 1

0.761594

What is tanh(1)? 0.761594. six decimal places.

Example 3

  • x = 2

0.964028

What is tanh(2)? 0.964028. Toward 1, still below 1.

Related calculators

Common questions

What is tanh(0)?

The result is 0, because tanh(0) = 0.

What does hyperbolic tangent mean?

tanh(x). Not tan of an angle. Result inside (−1, 1).

What is tanh(1)?

0.761594. six decimal places from tanh.

What is tanh(2)?

0.964028. Close to 1, still below.

Is tanh(−1) a minus?

Yes. −0.761594. An odd function.

What if the field is empty?

a blank value. The result stays blank.

Is this tan 0°?

No. Tangent of an angle is on the tangent page. Here tanh.

Can the result be larger than 1?

No. tanh stays in (−1, 1).

Where are sinh and cosh?

On the neighbouring hyperbolic pages. Here one number and tanh.

Does a comma in 0.5 work?

Yes. 0.5 and 0,5 are the same x.

Knowledge sources

The calculator computes the same formula as the definition below.

Page updated in 2026.