frontendhack-logo
48px = 3rem

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 sizeInputResult
10px48px4.8rem
12px48px4rem
14px48px3.4286rem
15px48px3.2rem
16px48px3rem
18px48px2.6667rem
20px48px2.4rem
22px48px2.1818rem
24px48px2rem

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

PixelsREM
48px3rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

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.