frontendhack-logo
56px = 3.5rem

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

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

How to convert 56px to rem

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

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

56px at different root font sizes

Root font sizeInputResult
10px56px5.6rem
12px56px4.6667rem
14px56px4rem
15px56px3.7333rem
16px56px3.5rem
18px56px3.1111rem
20px56px2.8rem
22px56px2.5455rem
24px56px2.3333rem

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

PixelsREM
56px3.5rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

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

Yes. If the root font size is 18px, 56px equals 3.1111rem, and at 20px it equals 2.8rem. The pixel value itself never changes, only the rem equivalent. 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.