frontendhack-logo
14px = 0.875rem

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

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

How to convert 14px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 14px that is 14 ÷ 16 = 0.875rem.

14px is a small size, common for captions, labels, small text and tight spacing. It is often used for compact body text and UI labels.

14px at different root font sizes

Root font sizeInputResult
10px14px1.4rem
12px14px1.1667rem
14px14px1rem
15px14px0.9333rem
16px14px0.875rem
18px14px0.7778rem
20px14px0.7rem
22px14px0.6364rem
24px14px0.5833rem

CSS examples

font-size: 0.875rem; /* 14px */
padding: 0.875rem;
margin-bottom: 0.875rem;
width: 0.875rem;

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

font-size: 14px;
padding: 14px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
14px0.875rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

14px equals 0.875rem when the root font size is the browser default of 16px. The calculation is 14 ÷ 16 = 0.875.

0.875rem equals 14px at a 16px root font size (0.875 × 16 = 14).

Yes. If the root font size is 18px, 14px equals 0.7778rem, and at 20px it equals 0.7rem. 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.