Tanh Calculator
This tanh calculator is the ultimate tool you need to deal with the hyperbolic tangent function! In what follows, we will explain what tanh is in math and how to calculate both the inverse and the derivative of tanh. We won't forget to give you extra tips on how to use this hyperbolic tangent calculator most efficiently. Let's go!
What is tanh in math?
We define tanh (that is, the hyperbolic tangent function) as follows:
Okay, just some exponents and division, no big deal. It may not, however, be obvious at all why this function is called hyperbolic tangent. What does it have to do with tangents and hyperbolas?
Well, it's a slightly longer story. First, there exist functions called hyperbolic sine and hyperbolic cosine. Their definitions read:
They are called hyperbolic because the points (coshxcoshx, sinhxsinhx) trace a (part of a) hyperbola in the standard Cartesian coordinate system.
And just as the normal tangent function is the ratio of sine to cosine, also the hyperbolic tangent is the ratio of hyperbolic sine to hyperbolic cosine:
Hyperbolic cotangent function
Also, just as the standard cotangent function is the multiplicative inverse of tangent, there is a function called hyperbolic cotangent defined, unsurprisingly, as follows:
if x=0x=0.
Graph of hyperbolic tangent
Let's take a look at the plot of tanh:

From the graph of the hyperbolic tangent function, we can deduce that:
- tanh is an odd function, i.e., tanh(−x)=−tanh(x)tanh(−x)=−tanh(x);
- tanh is increasing;
- tanh(0)=0tanh(0)=0;
- tanh is bounded: its values sit between −1−1 and 11; and
- tanh is a bijection, so it has an inverse.
The inverse function of tanh is called arc hyperbolic tangent. Let's discuss how to compute its values.
How do I compute the arc hyperbolic tangent?
To compute the value of arc hyperbolic tangent at x, follow these steps:
- Verify your
xis a value between-1and1. If it is not, you cannot compute tanh inv for thisx! - Compute
1 + xand1 - x. - Perform the division
(1 + x)/(1 - x). - Find the natural logarithm of the result.
- Divide by
2. That's it!
To summarize, the formula for the arc hyperbolic tangent function reads:
How to use this tanh calculator?
To use our hyperbolic tangent calculator, you only need to fill in the field x, and the value of tanh(x) will appear immediately. It couldn't be any easier, really.
If you want to find the inverse of tanh, that is, the arc hyperbolic tangent, you need to use the calc in reverse. That is, fill in the field tanh(x), and the value in x is exactly the value of artanh(x). Be careful! As we've explained above, the valid values of the inverse of tanh are the numbers between -1 and 1!
💡 Do you need other hyperbolic functions as well? Expand the section "Other hyperbolic functions" and they will appear :)
Satisfied with the tanh calculator? Eager to learn more? features a mini-collection of tools dedicated to hyperbolic functions:
FAQs
- How do I compute the arc hyperbolic tangent?
- To compute the value of arc hyperbolic tangent at x, follow these steps: Verify your x is a value between -1 and 1. If it is not, you cannot compute tanh inv for this x! Compute 1 + x and 1 - x. Perform the division (1 + x)/(1 - x). Find the natural logarithm of the result. Divide by 2. That's it!
- What is the derivative of tanh?
- The derivative of the hyperbolic tangent is the square of the sech function. In fact, we have the following relationships: tanh'(x) = 1 - tanh2(x) = 1/cosh2(x) = sech2(x).
- How do I get tanh in a calculator?
- To compute tanh(x) with a basic calculator: Make sure your calculator can perform exponentiation. Compute exp(x). Store the result at every step - use the memory of your calculator or just a piece of paper. Compute exp(-x). Compute (exp(x) - exp(-x)) / (exp(x) + exp(-x)). That's it! You can use an online tanh calculator to verify your result.
- What is the value of tanh 0?
- The answer is 0. You can read this value from the graph of tanh x as well as conclude it from the fact that tanh is an odd function, i.e., it satisfies tanh(-x) = -tanh(x). Plugging in x = 0, we get tanh(0) = -tanh(0), which immediately gives tanh(0) = 0, as claimed.
- Is tanh the same as arctan?
- No, cosh stands for the hyperbolic cosine function, which is different from (yet related to, in some sense) the standard cosine function (cos). The notation cos-1 is a bit ambiguous and may denote, depending on the context, the inverse cosine function (arccos(x)) or the multiplicative inverse (1/cos(x)). Neither of them, however, is the same as cosh!
Related calculators
Remainder
Use the remainder calculator to find the quotient and remainder of division.
Math
Slope
Calculate the slope of a line from two given points using the slope calculator. Discover the slope formula and learn how to find a slope with two points.
Math
Average
Calculate the average (mean) with our user-friendly tool. Discover how to find averages or perform quick calculations effortlessly.
Math
Circumference
Use this free circumference calculator to find the area, circumference and diameter of a circle.
Math