frontendhack-logo
2.25rem = 36px

At the default root font size of 16px, 2.25rem is exactly 36px.

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

How to convert 2.25rem to px

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

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

2.25rem at different root font sizes

Root font sizeInputResult
10px2.25rem22.5px
12px2.25rem27px
14px2.25rem31.5px
15px2.25rem33.75px
16px2.25rem36px
18px2.25rem40.5px
20px2.25rem45px
22px2.25rem49.5px
24px2.25rem54px

CSS examples

font-size: 2.25rem; /* 36px */
padding: 2.25rem;
margin-bottom: 2.25rem;
width: 2.25rem;

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

font-size: 36px;
padding: 36px;

Tailwind CSS equivalent

The default spacing scale has a step for 2.25rem: use classes like p-9, m-9, gap-9, w-9 and h-9. As a font size, 2.25rem is the default text-4xl class.

Nearby values

REMPixels
2.0625rem33px
2.1rem33.6px
2.125rem34px
2.1875rem35px
2.2rem35.2px
2.25rem36px
2.3rem36.8px
2.3125rem37px
2.375rem38px
2.4rem38.4px
2.4375rem39px

Frequently Asked Questions

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

36px equals 2.25rem at a 16px root font size (36 ÷ 16 = 2.25).

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