PX to REM Converter

rem units scale with the root font size, which makes layouts respect users’ text-size settings. Designers often work in pixels and convert.

Convert
Browsers use 16 px unless the site changes it.
Results update as you type.

rem

1.5rem

Common sizes at a 16 px root

Common sizes at a 16 px root
pxrem
10px0.625rem
12px0.75rem
14px0.875rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
28px1.75rem
32px2rem
40px2.5rem
48px3rem
64px4rem

About this calculator

Enter a value and the root font size, usually 16 px.

How to use it

  1. Choose the direction.
  2. Enter the value.
  3. Enter the root font size.

The formula

rem = px ÷ root font size; px = rem × root font size
root font size
the html element’s font size, 16 px by default

Worked example

24 px at a 16 px root

  1. 24 ÷ 16 = 1.5rem.

What the result means

Using rem for text and spacing helps accessibility.

Assumptions

  • Root size in pixels.

Limitations

  • em units depend on the parent element instead.

Frequently asked questions

How many px is 1 rem?

16 px by default.

What is 14 px in rem?

0.875rem at a 16 px root.

rem or em?

rem is relative to the root; em to the parent.

Last reviewed on 3 October 2026. Found a mistake? Tell us.