frontendhack-logo
6rem = 96px

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

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

How to convert 6rem to px

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

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

6rem at different root font sizes

Root font sizeInputResult
10px6rem60px
12px6rem72px
14px6rem84px
15px6rem90px
16px6rem96px
18px6rem108px
20px6rem120px
22px6rem132px
24px6rem144px

CSS examples

font-size: 6rem; /* 96px */
padding: 6rem;
margin-bottom: 6rem;
width: 6rem;

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

font-size: 96px;
padding: 96px;

Tailwind CSS equivalent

The default spacing scale has a step for 6rem: use classes like p-24, m-24, gap-24, w-24 and h-24. As a font size, 6rem is the default text-8xl class.

Nearby values

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

Frequently Asked Questions

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

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

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