Unit Converter
REM to PX Converter
Find the CSS pixel size of a rem value for a chosen root font size, including fractional and signed lengths.
REM to PX Converter examples
| Input | Expected result |
|---|---|
| 1.5 rem, 16 px root | 24 CSS px |
| 1.5 rem, 20 px root | 30 CSS px |
| 0.75 rem, 16 px root | 12 CSS px |
| −0.5 rem, 16 px root | −8 CSS px |
Supported units & limits
Accepts a signed decimal rem value, zero or scientific notation and a strictly positive root font size. Enter numbers without unit suffixes. The default root is 16 CSS px and is editable; it is not read from your website. Results describe CSS lengths at that root size, not measured screen pixels, physical dimensions or the full bounding box of a text line. Overflow and underflow produce errors.
Common mistakes
Do not multiply by a nested element’s font size: that would describe em in many property contexts. Do not assume the root stays 16 px when a stylesheet or user setting changes it. A 24 px font size does not guarantee 24 px tall visible glyphs or a 24 px line box. Browser zoom and device pixel ratio do not alter this CSS length formula.
Privacy
Conversions run in your browser. This site does not upload or store the values you enter. We use Google Analytics, loaded through Google Tag Manager, to count page visits and see which tools are used; Google may set cookies for this. The hosting server may keep standard access logs when you load a page.
Conversion guide
Check a rem value against a design measurement
When a stylesheet uses a 1.5 rem gap, read the root element’s computed font size and multiply here to compare with a design measurement in CSS pixels. Try the root size used at each breakpoint. If text still looks different, inspect the font family, font metrics and line-height separately.
REM to PX Converter FAQ
How many pixels is 2 rem?
At a 16 px root, it is 32 CSS pixels. At a 20 px root, it is 40 CSS pixels. Multiply 2 by the actual root font size.
Why does the same rem value appear larger on another page?
The page may use a different root font size, zoom level or styling context. Check the computed html font-size first, and compare CSS lengths separately from physical screen pixels.
Does device pixel ratio belong in this conversion?
No. This result is in CSS pixels. The relationship between CSS pixels and device pixels is a separate rendering concern.
Does a rem font-size determine the line height?
No. Font-size, font metrics and line-height are separate. This converter resolves the declared length; it does not measure text or calculate a line box.