What the Hyperbolic Tangent Calculator Does
This calculator takes a single number, x, and instantly returns its hyperbolic tangent, tanh(x). To give you the full picture, it also computes the two related hyperbolic functions — sinh(x) (hyperbolic sine) and cosh(x) (hyperbolic cosine) — along with the underlying exponential building blocks ex and e−x. That makes it handy for checking homework, verifying results in calculus and trigonometry, or working through physics and engineering problems involving catenaries, special relativity, and neural network activation functions.
How to Use It
- Number (x): Enter any real number — positive, negative, a decimal, or zero.
- The tool returns tanh(x), sinh(x) and cosh(x), plus ex and e−x so you can see how each value is constructed.
x is measured as a plain dimensionless number, not an angle in degrees, so there is no need to switch units.
The Formula Explained
All three functions are defined directly from exponentials:
- sinh(x) = (ex − e−x) / 2
- cosh(x) = (ex + e−x) / 2
- tanh(x) = sinh(x) / cosh(x) = (ex − e−x) / (ex + e−x)
The calculator evaluates these exactly as your computer's math library does (Math.tanh, Math.sinh, Math.cosh). The output of tanh always lies strictly between −1 and 1, approaching those limits as x grows large in either direction.
Worked Example
Suppose you enter x = 1. The calculator first finds the exponentials:
- e1 ≈ 2.71828
- e−1 ≈ 0.36788
Then:
- sinh(1) = (2.71828 − 0.36788) / 2 ≈ 1.17520
- cosh(1) = (2.71828 + 0.36788) / 2 ≈ 1.54308
- tanh(1) = 1.17520 / 1.54308 ≈ 0.76159
Reference Table of tanh, sinh and cosh Values
The three basic hyperbolic functions are defined from the exponential function for any real argument \(x\):
$$\sinh(x)=\frac{e^{x}-e^{-x}}{2},\qquad \cosh(x)=\frac{e^{x}+e^{-x}}{2},\qquad \tanh(x)=\frac{\sinh(x)}{\cosh(x)}$$The table below lists values rounded to six decimal places. These are pure mathematical constants — they do not depend on any country, unit system or standard.
| x | sinh(x) | cosh(x) | tanh(x) |
|---|---|---|---|
| 0 | 0.000000 | 1.000000 | 0.000000 |
| 0.25 | 0.252612 | 1.031413 | 0.244919 |
| −0.25 | −0.252612 | 1.031413 | −0.244919 |
| 0.5 | 0.521095 | 1.127626 | 0.462117 |
| −0.5 | −0.521095 | 1.127626 | −0.462117 |
| 1 | 1.175201 | 1.543081 | 0.761594 |
| −1 | −1.175201 | 1.543081 | −0.761594 |
| 1.5 | 2.129279 | 2.352410 | 0.905148 |
| −1.5 | −2.129279 | 2.352410 | −0.905148 |
| 2 | 3.626860 | 3.762196 | 0.964028 |
| −2 | −3.626860 | 3.762196 | −0.964028 |
| 3 | 10.017875 | 10.067662 | 0.995055 |
| −3 | −10.017875 | 10.067662 | −0.995055 |
| 5 | 74.203211 | 74.209949 | 0.999909 |
| −5 | −74.203211 | 74.209949 | −0.999909 |
| 10 | 11013.232875 | 11013.232920 | 1.000000 |
| −10 | −11013.232875 | 11013.232920 | −1.000000 |
Symmetry: which functions are odd, which is even
Reading the ± pairs down the table shows the symmetry directly. \(\sinh\) and \(\tanh\) are odd functions, while \(\cosh\) is even:
$$\sinh(-x)=-\sinh(x),\qquad \tanh(-x)=-\tanh(x),\qquad \cosh(-x)=+\cosh(x)$$So a negative input flips the sign of sinh and tanh but leaves cosh unchanged — for example \(\sinh(-1.5)=-2.129279\) while \(\cosh(-1.5)=\cosh(1.5)=2.352410\). This also means you only ever need a table of positive arguments.
Saturation of tanh
Unlike \(\sinh\) and \(\cosh\), which grow without bound roughly like \(e^{x}/2\), the tangent is squeezed between the horizontal asymptotes \(y=-1\) and \(y=+1\). The approach is exponentially fast:
- \(\tanh(3)\approx 0.99505\) — already within 0.5 % of 1
- \(\tanh(5)\approx 0.99991\) — within 0.01 % of 1
- \(\tanh(10)\approx 1.000000\) — it differs from 1 by only about \(4.1\times10^{-9}\), so most calculators and double-precision software display 1.0 once \(|x|\) exceeds roughly 20
The gap closes like \(1-\tanh(x)\approx 2e^{-2x}\), which is why each extra unit of \(x\) cuts the remaining distance to 1 by a factor of about \(e^{2}\approx 7.39\). This saturation is exactly the property that makes tanh useful as a bounded response or activation curve.
Frequently Asked Questions
Is x an angle? No. Unlike ordinary trig functions, hyperbolic functions take a plain real number, not degrees or radians.
What is the range of tanh(x)? It is always between −1 and 1. It equals 0 at x = 0 and flattens toward ±1 for large |x|.
How are tanh, sinh and cosh related? tanh(x) = sinh(x) ÷ cosh(x). Also, cosh²(x) − sinh²(x) = 1, the hyperbolic identity that mirrors the Pythagorean one.