<calc-keyword>
Widely availableSince 202297% of users
A CSS type representing keywords that can be used inside mathematical functions like 'calc()'. Examples include 'e' (base of natural logarithms) and 'pi'.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since December 2022. Widely available since June 2025.
Newer parts of <calc-keyword>
NaN constantBaseline Jun 2023, Widely Dec 2025infinity and -infinity constantsBaseline Jun 2023, Widely Dec 2025e constantBaseline Feb 2023, Widely Aug 2025pi constantBaseline Jan 2023, Widely Jul 2025
See how modern your own CSS is.Check your CSS →
Quick example
.circular-path {
/* Using pi keyword inside calc for circle math */
width: calc(2 * pi * 10px);
}<calc-keyword> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
99+
108+
15.4+
99+Mobile
99+Android
108+Android
15.4+iOS