<pow>
Widely availableSince 202394% of users
An exponential math function that calculates a base raised to the power of an exponent. It's useful for creating non-linear scales (like font sizes or spacing).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since December 2023. Widely available since June 2026.
The old way and the modern waySee the snippet: CSS type scale with pow() →
Old way 9 lines
// Sass — computed at build time, ratio is baked in
@use "sass:math";
$base: 1rem;
$ratio: 1.25;
h1 { font-size: $base * math.pow($ratio, 4); } // 2.441rem
h2 { font-size: $base * math.pow($ratio, 3); } // 1.953rem
h3 { font-size: $base * math.pow($ratio, 2); } // 1.563rem
h4 { font-size: $base * math.pow($ratio, 1); } // 1.25rem
h5 { font-size: $base * math.pow($ratio, 0); } // 1remModern 9 lines
:root {
--scale-base: 1rem;
--scale-ratio: 1.25;
}
h1 { font-size: calc(var(--scale-base) * pow(var(--scale-ratio), 4)); }
h2 { font-size: calc(var(--scale-base) * pow(var(--scale-ratio), 3)); }
h3 { font-size: calc(var(--scale-base) * pow(var(--scale-ratio), 2)); }
h4 { font-size: calc(var(--scale-base) * pow(var(--scale-ratio), 1)); }
h5 { font-size: calc(var(--scale-base) * pow(var(--scale-ratio), 0)); }See how modern your own CSS is.Check your CSS →
Quick example
:root {
/* Calculates 2 to the power of 3 (which is 8) */
--scale-factor: pow(2, 3);
--size: calc(var(--scale-factor) * 1rem);
}<pow> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.Safe to use without fallbacks.
Usage94%of people can use this6% use a browser without it.
Browsers
120+
118+
15.4+
120+Mobile
120+Android
118+Android
15.4+iOS