frontendhack-logo
1.8125rem = 29px

At the default root font size of 16px, 1.8125rem is exactly 29px.

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

How to convert 1.8125rem to px

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

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

1.8125rem at different root font sizes

Root font sizeInputResult
10px1.8125rem18.125px
12px1.8125rem21.75px
14px1.8125rem25.375px
15px1.8125rem27.1875px
16px1.8125rem29px
18px1.8125rem32.625px
20px1.8125rem36.25px
22px1.8125rem39.875px
24px1.8125rem43.5px

CSS examples

font-size: 1.8125rem; /* 29px */
padding: 1.8125rem;
margin-bottom: 1.8125rem;
width: 1.8125rem;

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

font-size: 29px;
padding: 29px;

Tailwind CSS equivalent

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

Nearby values

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

Frequently Asked Questions

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

29px equals 1.8125rem at a 16px root font size (29 ÷ 16 = 1.8125).

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