frontendhack-logo
36px = 2.25rem

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

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

How to convert 36px to rem

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

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

36px at different root font sizes

Root font sizeInputResult
10px36px3.6rem
12px36px3rem
14px36px2.5714rem
15px36px2.4rem
16px36px2.25rem
18px36px2rem
20px36px1.8rem
22px36px1.6364rem
24px36px1.5rem

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

PixelsREM
36px2.25rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

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

Yes. If the root font size is 18px, 36px equals 2rem, and at 20px it equals 1.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.