JavaScript Math.asinh() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
Math

Definition

Math.asinh(x) returns the inverse hyperbolic sine of a number. It is the reverse of Math.sinh(). Unlike asin(), it accepts any number.

Math is built into JavaScript. Call the method directly. It is not a constructor, so never write new Math().

Syntax

Call Math.asinh() like this. Start with this line.

JavaScript
Math.asinh(x)
CallWhat it does
Math.asinh(x)Returns the inverse hyperbolic sine of x.

Built into JavaScript. Call Math.asinh() on the Math object — no import required.

Library declarations
JavaScript
Math.asinh(x)
JavaScript
interface Math {
  asinh(x: number): number;
}

Parameters

ParameterDescription
xRequired. A number. Other values are converted to a number first.

Return Value

Return ValueDescription
numberThe inverse hyperbolic sine of x. Returns NaN if x cannot be turned into a number.

JavaScript Examples

Example 1 — Basic Use

Any number is allowed.

JavaScript
console.log(Math.asinh(0));     // 0
console.log(Math.asinh(1));     // 0.881373587019543
console.log(Math.asinh(-1));    // -0.881373587019543
console.log(Math.asinh(100));   // 5.298342365610589
Try It Yourself

How It Works

  1. Zero. Math.asinh(0) is 0.
  2. Positive. Math.asinh(1) is about 0.8814.
  3. Negative. -1 gives the same number with a minus sign.
  4. Big numbers. The result grows slowly, even for 100.

Example 2 — Negative Input, Negative Result

Flipping the sign of the input flips the sign of the result.

JavaScript
var x = 2.5;
console.log(Math.asinh(x));                       // 1.6472311463710958
console.log(Math.asinh(-x));                      // -1.6472311463710958
console.log(Math.asinh(-x) === -Math.asinh(x));   // true
Try It Yourself

How It Works

  1. Positive. Math.asinh(2.5) is a positive number.
  2. Negative. Math.asinh(-2.5) is the same number, but negative.
  3. Compare. The strict check returns true. This is called an odd function.

Example 3 — Check With the Log Formula

Compare Math.asinh() with the formula.

JavaScript
function asinhFormula(x) {
  return Math.log(x + Math.sqrt(x * x + 1));
}

console.log(Math.asinh(3).toFixed(6));   // 1.818446
console.log(asinhFormula(3).toFixed(6)); // 1.818446
console.log(Math.asinh(Math.sinh(2)).toFixed(6)); // 2.000000
Try It Yourself

How It Works

  1. Formula. The inverse hyperbolic sine is ln(x + √(x² + 1)).
  2. Same result. Both lines print the same value.
  3. Undo sinh. Math.asinh(Math.sinh(2)) brings back 2.

Browser & Runtime Support

Math.asinh() is part of ES2015 and is Baseline Widely available in modern browsers and Node.js.

✓ Baseline · ES2015

Math.asinh()

Supported in Chrome, Firefox, Safari, Edge, and Node.js for years. Safe for modern apps without a polyfill.

98% Modern browser support
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
Math.asinh Excellent

Bottom line: Use Math.asinh() in new code. Only very old browsers, like Internet Explorer, lack it.

Frequently Asked Questions

Math.asinh(x) returns the inverse hyperbolic sine of x. It reverses Math.sinh(). Math.asinh(0) is 0.
No. Unlike Math.asin(), it works for every number, positive or negative.
Math.asinh(x) equals Math.log(x + Math.sqrt(x * x + 1)).
It returns the negative of the positive result. Math.asinh(-1) is -0.881373587019543 because Math.asinh(1) is 0.881373587019543.
It was added in ES2015 and works in all modern browsers and Node.js.

Next: atan()

Learn how to find the arc tangent of a number.

atan() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful