frontendhack-logo
3.5rem = 56px

At the default root font size of 16px, 3.5rem is exactly 56px.

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

How to convert 3.5rem to px

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

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

3.5rem at different root font sizes

Root font sizeInputResult
10px3.5rem35px
12px3.5rem42px
14px3.5rem49px
15px3.5rem52.5px
16px3.5rem56px
18px3.5rem63px
20px3.5rem70px
22px3.5rem77px
24px3.5rem84px

CSS examples

font-size: 3.5rem; /* 56px */
padding: 3.5rem;
margin-bottom: 3.5rem;
width: 3.5rem;

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

font-size: 56px;
padding: 56px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
3.3rem52.8px
3.3125rem53px
3.375rem54px
3.4rem54.4px
3.4375rem55px
3.5rem56px
3.5625rem57px
3.6rem57.6px
3.625rem58px
3.6875rem59px
3.7rem59.2px

Frequently Asked Questions

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

56px equals 3.5rem at a 16px root font size (56 ÷ 16 = 3.5).

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