Hyperbolic Tangent Calculator
Enter any real number to instantly compute its hyperbolic tangent (tanh) and inverse hyperbolic tangent (arctanh).
Use the Hyperbolic Tangent Calculator
Calculate tanh(x)
Input as:
Batch Input
Enter a value on the left and click Calculate.
Copied!
Summary
The hyperbolic tangent function tanh(x) maps any real number to the open interval (−1, 1) using the formula (e^x − e^−x) / (e^x + e^−x). It appears in neural networks as an activation function, in physics for describing relativistic velocities, and in engineering for modeling wave propagation. This calculator also computes the inverse function arctanh(x) — valid only when |x| < 1 — which reverses tanh to recover the original input.
How it works
- Enter any real number in the input field.
- The calculator evaluates tanh(x) = (e^x − e^−x) / (e^x + e^−x) instantly.
- If your input is in the range (−1, 1), the inverse arctanh(x) = 0.5 × ln((1+x)/(1−x)) is also shown.
- Results are displayed to 10 significant figures with a radians/degrees angle toggle.
- Use the batch section to compute tanh for a comma-separated list of values at once.
Use cases
- Verifying tanh activation function values when debugging neural networks.
- Computing relativistic velocity additions in special relativity (tanh of rapidity).
- Solving hyperbolic geometry problems in mathematics courses.
- Checking arctanh results when fitting sigmoid curves to data.
- Teaching hyperbolic functions interactively with instant feedback.
- Engineering signal analysis involving hyperbolic wave models.
Frequently Asked Questions
Last updated: 2026-05-29 · Reviewed by Nham Vu