At the default root font size of 16px, 288px is exactly 18rem.
Calculation based on a root font-size of 16 pixels.
How to convert 288px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 288px that is 288 ÷ 16 = 18rem.
288px is a very large size, typically used for hero headings, containers and big layout dimensions.
288px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 288px | 28.8rem |
| 12px | 288px | 24rem |
| 14px | 288px | 20.5714rem |
| 15px | 288px | 19.2rem |
| 16px | 288px | 18rem |
| 18px | 288px | 16rem |
| 20px | 288px | 14.4rem |
| 22px | 288px | 13.0909rem |
| 24px | 288px | 12rem |
CSS examples
font-size: 18rem; /* 288px */
padding: 18rem;
margin-bottom: 18rem;
width: 18rem;The same values in pixels, if you need a fixed size:
font-size: 288px;
padding: 288px;Tailwind CSS equivalent
The default spacing scale has a step for 18rem: use classes like p-72, m-72, gap-72, w-72 and h-72.
Nearby values
Frequently Asked Questions
288px equals 18rem when the root font size is the browser default of 16px. The calculation is 288 ÷ 16 = 18.
18rem equals 288px at a 16px root font size (18 × 16 = 288).
Yes. If the root font size is 18px, 288px equals 16rem, and at 20px it equals 14.4rem. The pixel value itself never changes, only the rem equivalent. 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.
