frontendhack-logo
24rem = 384px

At the default root font size of 16px, 24rem is exactly 384px.

Calculation based on a root font-size of 16 pixels.

How to convert 24rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 24rem that is 24 × 16 = 384px.

384px is a very large size, typically used for hero headings, containers and big layout dimensions.

24rem at different root font sizes

Root font sizeInputResult
10px24rem240px
12px24rem288px
14px24rem336px
15px24rem360px
16px24rem384px
18px24rem432px
20px24rem480px
22px24rem528px
24px24rem576px

CSS examples

font-size: 24rem; /* 384px */
padding: 24rem;
margin-bottom: 24rem;
width: 24rem;

The same values in pixels, if you need a fixed size:

font-size: 384px;
padding: 384px;

Tailwind CSS equivalent

The default spacing scale has a step for 24rem: use classes like p-96, m-96, gap-96, w-96 and h-96.

Nearby values

REMPixels
24rem384px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

24rem equals 384px when the root font size is the browser default of 16px. The calculation is 24 × 16 = 384.

384px equals 24rem at a 16px root font size (384 ÷ 16 = 24).

Yes. rem is relative to the root font size, so 24rem becomes 432px at an 18px root and 480px 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.