At the default root font size of 16px, 0.875rem is exactly 14px.
Calculation based on a root font-size of 16 pixels.
How to convert 0.875rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 0.875rem that is 0.875 × 16 = 14px.
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.
0.875rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 0.875rem | 8.75px |
| 12px | 0.875rem | 10.5px |
| 14px | 0.875rem | 12.25px |
| 15px | 0.875rem | 13.125px |
| 16px | 0.875rem | 14px |
| 18px | 0.875rem | 15.75px |
| 20px | 0.875rem | 17.5px |
| 22px | 0.875rem | 19.25px |
| 24px | 0.875rem | 21px |
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
Frequently Asked Questions
0.875rem equals 14px when the root font size is the browser default of 16px. The calculation is 0.875 × 16 = 14.
14px equals 0.875rem at a 16px root font size (14 ÷ 16 = 0.875).
Yes. rem is relative to the root font size, so 0.875rem becomes 15.75px at an 18px root and 17.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.
