Toolman

32px to em

32px = 2em

At the browser default font size of 16 px. Change it and this number changes — see below.

How it is calculated

One px is 0.0625em, so:

32px × 0.0625 = 2em

Reversing it, 2em × 16 returns 32px.

32px at other font sizes

em is measured against the element's own font size, inherited from its parent unless it sets one, so the answer above holds only while that is 16 px. Nested elements each compound on their parent, so this is the value for one level, not for the whole tree.

Font size32px equals
14 px2.2857em
16 px (default)2em
18 px1.7778em
20 px1.6em
24 px1.3333em

Nearby values

pxem
16px1em
18px1.125em
20px1.25em
24px1.5em
28px1.75em
32px2em
36px2.25em
40px2.5em
48px3em

Frequently asked questions

What is 32px in em?

2em at the default 16 px font size.

How is 32px converted to em?

Multiply by 0.0625: 32 × 0.0625 = 2. To go back, multiply 2 by 16.

Is 2em always the answer?

No. em is relative to the element's own font size, inherited from its parent unless it sets one, so 32px is 2em only while that is 16 px. The table above gives the value at the sizes you are most likely to meet.

The full PX to EM converter → · All CSS unit converters