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 size | Input | Result |
|---|---|---|
| 10px | 90px | 9rem |
| 12px | 90px | 7.5rem |
| 14px | 90px | 6.4286rem |
| 15px | 90px | 6rem |
| 16px | 90px | 5.625rem |
| 18px | 90px | 5rem |
| 20px | 90px | 4.5rem |
| 22px | 90px | 4.0909rem |
| 24px | 90px | 3.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
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.
