frontendhack-logo
3.1rem = 49.6px

At the default root font size of 16px, 3.1rem is exactly 49.6px.

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

How to convert 3.1rem to px

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

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

3.1rem at different root font sizes

Root font sizeInputResult
10px3.1rem31px
12px3.1rem37.2px
14px3.1rem43.4px
15px3.1rem46.5px
16px3.1rem49.6px
18px3.1rem55.8px
20px3.1rem62px
22px3.1rem68.2px
24px3.1rem74.4px

CSS examples

font-size: 3.1rem; /* 49.6px */
padding: 3.1rem;
margin-bottom: 3.1rem;
width: 3.1rem;

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

font-size: 49.6px;
padding: 49.6px;

Tailwind CSS equivalent

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

Nearby values

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

Frequently Asked Questions

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

49.6px equals 3.1rem at a 16px root font size (49.6 ÷ 16 = 3.1).

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