Skip to content
Menu

REM to Pixels

Rem (rem) to pixels (px) at any root font size. Browsers default to 16 px.

Result24px

Root font size (px, for rem)

Precision (significant figures)

Formula

px = rem × root size

1 rem = 16 px with a 16 px root font size

px = rem × root font size. With the browser default of 16 px, 1 rem = 16 px, 1.25 rem = 20 px and 1.5 rem = 24 px. If the page's CSS changes the root size, set it here and every value updates.

Formula

px = rem × root size

Worked example

  1. Start with 1.5 rem.
  2. Multiply by the root font size (16 px): 1.5 × 16 = 24 px.

Rem to px chart

Values in pixels for common root font sizes. Browsers default to 16 px.

Rem (rem)14 px16 px18 px20 px
0.1251.7522.252.5
0.253.544.55
0.578910
0.7510.51213.515
0.87512.251415.7517.5
114161820
1.12515.751820.2522.5
1.2517.52022.525
1.521242730
1.7524.52831.535
228323640
2.535404550
342485460
456647280
5708090100
68496108120

When you need this conversion

You’re reading CSS, a design token file or a component library written in rem and need the pixel size: to match a design, to check a value in Figma, or to tell whether 0.875 rem is really 14 px. Multiply by the root font size.

Reading design tokens

Many design systems publish a type scale in rem. At a 16 px root:

  • 0.75 rem = 12 px (small print, labels)
  • 0.875 rem = 14 px (secondary text)
  • 1 rem = 16 px (body)
  • 1.25 rem = 20 px, 1.5 rem = 24 px, 2 rem = 32 px (headings)

Spacing scales work the same way: a 0.25 rem step is 4 px, 0.5 rem is 8 px.

What rem doesn’t depend on

Unlike em, rem ignores the parent element. A 1.5 rem heading inside a small caption is still 24 px. The only thing that changes it is the root font size, which is why it’s the safer unit for most layout and type.

Common mistakes

Assuming 1 rem is always 16 px. It is only the default. Sites using the 62.5% trick make it 10 px, and users can change it in their browser settings.

Reading em values as rem. 1.5 em inside a 20 px parent is 30 px, not 24 px. Check which unit you have before converting.

For the reverse, use the pixels to rem converter.

Questions

How many pixels is 1 rem?

16 px with the browser default. It becomes 10 px with html { font-size: 62.5% } and 20 px with html { font-size: 125% }.

How many pixels is 1.5 rem?

24 px at the default 16 px root.

Can a user change what 1 rem is?

Yes. The default font size in browser settings sets the root, so a user who picks 20 px gets 1 rem = 20 px on sites that don't hard-code a px size on html.

How do I find the root font size of a site?

Open developer tools, select the html element and read its computed font-size. Most sites leave it at 16 px.

Sources

Last reviewed 2026-09-24. How we check values · Report a problem with this page

Further reading

  • px, rem and em in CSS: when to use each

    Three length units, three different reference points. What each one is measured against, how they behave when a reader changes their font size, and a simple rule for choosing.