Home · Everyday · Trigonometry · Tanh Calculator

Tanh Calculator

The hyperbolic tangent tanh(x) = sinh/cosh — bounded between −1 and 1, the sigmoid's close relative.

Your figures

Example result — edit the figures to make it yours

0.7616

tanh(x)

Hyperbolic functions are built from the exponential: sinh x = (eˣ − e⁻ˣ)/2, cosh x = (eˣ + e⁻ˣ)/2, tanh = sinh/cosh. They satisfy cosh² − sinh² = 1, the hyperbolic mirror of the Pythagorean identity.

sinh(x)1.1752
cosh(x)1.5431
tanh(x)0.7616
cosh² − sinh²1

What this calculator does

The hyperbolic tangent tanh(x) = sinh/cosh — bounded between −1 and 1, the sigmoid's close relative. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

tanh x = (eˣ − e⁻ˣ) / (eˣ + e⁻ˣ)

Angles are in degrees by default; switch the unit toggle for radians, gradians or turns.

Reciprocal functions are csc = 1/sin, sec = 1/cos, cot = 1/tan.

Inverse functions return the principal value: asin in [−90°, 90°], acos in [0°, 180°], atan in (−90°, 90°).

Worked example

With the example inputs this page opens with (x 1), the result is 0.7616 — tanh(x). Hyperbolic functions are built from the exponential: sinh x = (eˣ − e⁻ˣ)/2, cosh x = (eˣ + e⁻ˣ)/2, tanh = sinh/cosh. They satisfy cosh² − sinh² = 1, the hyperbolic mirror of the Pythagorean identity.

Quick reference

Quick reference — varying x
xtanh(x)
0.50.4621
0.80.664
10.7616
1.250.8483
1.50.9051
20.964

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Tanh Calculator work?

The hyperbolic tangent tanh(x) = sinh/cosh — bounded between −1 and 1, the sigmoid's close relative. X → tanh(x). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Tanh Calculator need?

X → tanh(x). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Tanh Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.