calc() keywordsBaseline · Widely available
The e, pi, infinity, and NaN keywords represent well-defined constants accepted in CSS math functions such as calc().
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jun 6, 2023. Widely available since Dec 6, 2025.
Browser support
DesktopChrome
1–109Not supported
110+Supportedsince Feb 7, 2023
Current: 155Edge
12–109Not supported
110+Supportedsince Feb 9, 2023
Current: 154Firefox
1–113Not supported
114+Supportedsince Jun 6, 2023
Current: 157Safari
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27MobileChrome Android
18–109Not supported
110+Supportedsince Feb 7, 2023
Current: 155Firefox Android
4–113Not supported
114+Supportedsince Jun 6, 2023
Current: 157Safari iOS
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: calc-keyword.
Feature detection
There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.
Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (5). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| <calc-keyword> | 99 | 99 | 108 | 15.4 | 99 | 108 | 15.4 |
| <calc-keyword>.NaN | 99 | 99 | 114 | 16 | 99 | 114 | 16 |
| <calc-keyword>.e | 110 | 110 | 108 | 15.4 | 110 | 108 | 15.4 |
| <calc-keyword>.infinity | 99 | 99 | 114 | 16 | 99 | 114 | 16 |
| <calc-keyword>.pi | 109 | 109 | 108 | 15.4 | 109 | 108 | 15.4 |