frontendhack-logo
3.2rem = 51.2px

At the default root font size of 16px, 3.2rem is exactly 51.2px.

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

How to convert 3.2rem to px

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

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

3.2rem at different root font sizes

Root font sizeInputResult
10px3.2rem32px
12px3.2rem38.4px
14px3.2rem44.8px
15px3.2rem48px
16px3.2rem51.2px
18px3.2rem57.6px
20px3.2rem64px
22px3.2rem70.4px
24px3.2rem76.8px

CSS examples

font-size: 3.2rem; /* 51.2px */
padding: 3.2rem;
margin-bottom: 3.2rem;
width: 3.2rem;

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

font-size: 51.2px;
padding: 51.2px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
3rem48px
3.0625rem49px
3.1rem49.6px
3.125rem50px
3.1875rem51px
3.2rem51.2px
3.25rem52px
3.3rem52.8px
3.3125rem53px
3.375rem54px
3.4rem54.4px

Frequently Asked Questions

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

51.2px equals 3.2rem at a 16px root font size (51.2 ÷ 16 = 3.2).

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