At the default root font size of 16px, 48px is exactly 3rem.
Calculation based on a root font-size of 16 pixels.
How to convert 48px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 48px that is 48 ÷ 16 = 3rem.
48px is a large size, common for headings, section padding and generous layout gaps. It is often used for display headings and big layout gaps.
48px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 48px | 4.8rem |
| 12px | 48px | 4rem |
| 14px | 48px | 3.4286rem |
| 15px | 48px | 3.2rem |
| 16px | 48px | 3rem |
| 18px | 48px | 2.6667rem |
| 20px | 48px | 2.4rem |
| 22px | 48px | 2.1818rem |
| 24px | 48px | 2rem |
CSS examples
font-size: 3rem; /* 48px */
padding: 3rem;
margin-bottom: 3rem;
width: 3rem;The same values in pixels, if you need a fixed size:
font-size: 48px;
padding: 48px;Tailwind CSS equivalent
The default spacing scale has a step for 3rem: use classes like p-12, m-12, gap-12, w-12 and h-12. As a font size, 3rem is the default text-5xl class.
Nearby values
Frequently Asked Questions
48px equals 3rem when the root font size is the browser default of 16px. The calculation is 48 ÷ 16 = 3.
3rem equals 48px at a 16px root font size (3 × 16 = 48).
Yes. If the root font size is 18px, 48px equals 2.6667rem, and at 20px it equals 2.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.
