At the default root font size of 16px, 15rem is exactly 240px.
Calculation based on a root font-size of 16 pixels.
How to convert 15rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 15rem that is 15 × 16 = 240px.
240px is a very large size, typically used for hero headings, containers and big layout dimensions.
15rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 15rem | 150px |
| 12px | 15rem | 180px |
| 14px | 15rem | 210px |
| 15px | 15rem | 225px |
| 16px | 15rem | 240px |
| 18px | 15rem | 270px |
| 20px | 15rem | 300px |
| 22px | 15rem | 330px |
| 24px | 15rem | 360px |
CSS examples
font-size: 15rem; /* 240px */
padding: 15rem;
margin-bottom: 15rem;
width: 15rem;The same values in pixels, if you need a fixed size:
font-size: 240px;
padding: 240px;Tailwind CSS equivalent
The default spacing scale has a step for 15rem: use classes like p-60, m-60, gap-60, w-60 and h-60.
Nearby values
Frequently Asked Questions
15rem equals 240px when the root font size is the browser default of 16px. The calculation is 15 × 16 = 240.
240px equals 15rem at a 16px root font size (240 ÷ 16 = 15).
Yes. rem is relative to the root font size, so 15rem becomes 270px at an 18px root and 300px at a 20px root. Use the base font size field above to try any value.
Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.
