At the default root font size of 16px, 8.875rem is exactly 142px.
Calculation based on a root font-size of 16 pixels.
How to convert 8.875rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 8.875rem that is 8.875 × 16 = 142px.
142px is a very large size, typically used for hero headings, containers and big layout dimensions.
8.875rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 8.875rem | 88.75px |
| 12px | 8.875rem | 106.5px |
| 14px | 8.875rem | 124.25px |
| 15px | 8.875rem | 133.125px |
| 16px | 8.875rem | 142px |
| 18px | 8.875rem | 159.75px |
| 20px | 8.875rem | 177.5px |
| 22px | 8.875rem | 195.25px |
| 24px | 8.875rem | 213px |
CSS examples
font-size: 8.875rem; /* 142px */
padding: 8.875rem;
margin-bottom: 8.875rem;
width: 8.875rem;The same values in pixels, if you need a fixed size:
font-size: 142px;
padding: 142px;Tailwind CSS equivalent
8.875rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[8.875rem] or text-[8.875rem].
Nearby values
Frequently Asked Questions
8.875rem equals 142px when the root font size is the browser default of 16px. The calculation is 8.875 × 16 = 142.
142px equals 8.875rem at a 16px root font size (142 ÷ 16 = 8.875).
Yes. rem is relative to the root font size, so 8.875rem becomes 159.75px at an 18px root and 177.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.
