frontendhack-logo
5.1rem = 81.6px

At the default root font size of 16px, 5.1rem is exactly 81.6px.

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

How to convert 5.1rem to px

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

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

5.1rem at different root font sizes

Root font sizeInputResult
10px5.1rem51px
12px5.1rem61.2px
14px5.1rem71.4px
15px5.1rem76.5px
16px5.1rem81.6px
18px5.1rem91.8px
20px5.1rem102px
22px5.1rem112.2px
24px5.1rem122.4px

CSS examples

font-size: 5.1rem; /* 81.6px */
padding: 5.1rem;
margin-bottom: 5.1rem;
width: 5.1rem;

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

font-size: 81.6px;
padding: 81.6px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
4.875rem78px
4.9rem78.4px
4.9375rem79px
5rem80px
5.0625rem81px
5.1rem81.6px
5.125rem82px
5.1875rem83px
5.2rem83.2px
5.25rem84px
5.3rem84.8px

Frequently Asked Questions

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

81.6px equals 5.1rem at a 16px root font size (81.6 ÷ 16 = 5.1).

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