frontendhack-logo
5.25rem = 84px

At the default root font size of 16px, 5.25rem is exactly 84px.

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

How to convert 5.25rem to px

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

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

5.25rem at different root font sizes

Root font sizeInputResult
10px5.25rem52.5px
12px5.25rem63px
14px5.25rem73.5px
15px5.25rem78.75px
16px5.25rem84px
18px5.25rem94.5px
20px5.25rem105px
22px5.25rem115.5px
24px5.25rem126px

CSS examples

font-size: 5.25rem; /* 84px */
padding: 5.25rem;
margin-bottom: 5.25rem;
width: 5.25rem;

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

font-size: 84px;
padding: 84px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
5.0625rem81px
5.1rem81.6px
5.125rem82px
5.1875rem83px
5.2rem83.2px
5.25rem84px
5.3rem84.8px
5.3125rem85px
5.375rem86px
5.4rem86.4px
5.4375rem87px

Frequently Asked Questions

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

84px equals 5.25rem at a 16px root font size (84 ÷ 16 = 5.25).

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