frontendhack-logo
7.5rem = 120px

At the default root font size of 16px, 7.5rem is exactly 120px.

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

How to convert 7.5rem to px

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

120px is a very large size, typically used for hero headings, containers and big layout dimensions.

7.5rem at different root font sizes

Root font sizeInputResult
10px7.5rem75px
12px7.5rem90px
14px7.5rem105px
15px7.5rem112.5px
16px7.5rem120px
18px7.5rem135px
20px7.5rem150px
22px7.5rem165px
24px7.5rem180px

CSS examples

font-size: 7.5rem; /* 120px */
padding: 7.5rem;
margin-bottom: 7.5rem;
width: 7.5rem;

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

font-size: 120px;
padding: 120px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
7.3rem116.8px
7.3125rem117px
7.375rem118px
7.4rem118.4px
7.4375rem119px
7.5rem120px
7.5625rem121px
7.6rem121.6px
7.625rem122px
7.6875rem123px
7.7rem123.2px

Frequently Asked Questions

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

120px equals 7.5rem at a 16px root font size (120 ÷ 16 = 7.5).

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