frontendhack-logo
31.3rem = 500.8px

At the default root font size of 16px, 31.3rem is exactly 500.8px.

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

How to convert 31.3rem to px

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

500.8px is a very large size, typically used for hero headings, containers and big layout dimensions.

31.3rem at different root font sizes

Root font sizeInputResult
10px31.3rem313px
12px31.3rem375.6px
14px31.3rem438.2px
15px31.3rem469.5px
16px31.3rem500.8px
18px31.3rem563.4px
20px31.3rem626px
22px31.3rem688.6px
24px31.3rem751.2px

CSS examples

font-size: 31.3rem; /* 500.8px */
padding: 31.3rem;
margin-bottom: 31.3rem;
width: 31.3rem;

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

font-size: 500.8px;
padding: 500.8px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
30.8rem492.8px
30.9rem494.4px
31rem496px
31.1rem497.6px
31.2rem499.2px
31.3rem500.8px
31.4rem502.4px
31.5rem504px
31.6rem505.6px
31.7rem507.2px
31.8rem508.8px

Frequently Asked Questions

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

500.8px equals 31.3rem at a 16px root font size (500.8 ÷ 16 = 31.3).

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