Pixels to REM (px to rem)
16 px = 1 rem (16 px base)
Result
1.5 rem
rem = px ÷ base font size. Browsers use a 16 px base by default, so 24 px is 1.5 rem; pick another base in the converter if your site uses one.For other units, use the Typography Converter (px, pt, rem).
Formula
rem = px ÷ base font size (16 px)
Pixel (96 dpi) to Rem (root em) table
| Pixel (96 dpi) (px) | Rem (root em) (rem) |
|---|---|
| 1 px | 0.0625 rem |
| 2 px | 0.125 rem |
| 3 px | 0.1875 rem |
| 4 px | 0.25 rem |
| 5 px | 0.3125 rem |
| 6 px | 0.375 rem |
| 7 px | 0.4375 rem |
| 8 px | 0.5 rem |
| 9 px | 0.5625 rem |
| 10 px | 0.625 rem |
| 11 px | 0.6875 rem |
| 12 px | 0.75 rem |
| 13 px | 0.8125 rem |
| 14 px | 0.875 rem |
| 15 px | 0.9375 rem |
| 16 px | 1 rem |
| 17 px | 1.0625 rem |
| 18 px | 1.125 rem |
| 19 px | 1.1875 rem |
| 20 px | 1.25 rem |
| 25 px | 1.5625 rem |
| 30 px | 1.875 rem |
| 40 px | 2.5 rem |
| 50 px | 3.125 rem |
| 75 px | 4.6875 rem |
| 100 px | 6.25 rem |
Frequently asked questions
What is 14 px in rem?
14 px is 0.875 rem with a 16 px base.
What is 32 px in rem?
32 px is 2 rem with a 16 px base.
What if my root font size is 10 px?
Then 1 rem is 10 px, so 24 px is 2.4 rem. Choose 10 px as the base size above.
Related converters
Factors from NIST SP 811 and SI definitions · Last updated · How we verify these conversions