frontendhack-logo
90px = 5.625rem

At the default root font size of 16px, 90px is exactly 5.625rem.

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

How to convert 90px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 90px that is 90 ÷ 16 = 5.625rem.

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

90px at different root font sizes

Root font sizeInputResult
10px90px9rem
12px90px7.5rem
14px90px6.4286rem
15px90px6rem
16px90px5.625rem
18px90px5rem
20px90px4.5rem
22px90px4.0909rem
24px90px3.75rem

CSS examples

font-size: 5.625rem; /* 90px */
padding: 5.625rem;
margin-bottom: 5.625rem;
width: 5.625rem;

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

font-size: 90px;
padding: 90px;

Tailwind CSS equivalent

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

Nearby values

PixelsREM
90px5.625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

90px equals 5.625rem when the root font size is the browser default of 16px. The calculation is 90 ÷ 16 = 5.625.

5.625rem equals 90px at a 16px root font size (5.625 × 16 = 90).

Yes. If the root font size is 18px, 90px equals 5rem, and at 20px it equals 4.5rem. The pixel value itself never changes, only the rem equivalent. 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.