The Number.MIN_SAFE_INTEGER constant represents the minimum safe integer in JavaScript, or -(253 - 1).

To represent integers smaller than this, consider using BigInt.

Try it

Property attributes of Number.MIN_SAFE_INTEGER
Writable no
Enumerable no
Configurable no


The MIN_SAFE_INTEGER constant has a value of -9007199254740991 (-9,007,199,254,740,991, or about -9 quadrillion).

Double precision floating point format only has 52 bits to represent the mantissa, so it can only safely represent integers between -(253 – 1) and 253 – 1. Safe in this context refers to the ability to represent integers exactly and to correctly compare them. For example, Number.MIN_SAFE_INTEGER - 1 === Number.MIN_SAFE_INTEGER - 2 will evaluate to true, which is mathematically incorrect. See Number.isSafeInteger() for more information.

Because MIN_SAFE_INTEGER is a static property of Number, you always use it as Number.MIN_SAFE_INTEGER, rather than as a property of a number value.



Number.MIN_SAFE_INTEGER; // -9007199254740991
-(2 ** 53 - 1); // -9007199254740991


ECMAScript Language Specification
# sec-number.min_safe_integer

Browser compatibility

BCD tables only load in the browser

See also