frontendhack-logo
16rem = 256px

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

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

How to convert 16rem to px

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

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

16rem at different root font sizes

Root font sizeInputResult
10px16rem160px
12px16rem192px
14px16rem224px
15px16rem240px
16px16rem256px
18px16rem288px
20px16rem320px
22px16rem352px
24px16rem384px

CSS examples

font-size: 16rem; /* 256px */
padding: 16rem;
margin-bottom: 16rem;
width: 16rem;

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

font-size: 256px;
padding: 256px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
16rem256px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

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

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

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