frontendhack-logo
1.875rem = 30px

At the default root font size of 16px, 1.875rem is exactly 30px.

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

How to convert 1.875rem to px

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

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

1.875rem at different root font sizes

Root font sizeInputResult
10px1.875rem18.75px
12px1.875rem22.5px
14px1.875rem26.25px
15px1.875rem28.125px
16px1.875rem30px
18px1.875rem33.75px
20px1.875rem37.5px
22px1.875rem41.25px
24px1.875rem45px

CSS examples

font-size: 1.875rem; /* 30px */
padding: 1.875rem;
margin-bottom: 1.875rem;
width: 1.875rem;

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

font-size: 30px;
padding: 30px;

Tailwind CSS equivalent

As a font size, 1.875rem is the default text-3xl class.

Nearby values

REMPixels
1.6875rem27px
1.7rem27.2px
1.75rem28px
1.8rem28.8px
1.8125rem29px
1.875rem30px
1.9rem30.4px
1.9375rem31px
2rem32px
2.0625rem33px
2.1rem33.6px

Frequently Asked Questions

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

30px equals 1.875rem at a 16px root font size (30 ÷ 16 = 1.875).

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