frontendhack-logo
4.875rem = 78px

At the default root font size of 16px, 4.875rem is exactly 78px.

Calculation based on a root font-size of 16 pixels.

How to convert 4.875rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 4.875rem that is 4.875 × 16 = 78px.

78px is a large size, common for headings, section padding and generous layout gaps.

4.875rem at different root font sizes

Root font sizeInputResult
10px4.875rem48.75px
12px4.875rem58.5px
14px4.875rem68.25px
15px4.875rem73.125px
16px4.875rem78px
18px4.875rem87.75px
20px4.875rem97.5px
22px4.875rem107.25px
24px4.875rem117px

CSS examples

font-size: 4.875rem; /* 78px */
padding: 4.875rem;
margin-bottom: 4.875rem;
width: 4.875rem;

The same values in pixels, if you need a fixed size:

font-size: 78px;
padding: 78px;

Tailwind CSS equivalent

4.875rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[4.875rem] or text-[4.875rem].

Nearby values

REMPixels
4.6875rem75px
4.7rem75.2px
4.75rem76px
4.8rem76.8px
4.8125rem77px
4.875rem78px
4.9rem78.4px
4.9375rem79px
5rem80px
5.0625rem81px
5.1rem81.6px

Frequently Asked Questions

4.875rem equals 78px when the root font size is the browser default of 16px. The calculation is 4.875 × 16 = 78.

78px equals 4.875rem at a 16px root font size (78 ÷ 16 = 4.875).

Yes. rem is relative to the root font size, so 4.875rem becomes 87.75px at an 18px root and 97.5px at a 20px root. Use the base font size field above to try any value.

Prefer rem for font sizes, spacing and layout so they respect the user's browser font settings and scale for accessibility. Use px for details that should never scale, such as 1px borders or fixed icon sizes.