48px → REM

48px to REM - 3rem at 16px Base

At the default browser root size of 16px, 48px equals 3rem. Formula: rem = px ÷ 16.

Last reviewed:

CSS snippet

.example {
  font-size: 3rem; /* 48px at 16px root */
  padding: 3rem;
}

PX to REM formula

rem = px ÷ root font size

48px ÷ 16px = 3rem

Worked example: To convert 48px at a 16px root, divide 48 by 16. 48 ÷ 16 = 3. Write font-size: 3rem; instead of font-size: 48px; so text scales when users enlarge their browser default font size.

Common use cases at 48px (3rem)

Category Tailwind / design use CSS property example
Font size text-5xl (3rem) font-size: 3rem;
Spacing - padding: 3rem;
Gap / margin - gap: 3rem;

Nearby pixel conversions

Also see 40px to rem and 50px to rem .

48px to REM FAQ

How do you convert 48px to rem?

Divide 48 by the root font size. At the default 16px base: 48 ÷ 16 = 3rem. Formula: rem = px ÷ root font size. Paste font-size: 3rem; into your CSS so typography scales when users change their browser default font size.

What is 48px in rem at 16px base?

At a 16px root font size, 48px equals exactly 3rem. This is the browser default unless your project or the user changes html { font-size }. If your root differs, scale with rem = 48 ÷ yourRootPx before shipping production styles.

Should I use 3rem or 48px in CSS?

Use 3rem for typography and spacing that should scale with the user's root font-size preference - important for accessibility. Reserve 48px for fixed values like 1px borders or bitmap image dimensions. Prefer rem for layout rhythm so zoom and OS font settings do not clip text.

How do I convert 3rem back to pixels?

Multiply 3rem by 16: 3 × 16 = 48px. Reverse formula: px = rem × root font size. Use that when a design tool exports rem tokens and you need pixel sizes for image assets, canvas drawing, or developer handoff docs.

Where is 48px commonly used in web design?

48px (3rem) maps to text-5xl (3rem) in typical design systems. For Tailwind spacing, see -. Check the use-case table on this page for CSS property examples covering font-size, padding, and gap so you can pick a consistent token across components and breakpoints.

Full converter

PX to REM Converter - any value, custom base

Cheat sheet

PX to REM cheat sheet - 12px through 64px