frontendhack-logo
2.5625rem = 41px

At the default root font size of 16px, 2.5625rem is exactly 41px.

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

How to convert 2.5625rem to px

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

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

2.5625rem at different root font sizes

Root font sizeInputResult
10px2.5625rem25.625px
12px2.5625rem30.75px
14px2.5625rem35.875px
15px2.5625rem38.4375px
16px2.5625rem41px
18px2.5625rem46.125px
20px2.5625rem51.25px
22px2.5625rem56.375px
24px2.5625rem61.5px

CSS examples

font-size: 2.5625rem; /* 41px */
padding: 2.5625rem;
margin-bottom: 2.5625rem;
width: 2.5625rem;

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

font-size: 41px;
padding: 41px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
2.3125rem37px
2.375rem38px
2.4rem38.4px
2.4375rem39px
2.5rem40px
2.5625rem41px
2.6rem41.6px
2.625rem42px
2.6875rem43px
2.7rem43.2px
2.75rem44px

Frequently Asked Questions

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

41px equals 2.5625rem at a 16px root font size (41 ÷ 16 = 2.5625).

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