Favorites

JavaScript Number.MAX_VALUE Property

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Number.MAX_VALUE
JavaScript Number Static propertyThis property is supported by all modern browsers.
Updated 28th November 2026

Number.MAX_VALUE is the largest number JavaScript can represent. Anything larger becomes Infinity.

Description

The Number.MAX_VALUE static property is the largest positive number that can be represented, about 1.8 × 10308. Larger results overflow to Infinity. Note that integers this large aren't exact; for exact integers, see Number.MAX_SAFE_INTEGER. Number.MIN_VALUE is the smallest positive number, about 5 × 10-324.

Values beyond Number.MAX_VALUE become Infinity, which you can detect with Number.isFinite(). In practice it's rarely reached in everyday code; it matters in scientific calculations, and when choosing a starting value for a search where Infinity would also work.

Like the other Number constants, it's a static, read-only property. Its negative, -Number.MAX_VALUE, is the most negative finite number, since Number.MIN_VALUE is the smallest positive number, not the most negative one.

Syntax

Number.MAX_VALUE

Value

About 1.79 × 10308.

Example

console.log(Number.MAX_VALUE);
console.log(Number.MAX_VALUE * 2);
console.log(Number.MIN_VALUE);

Browser Support

The following information will show you the current browser support for the Number.MAX_VALUE property. Hover over a browser icon to see the version that first introduced support for this property.

This property is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee