frontendhack-logo
0.375rem = 6px

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

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

How to convert 0.375rem to px

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

6px is a very small size, typically used for borders, hairlines, icon gaps and fine detail.

0.375rem at different root font sizes

Root font sizeInputResult
10px0.375rem3.75px
12px0.375rem4.5px
14px0.375rem5.25px
15px0.375rem5.625px
16px0.375rem6px
18px0.375rem6.75px
20px0.375rem7.5px
22px0.375rem8.25px
24px0.375rem9px

CSS examples

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

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

font-size: 6px;
padding: 6px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
0.1875rem3px
0.2rem3.2px
0.25rem4px
0.3rem4.8px
0.3125rem5px
0.375rem6px
0.4rem6.4px
0.4375rem7px
0.5rem8px
0.5625rem9px
0.6rem9.6px

Frequently Asked Questions

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

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

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