frontendhack-logo
3.125rem = 50px

At the default root font size of 16px, 3.125rem is exactly 50px.

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

How to convert 3.125rem to px

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

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

3.125rem at different root font sizes

Root font sizeInputResult
10px3.125rem31.25px
12px3.125rem37.5px
14px3.125rem43.75px
15px3.125rem46.875px
16px3.125rem50px
18px3.125rem56.25px
20px3.125rem62.5px
22px3.125rem68.75px
24px3.125rem75px

CSS examples

font-size: 3.125rem; /* 50px */
padding: 3.125rem;
margin-bottom: 3.125rem;
width: 3.125rem;

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

font-size: 50px;
padding: 50px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
2.9rem46.4px
2.9375rem47px
3rem48px
3.0625rem49px
3.1rem49.6px
3.125rem50px
3.1875rem51px
3.2rem51.2px
3.25rem52px
3.3rem52.8px
3.3125rem53px

Frequently Asked Questions

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

50px equals 3.125rem at a 16px root font size (50 ÷ 16 = 3.125).

Yes. rem is relative to the root font size, so 3.125rem becomes 56.25px at an 18px root and 62.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.