frontendhack-logo
1.9375rem = 31px

At the default root font size of 16px, 1.9375rem is exactly 31px.

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

How to convert 1.9375rem to px

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

31px is a medium size, common for body text, subheadings, buttons and standard spacing.

1.9375rem at different root font sizes

Root font sizeInputResult
10px1.9375rem19.375px
12px1.9375rem23.25px
14px1.9375rem27.125px
15px1.9375rem29.0625px
16px1.9375rem31px
18px1.9375rem34.875px
20px1.9375rem38.75px
22px1.9375rem42.625px
24px1.9375rem46.5px

CSS examples

font-size: 1.9375rem; /* 31px */
padding: 1.9375rem;
margin-bottom: 1.9375rem;
width: 1.9375rem;

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

font-size: 31px;
padding: 31px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
1.75rem28px
1.8rem28.8px
1.8125rem29px
1.875rem30px
1.9rem30.4px
1.9375rem31px
2rem32px
2.0625rem33px
2.1rem33.6px
2.125rem34px
2.1875rem35px

Frequently Asked Questions

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

31px equals 1.9375rem at a 16px root font size (31 ÷ 16 = 1.9375).

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