Unit-To-Unit Pixels conversion

REM to PX

1 rem = 16 CSS pixels

Multiplying by the root size tells you the rendered pixel value of a rem-based design. Under the common 62.5 percent root trick the base becomes 10 px, so 1.6rem is the familiar 16 px.

Formula px = rem × 16

=

Type in either field — the other updates on every keystroke. Need other units? Open the full pixels converter.

REM to PX — quick reference
Root emCSS pixel
1 rem16 px
2 rem32 px
3 rem48 px
4 rem64 px
5 rem80 px
10 rem160 px
15 rem240 px
20 rem320 px
25 rem400 px
50 rem800 px
100 rem1600 px
500 rem8000 px
1000 rem16000 px
PX to REM — reverse
CSS pixelRoot em
1 px0.0625 rem
2 px0.125 rem
3 px0.1875 rem
4 px0.25 rem
5 px0.3125 rem
10 px0.625 rem
15 px0.9375 rem
20 px1.25 rem
25 px1.5625 rem
50 px3.125 rem
100 px6.25 rem
500 px31.25 rem
1000 px62.5 rem

Worked examples

Common values
SituationFromTo
Caption0.75 rem12 px
Small text0.875 rem14 px
Body text1 rem16 px
Large body1.125 rem18 px
Heading2 rem32 px
Hero3 rem48 px

Mental-math shortcut

Multiply by 16. For 1.5 rem, add half of 16 to 16 to get 24 px.

Where this conversion comes up

Design tools such as Figma work in pixels, while stylesheets use rem. A heading of 2 rem is 32 px at the default size.

Common mistakes

A rem is relative to the root font size, so it is only 16 px by default. If a user sets 20 px as their default, 1 rem is 20 px and your layout grows with it.

Background

The rem unit came with CSS3 to avoid the compounding that em units cause in nested elements. Its name stands for root em.

Learn more

By default 1 rem is 16 px, set by the browser's root font size. If a user raises their default font size, every rem value grows with it, while px values stay fixed.

Related guides: Digital and print layout units: px, rem, em, points and DPI

Frequently asked

How many CSS pixels are in a rem?
1 rem = 16 CSS pixels. In the other direction, 1 CSS pixel = 0.0625 rem.
What is a rem?
A rem is the root element’s font size — 16 px in every browser by default, though stylesheets frequently override it. Sizing in rem lets a whole layout scale with the user’s chosen text size.
What is a CSS pixel?
A CSS pixel is a reference unit of 1/96 inch, not a physical device pixel. Browsers scale it by the device pixel ratio, so one CSS pixel may cover four hardware pixels on a 2× display.
How many pixels is 1.5 rem?
1.5 rem is 24 px at the default 16 px root size.