frontendhack-logo
7rem = 112px

At the default root font size of 16px, 7rem is exactly 112px.

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

How to convert 7rem to px

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

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

7rem at different root font sizes

Root font sizeInputResult
10px7rem70px
12px7rem84px
14px7rem98px
15px7rem105px
16px7rem112px
18px7rem126px
20px7rem140px
22px7rem154px
24px7rem168px

CSS examples

font-size: 7rem; /* 112px */
padding: 7rem;
margin-bottom: 7rem;
width: 7rem;

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

font-size: 112px;
padding: 112px;

Tailwind CSS equivalent

The default spacing scale has a step for 7rem: use classes like p-28, m-28, gap-28, w-28 and h-28.

Nearby values

REMPixels
7rem112px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

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

112px equals 7rem at a 16px root font size (112 ÷ 16 = 7).

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