frontendhack-logo
2.625rem = 42px

At the default root font size of 16px, 2.625rem is exactly 42px.

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

How to convert 2.625rem to px

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

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

2.625rem at different root font sizes

Root font sizeInputResult
10px2.625rem26.25px
12px2.625rem31.5px
14px2.625rem36.75px
15px2.625rem39.375px
16px2.625rem42px
18px2.625rem47.25px
20px2.625rem52.5px
22px2.625rem57.75px
24px2.625rem63px

CSS examples

font-size: 2.625rem; /* 42px */
padding: 2.625rem;
margin-bottom: 2.625rem;
width: 2.625rem;

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

font-size: 42px;
padding: 42px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
2.4rem38.4px
2.4375rem39px
2.5rem40px
2.5625rem41px
2.6rem41.6px
2.625rem42px
2.6875rem43px
2.7rem43.2px
2.75rem44px
2.8rem44.8px
2.8125rem45px

Frequently Asked Questions

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

42px equals 2.625rem at a 16px root font size (42 ÷ 16 = 2.625).

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