Convert rem to em
At the browser default root font size of 16 px, 1rem = 1em. Change the base below if your project uses a different root size.
Formula
em = rem × 1
rem = em × 1
Because both units are relative, this ratio holds only at a 16 px base. If your project sets html { font-size: 62.5% } — a common trick that makes 1rem equal 10 px — set the base above to 10 instead.
REM to EM conversion table
| rem | em |
|---|---|
| 8rem | 8em |
| 10rem | 10em |
| 12rem | 12em |
| 14rem | 14em |
| 16rem | 16em |
| 18rem | 18em |
| 20rem | 20em |
| 24rem | 24em |
| 28rem | 28em |
| 32rem | 32em |
| 36rem | 36em |
| 40rem | 40em |
| 48rem | 48em |
| 56rem | 56em |
| 64rem | 64em |
| 72rem | 72em |
| 80rem | 80em |
| 96rem | 96em |
| 128rem | 128em |
About rem
One rem equals the font size of the root <html> element — 16 px unless you or the user changes it. Because it ignores nesting, rem is the unit of choice for a consistent type and spacing scale.
About em
One em equals the font size of the current element. It compounds through nesting, which makes it powerful for component-local spacing and dangerous for global scales.
Which unit should you use?
| Property | Recommended unit | Why |
|---|---|---|
| Font size | rem | Scales with the user's browser font-size preference, which px ignores — an accessibility requirement. |
| Padding and margin | rem or em | rem for a consistent global rhythm; em when the spacing should track the component's own text size. |
| Borders and hairlines | px | You almost always want exactly one crisp pixel, not a value that scales. |
| Media query breakpoints | em | Historically the most reliable across browsers when the user zooms. |
| Print stylesheets | pt, cm, mm | These map to real physical measurements on paper. |
Frequently asked questions
What is 16rem in em?
16rem equals 16em at a 16 px root font size.
How do I convert rem to em?
Multiply the rem value by 1. Going the other way, multiply the em value by 1.
Does the root font size change the result?
Yes. Both units are relative, so the ratio between them is stable, but their pixel values move together with the root size.
Why does CSS use 96 pixels per inch?
It is a historical convention from early desktop displays that became the fixed CSS reference. It has nothing to do with your monitor's real pixel density — the browser scales CSS pixels to physical ones for you.