Toolman

Convert % to em

At the browser default root font size of 16 px, 1% = 0.01em. Change the base below if your project uses a different root size.

Formula

em = % × 0.01
% = em × 100

Because both units are relative, this ratio holds only at a 16 px base. If your project sets html { font-size: 62.5% } — a common trick that makes 1rem equal 10 px — set the base above to 10 instead.

Percent to EM conversion table

%em
8%0.08em
10%0.1em
12%0.12em
14%0.14em
16%0.16em
18%0.18em
20%0.2em
24%0.24em
28%0.28em
32%0.32em
36%0.36em
40%0.4em
48%0.48em
56%0.56em
64%0.64em
72%0.72em
80%0.8em
96%0.96em
128%1.28em

About %

For font size, a percentage is relative to the parent element’s font size, so 100% equals 16 px at the default. Like em, percentages compound through nesting.

About em

One em equals the font size of the current element. It compounds through nesting, which makes it powerful for component-local spacing and dangerous for global scales.

Which unit should you use?

PropertyRecommended unitWhy
Font sizeremScales with the user's browser font-size preference, which px ignores — an accessibility requirement.
Padding and marginrem or emrem for a consistent global rhythm; em when the spacing should track the component's own text size.
Borders and hairlinespxYou almost always want exactly one crisp pixel, not a value that scales.
Media query breakpointsemHistorically the most reliable across browsers when the user zooms.
Print stylesheetspt, cm, mmThese map to real physical measurements on paper.

Frequently asked questions

What is 16% in em?

16% equals 0.16em at a 16 px root font size.

How do I convert % to em?

Multiply the % value by 0.01. Going the other way, multiply the em value by 100.

Does the root font size change the result?

Yes. Both units are relative, so the ratio between them is stable, but their pixel values move together with the root size.

Why does CSS use 96 pixels per inch?

It is a historical convention from early desktop displays that became the fixed CSS reference. It has nothing to do with your monitor's real pixel density — the browser scales CSS pixels to physical ones for you.

Related CSS unit conversions

All CSS unit converters · All converters