Unit Converters

Pixels to Rem Converter (px to rem)

rem = pixels ÷ root font-size (default 16).

rem = px ÷ root. At the usual 16 px root, 24 px is 1.5 rem. Users who enlarge the root are why you used rem in the first place. Hard-coding 16 px in media queries fights them.

Pixels

px → rem

1 rem

Browsers default to 16 px. User zoom changes the root. That is the point of rem.

Pixels
16
Root font-size
16 px

Plain-English guide

Terms & how it works

Confused by a field? Read the short definitions here while you use the tool.

  • Pixels

    The “Pixels” value used in this tool’s formula. Adjust it to see results update live.

  • Root font-size (px)

    The “Root font-size (px)” value used in this tool’s formula. Adjust it to see results update live.

How this calculator works

rem = px ÷ root. At the usual 16 px root, 24 px is 1.5 rem. Users who enlarge the root are why you used rem in the first place. Hard-coding 16 px in media queries fights them. rem = pixels ÷ root font-size (default 16). Example: 16 px → 1 rem. 24 px → 1.5 rem. 8 px → 0.5 rem.

rem = pixels ÷ root font-size (default 16).

Example: 16 px → 1 rem. 24 px → 1.5 rem. 8 px → 0.5 rem.

When to use this Pixels to Rem

Common use cases

  • rem = px ÷ root. At the usual 16 px root, 24 px is 1.5 rem. Users who enlarge the root are why you used rem in the first place. Hard-coding 16 px in media queries fights them.
  • Sanity-check with this case: 16 px → 1 rem. 24 px → 1.5 rem. 8 px → 0.5 rem.
  • The relationship is: rem = pixels ÷ root font-size (default 16).

Localized examples

  • Unit Converters: the example on this page uses the same formula as the widget.

What you get

  • Fields: Pixels, Root font-size (px)
  • rem = pixels ÷ root font-size (default 16).
  • Example on the page: 16 px → 1 rem. 24 px → 1.5 rem. 8 px → 0.5 rem.

How to Convert Pixels to Rem Step-by-Step

  1. 1Enter Pixels, Root font-size (px). Use the values you have, not a catalog average, unless that is all you know.
  2. 2rem = pixels ÷ root font-size (default 16).
  3. 3Worked case: 16 px → 1 rem. 24 px → 1.5 rem. 8 px → 0.5 rem.
  4. 4Check which dictionary the other person is using — US or UK, decimal or 1,024 — then trust the number.

Governing formula

rem = pixels ÷ root font-size (default 16).

16 px → 1 rem. 24 px → 1.5 rem. 8 px → 0.5 rem.

Example: set Pixels = 16, Root font-size (px) = 16, then read the result.

Variable definitions

  • value

    Pixels

    The “Pixels” field. Default 16; typical range 0–400.

  • rootPx

    Root font-size (px)

    The “Root font-size (px)” field. Default 16; typical range 8–32.

  • The conversion (rem = pixels ÷ root font-size (default 16).) does not pick US vs UK gallons, SI vs binary megabytes, or Mach at altitude for you. Read the footnote on the page.
  • Nothing here is uploaded for the calculation itself.

Frequently Asked Questions

Then the root is 10 px. Set the root field to 10 or stop using that trick.

Unit Converters

Get a note when we add a planner

Occasional email when something new is worth opening. We never share your address. Unsubscribe anytime.

Community

Reviews & Ratings

See what others think about this tool, then leave your own rating to help improve CalculioHub.

4.8

out of 5.0

4 reviews

Leave a review

Your rating

Aisha K.

Mar 12, 2026

Clean layout and the results update instantly. Exactly what I needed for a quick planning check.

Daniel R.

Feb 28, 2026

Very usable on mobile. Would love a save/export option later, but the math feels solid.

Priya S.

Feb 3, 2026

The FAQ section answered my questions before I even had to search. Smooth dark mode too.

Marcus L.

Jan 19, 2026

Simple inputs, clear outputs. This replaced three bookmarks I used to juggle.

Improve this tool

Suggestion Box

Share an idea, report a bug, or send general feedback for Pixels to Rem. Your input helps shape what we build next.