30px → REM

30px to REM — 1.875rem at 16px Base

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

Last reviewed:

CSS snippet

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

PX to REM formula

rem = px ÷ root font size

30px ÷ 16px = 1.875rem

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

Common use cases at 30px (1.875rem)

Category Tailwind / design use CSS property example
Font size Custom heading size font-size: 1.875rem;
Spacing padding: 1.875rem;
Gap / margin gap: 1.875rem;

Nearby pixel conversions

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

30px to REM FAQ

How do you convert 30px to rem?

Divide 30 by the root font size. At the default 16px base: 30 ÷ 16 = 1.875rem. Formula: rem = px ÷ root font size.

What is 30px in rem at 16px base?

At a 16px root font size, 30px equals exactly 1.875rem. This is the browser default unless your project or the user changes html { font-size }.

Should I use 1.875rem or 30px in CSS?

Use 1.875rem for typography and spacing that should scale with the user's root font-size preference — important for accessibility. Reserve 30px for fixed values like 1px borders or bitmap image dimensions.

How do I convert 1.875rem back to pixels?

Multiply 1.875rem by 16: 1.875 × 16 = 30px. Reverse formula: px = rem × root font size.

Where is 30px commonly used in web design?

30px (1.875rem) maps to Custom heading size in typical design systems. For Tailwind spacing, see —. Check the use-case table on this page for CSS property examples.

Full converter

PX to REM Converter — any value, custom base

Cheat sheet

PX to REM cheat sheet — 12px through 64px