Math.acosh()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
TheMath.acosh() static method returns the inverse hyperbolic cosine of a number. That is,
In this article
Try it
console.log(Math.acosh(0.999999999999));// Expected output: NaNconsole.log(Math.acosh(1));// Expected output: 0console.log(Math.acosh(2));// Expected output: 1.3169578969248166console.log(Math.acosh(2.5));// Expected output: 1.566799236972411Syntax
js
Math.acosh(x)Parameters
xA number greater than or equal to 1.
Return value
The inverse hyperbolic cosine ofx. Ifx is less than 1, returnsNaN.
Description
Becauseacosh() is a static method ofMath, you always use it asMath.acosh(), rather than as a method of aMath object you created (Math is no constructor).
Examples
>Using Math.acosh()
js
Math.acosh(0); // NaNMath.acosh(1); // 0Math.acosh(2); // 1.3169578969248166Math.acosh(Infinity); // InfinitySpecifications
| Specification |
|---|
| ECMAScript® 2026 Language Specification> # sec-math.acosh> |