2.5em in px · 16px root
40 px
px = em × parent font size — shown here at the browser default root font size of 16px.
2.5em at every root font size
| Root font size | 2.5em equals | CSS |
|---|---|---|
| 10px | 25px | font-size: 25px; |
| 12px | 30px | font-size: 30px; |
| 14px | 35px | font-size: 35px; |
| 16px default | 40px | font-size: 40px; |
| 18px | 45px | font-size: 45px; |
| 20px | 50px | font-size: 50px; |
Converter
—
Nearby values
Questions
What is 2.5em in px?
2.5em = 40px at the browser default root font size of 16px. px = em × parent font size.
What is 2.5em in px at a different root size?
At 10px root: 25px. At 12px root: 30px. At 14px root: 35px. At 16px root: 40px. At 18px root: 45px. At 20px root: 50px.
How is 2.5em calculated?
px = em × parent font size. Here: 2.5 × 16 = 40.
All em values
Computed from the CSS Values and Units specification. See the full em to px table.