Loading...
36 pixels converts to 2.25em when the parent element's font-size is 16px. Unlike REM (which is relative to the root), EM is relative to the parent element's font-size. If the parent font-size differs from 16px, the em value changes.
Formula
36px ÷ 16 = 2.25em
/* 36px as em (parent font-size: 16px) */
.parent {
font-size: 16px;
}
.child {
font-size: 2.25em; /* 36px */
}EM is relative to the parent element's font-size, while REM is relative to the root (html) font-size. Use EM for component-internal sizing and REM for global consistency. 36px = 2.25em (parent 16px) = 2.25rem (root 16px).
A value of 36px (2.25em) is commonly used for headings, display text, and large elements relative to parent context. EM units are ideal for component-level sizing where elements should scale relative to their parent, not the root.
| px | em |
|---|---|
| 8 | 0.5 |
| 10 | 0.625 |
| 12 | 0.75 |
| 14 | 0.875 |
| 16 | 1 |
| 18 | 1.125 |
| 20 | 1.25 |
| 24 | 1.5 |
| 32 | 2 |
| 48 | 3 |
Convert any value instantly with our free PX to EM Converter.
Open PX to EM Converter →