24px in em · 16px root
1.5 em
em = px ÷ parent font size — shown here at the browser default root font size of 16px.
24px at every root font size
| Root font size | 24px equals | CSS |
|---|---|---|
| 10px | 2.4em | font-size: 2.4em; |
| 12px | 2em | font-size: 2em; |
| 14px | 1.71429em | font-size: 1.7143em; |
| 16px default | 1.5em | font-size: 1.5em; |
| 18px | 1.33333em | font-size: 1.3333em; |
| 20px | 1.2em | font-size: 1.2em; |
Converter
—
Nearby values
Questions
What is 24px in em?
24px = 1.5em at the browser default root font size of 16px. em = px ÷ parent font size.
What is 24px in em at a different root size?
At 10px root: 2.4em. At 12px root: 2em. At 14px root: 1.7143em. At 16px root: 1.5em. At 18px root: 1.3333em. At 20px root: 1.2em.
How is 24px calculated?
em = px ÷ parent font size. Here: 24 ÷ 16 = 1.5.
All px values
Computed from the CSS Values and Units specification. See the full px to em table.