frontendhack-logo
5.4rem = 86.4px

At the default root font size of 16px, 5.4rem is exactly 86.4px.

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

How to convert 5.4rem to px

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

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

5.4rem at different root font sizes

Root font sizeInputResult
10px5.4rem54px
12px5.4rem64.8px
14px5.4rem75.6px
15px5.4rem81px
16px5.4rem86.4px
18px5.4rem97.2px
20px5.4rem108px
22px5.4rem118.8px
24px5.4rem129.6px

CSS examples

font-size: 5.4rem; /* 86.4px */
padding: 5.4rem;
margin-bottom: 5.4rem;
width: 5.4rem;

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

font-size: 86.4px;
padding: 86.4px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
5.2rem83.2px
5.25rem84px
5.3rem84.8px
5.3125rem85px
5.375rem86px
5.4rem86.4px
5.4375rem87px
5.5rem88px
5.5625rem89px
5.6rem89.6px
5.625rem90px

Frequently Asked Questions

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

86.4px equals 5.4rem at a 16px root font size (86.4 ÷ 16 = 5.4).

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