Home/Business/Pixels to REM Calculator

Business

Pixels to REM calculator

Convert px to rem or rem to px using your stylesheet's root font size. The starting value is 16px, and you can change it. REM output rounds to 4 decimal places; pixel output rounds to 2.

Live calculator

Enter your details

Updates instantly
CCALCFORGED
Business / Calculation sheet

Pixels to REM Calculator

Convert pixels to rem or rem to pixels using an editable root font size.

Inputs used

DirectionPixels to REM
Pixels24 px
Root font size16 px

Results

CSS value1.5rem
Formula24px ÷ 16px = 1.5rem.
NoteREM output is rounded to 4 decimal places.

Additional notes

CalcForgedPractical calculators. Straight answers.

Your estimate

Results

Planning estimate
CSS value1.5rem
Formula24px ÷ 16px = 1.5rem.
NoteREM output is rounded to 4 decimal places.

Partner pick

Coding monitorInspect responsive layouts on a dedicated display.Paid link · Check current price ↗As an Amazon Associate I earn from qualifying purchases.

The math, plainly

How it works

  1. 01

    For pixels to REM, divide the pixel value by the root font size: rem = px ÷ root px.

  2. 02

    For REM to pixels, multiply the REM value by the root font size: px = rem × root px.

  3. 03

    The root font size defaults to 16px and can be changed to match your stylesheet. REM output rounds to 4 decimal places; pixel output rounds to 2.

Try a real scenario

Convert 24px using a 16px root size

Inputs24px; root font size 16px

Result1.5rem.

More from Amazon

More options for this calculator

As an Amazon Associate I earn from qualifying purchases.