What Is 1rem in Pixels? Your Complete, Jargon-Free Guide
If you’ve been dabbling in web design or writing CSS lately, you’ve probably bumped into the term “rem” and immediately wondered, Wait, why can’t we just use pixels? And more importantly, what exactly is 1rem in pixels?
Here is the short, no-fluff answer: By default, 1rem equals 16 pixels.
But before you go hardcoding 16px everywhere, let’s talk about why rem exists in the first place, and why relying solely on rigid pixels might be making your website much less user-friendly than you think.
What Even Is a “Rem”?
“Rem” stands for Root EM. Don’t worry too much about the centuries-old history of typography where “em” comes from. In modern web design, the “root” just refers to your core HTML document.
Think of it like baking cookies. The “root” is your master recipe. If the master recipe says “1 batch = 16 cookies,” then asking for 2 batches (2rem) gets you 32 cookies.
If you decide to change the master recipe later so that 1 batch equals 20 cookies, suddenly 2rem means 40 cookies. You didn’t have to go through and change the “2 batches” instruction everywhere; you just updated the master plan, and everything else scaled perfectly.
Pixels vs. Rems: The Showdown
Pixels are rigid. They are like carving instructions into a stone tablet. 16px is exactly 16 pixels on a screen, no matter what.
So, what happens if a visually impaired user changes their browser’s default font size to 24px so they can read comfortably without squinting? If your site is built strictly with pixels, your text stays stubbornly stuck at 16px. You’ve essentially ignored their browser settings.
If you use rem, however, your site actively listens to the user. 1rem basically just means “1 times whatever the user’s default is.” If their default is 16px, they see 16px. If their default is 24px, your 1rem text seamlessly scales up to 24px. It’s an instant accessibility win that makes your site better for everyone.
Doing the Math (and How to Avoid It)
Converting rems to pixels is just basic multiplication. You take your base pixel size (usually 16) and multiply it by your rem value.
-
0.5rem= 8px (16 x 0.5) -
1.5rem= 24px (16 x 1.5) -
2rem= 32px (16 x 2)
But let’s be completely real: nobody likes doing mental math while deep in the coding zone. If you’re trying to figure out what 2.125rem is on the fly, you don’t need to pull out a calculator. Let the tools do the heavy lifting for you.
Bookmark these incredibly handy converters to save time:
-
Got a rem value but need to know how big it will actually look? Use this Rem to Pixel Converter.
-
Staring at a pixel-perfect Figma design and need to translate it into CSS? Hop over to the Pixel to Rem Converter.
The Developer’s Cheat Sheet
If you just need a quick reference for the most common sizes, here is your cheat sheet. This assumes the standard 16px default browser base size.
| Common Use Case | Pixel Equivalent | REM Value |
| Small UI spacing or borders | 4px | 0.25rem |
| Margins, padding, small gaps | 8px | 0.5rem |
| Small text, captions, metadata | 12px | 0.75rem |
| Default body text | 16px | 1rem |
| Subheadings, intro paragraphs | 20px | 1.25rem |
| H3 Headings, large buttons | 24px | 1.5rem |
| H2 Headings, section titles | 32px | 2rem |
| H1 Headings, hero text | 48px | 3rem |
The Bottom Line: Using rems instead of pixels might feel like a tiny bit of extra math at first, but it pays off massively in creating a responsive, accessible, and professional-feeling website. And with converters ready to do the math for you, there’s really no reason not to make the switch!