frontendhack-logo
22rem = 352px

At the default root font size of 16px, 22rem is exactly 352px.

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

How to convert 22rem to px

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

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

22rem at different root font sizes

Root font sizeInputResult
10px22rem220px
12px22rem264px
14px22rem308px
15px22rem330px
16px22rem352px
18px22rem396px
20px22rem440px
22px22rem484px
24px22rem528px

CSS examples

font-size: 22rem; /* 352px */
padding: 22rem;
margin-bottom: 22rem;
width: 22rem;

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

font-size: 352px;
padding: 352px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
22rem352px
0.1rem1.6px
0.125rem2px
0.1875rem3px
0.2rem3.2px
0.25rem4px

Frequently Asked Questions

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

352px equals 22rem at a 16px root font size (352 ÷ 16 = 22).

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