Home REM to PX Converter

REM to PX Converter

Convert CSS REM values to pixels quickly and accurately. Enter a REM value and your root font size to instantly calculate the equivalent pixel value.

REM to PX Calculator

Enter a REM value and the root font size used by your website.

rem
px
Result
16 px

How to Convert REM to PX

Converting REM to pixels is straightforward when you know the root font size of your document. The REM unit is relative to the root HTML element's font size.

PX = REM × Root Font Size

For example, if your root font size is 16px, then 1rem = 16px. A value of 2rem would therefore equal 32px.

Example:

2rem × 16px = 32px

Common REM to PX Conversions

The following values use a 16px root font size, which is a common default in web development.

REM Pixels Common Use
0.25rem 4px Small spacing
0.5rem 8px Small spacing
0.75rem 12px Small text / spacing
1rem 16px Base size
1.25rem 20px Text / spacing
1.5rem 24px Headings / spacing
2rem 32px Large spacing
2.5rem 40px Section spacing
3rem 48px Large headings
4rem 64px Large section spacing
5rem 80px Large layouts
6rem 96px Large layout spacing

What Is REM in CSS?

REM stands for "root em." Unlike the EM unit, which is relative to the font size of the current element or its parent, REM is calculated from the font size of the root HTML element.

For example, if your stylesheet contains:

html {
  font-size: 16px;
}

Then 1rem is equal to 16px, 2rem is equal to 32px, and 0.5rem is equal to 8px.

REM at a Glance

1rem 16px
1.5rem 24px
2rem 32px
3rem 48px
4rem 64px

When Is REM Used?

REM is commonly used when building scalable and responsive websites because its values are tied to the root font size.

Aa

Typography

Use REM values for headings, paragraphs, labels, and other text sizes that should scale consistently.

Spacing

REM can be used for margins, padding, gaps, and other spacing values throughout a layout.

Responsive Layouts

Because REM values depend on the root font size, they can help create layouts that scale consistently.

REM vs PX

Pixels and REM serve different purposes in CSS. PX represents a fixed CSS length, while REM is relative to the root element's font size.

Feature REM PX
Type Relative unit Fixed unit
Based on Root font size CSS pixel
Scales with root size Yes No
Common use Typography & spacing Precise dimensions

REM to PX Frequently Asked Questions

How do I convert REM to PX?

Multiply the REM value by the root font size. For example, with a 16px root font size, 2rem × 16px equals 32px.

How many pixels is 1rem?

With the commonly used 16px root font size, 1rem equals 16px. The actual pixel value can be different if the root font size has been changed.

How many pixels is 1.5rem?

With a 16px root font size, 1.5rem equals 24px.

How many pixels is 2rem?

With a 16px root font size, 2rem equals 32px.

Does REM always equal 16 pixels?

No. REM depends on the root HTML element's font size. If the root font size is 18px, for example, 1rem equals 18px instead of 16px.

What is the formula for REM to PX?

The formula is: PX = REM × Root Font Size.

Need Another CSS Conversion?

Pixel Converters provides simple online tools for converting pixels, REM, EM, viewport units, and other common web design measurements.

Explore All Converters →