REM to EM Converter
Convert CSS rem to em units with custom root and parent font sizes. Understand the key difference between REM and EM.
REM ? EM Calculator
Browser default = 16px
The font-size of the nearest parent element
Result
1.0000 em
Formula: (1 - 16) - 16 = 1.0000em
Formula
Example: (1.5rem - 16px) - 20px = 1.2em
Want to start investing in crypto now?
Discover how specific cryptocurrencies work — and get a bit of each crypto to try out for yourself.
What is REM to EM Conversion?
A REM to EM converter helps web developers translate between two of CSS's most important relative units. Both are relative, but they reference different anchors: REM always looks at the root <html> element's font size (global, consistent), while EM looks at the nearest parent element's font size (contextual, can compound). Knowing how to convert between them is essential for CSS refactoring, design system migrations, and understanding nested component behaviour.
REM vs EM: Key Differences
| Feature | REM | EM |
|---|---|---|
| Reference | Root <html> element | Nearest parent element |
| Consistency | Global - same everywhere | Contextual - varies by parent |
| Nesting effect | No compounding | Compounds with each nesting level |
| Best for | Global type scale, spacing | Button padding, icon sizing |
| Debugging | Easy - one reference | Harder - trace the DOM tree |
| Tailwind CSS | Uses rem by default | Available via config |
REM to EM Conversion Table (Root 16px)
| REM | PX | EM (parent=16px) | EM (parent=20px) |
|---|---|---|---|
| 0.5rem | 8px | 0.5em | 0.4em |
| 0.75rem | 12px | 0.75em | 0.6em |
| 1rem | 16px | 1em | 0.8em |
| 1.25rem | 20px | 1.25em | 1em |
| 1.5rem | 24px | 1.5em | 1.2em |
| 2rem | 32px | 2em | 1.6em |
| 3rem | 48px | 3em | 2.4em |
When to Use REM vs EM
Use REM for...
- Global typography (h1-h6, body, p)
- Spacing tokens in design systems
- Layout margins and padding
- Media query font scaling
- Any sizing you want consistent site-wide
Use EM for...
- Button padding that scales with button text
- Icon sizes relative to surrounding text
- Line-height within text components
- Component-internal spacing (badges, tags)
- Proportional scaling to parent context