coderef

hardwareConcurrencyBaseline · Widely available

The navigator.hardwareConcurrency property is the number of logical processors available to run threads on the user's computer.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 14, 2022. Widely available since Sep 14, 2024.

Browser support

DesktopChrome
1–36Not supported
37+Supportedsince Aug 26, 2014
Current: 155
Edge
12–14Not supported
15+Supportedsince Apr 5, 2017
Current: 154
Firefox
1–47Not supported
48+Supportedsince Aug 2, 2016
Current: 157
Safari
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27
MobileChrome Android
18–36Not supported
37+Supportedsince Sep 3, 2014
Current: 155
Firefox Android
4–47Not supported
48+Supportedsince Aug 2, 2016
Current: 157
Safari iOS
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: hardwareConcurrency.

Feature detection

JS · check before using
if ("Navigator" in globalThis && "hardwareConcurrency" in Navigator.prototype) {
  // Navigator.hardwareConcurrency is available
}

Sub-features

Support for each part of the feature (2). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Navigator.hardwareConcurrency37154815.4374815.4
WorkerNavigator.hardwareConcurrency37154815.4374815.4