Skip to content
Utility Calculators

PX to REM Calculator

Verified formula Updated Jun 2026 Private — runs on your device

Enter details
Verified formula Private

Value in rem

1.5000

For general information only — not financial, tax, legal or medical advice. Verify before you rely on it.

How to use the PX to REM Calculator

The PX to REM Calculator works out your value in rem in an instant. Enter pixels (px) and base font size (px) and the result updates as you type — it is free, needs no sign-up, and runs entirely in your browser so your figures stay private.

  1. Enter the pixels (px).
  2. Enter the base font size (px).
  3. Read off your value in rem — the calculator updates automatically, with no button to press.

Formula

The PX to REM Calculator uses the formula:

Value in rem = Pixels (px) ÷ Base font size (Pixels (px))

Worked example

For example, with pixels (px) of 24 and base font size (px) of 16, the value in rem is 1.5000.

Inputs used
Pixels (px) 24
Base font size (px) 16
Results
Value in rem 1.5000

Results are estimates for educational use, not professional advice.

Frequently asked questions

Divide the pixel value by the root font size. With a 16px base, 24px equals 1.5rem.

It is the root font size of the page, set on the html element. Browsers default to 16px unless you change it.

rem scales with the user's chosen font size, which improves accessibility and makes responsive type easier to manage.

Multiply the rem value by the base font size. 1.5rem at a 16px base is 24px.

The PX to REM Calculator uses the formula: Value in rem = Pixels (px) ÷ Base font size (Pixels (px)). For example, with pixels (px) of 24 and base font size (px) of 16, the value in rem is 1.5000.

Enter the pixels (px). Enter the base font size (px). Read off your value in rem — the calculator updates automatically, with no button to press.

Related calculators