frontendhack-logo
4.5rem = 72px

At the default root font size of 16px, 4.5rem is exactly 72px.

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

How to convert 4.5rem to px

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

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

4.5rem at different root font sizes

Root font sizeInputResult
10px4.5rem45px
12px4.5rem54px
14px4.5rem63px
15px4.5rem67.5px
16px4.5rem72px
18px4.5rem81px
20px4.5rem90px
22px4.5rem99px
24px4.5rem108px

CSS examples

font-size: 4.5rem; /* 72px */
padding: 4.5rem;
margin-bottom: 4.5rem;
width: 4.5rem;

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

font-size: 72px;
padding: 72px;

Tailwind CSS equivalent

As a font size, 4.5rem is the default text-7xl class.

Nearby values

REMPixels
4.3rem68.8px
4.3125rem69px
4.375rem70px
4.4rem70.4px
4.4375rem71px
4.5rem72px
4.5625rem73px
4.6rem73.6px
4.625rem74px
4.6875rem75px
4.7rem75.2px

Frequently Asked Questions

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

72px equals 4.5rem at a 16px root font size (72 ÷ 16 = 4.5).

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