frontendhack-logo
23.4rem = 374.4px

At the default root font size of 16px, 23.4rem is exactly 374.4px.

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

How to convert 23.4rem to px

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

374.4px is a very large size, typically used for hero headings, containers and big layout dimensions.

23.4rem at different root font sizes

Root font sizeInputResult
10px23.4rem234px
12px23.4rem280.8px
14px23.4rem327.6px
15px23.4rem351px
16px23.4rem374.4px
18px23.4rem421.2px
20px23.4rem468px
22px23.4rem514.8px
24px23.4rem561.6px

CSS examples

font-size: 23.4rem; /* 374.4px */
padding: 23.4rem;
margin-bottom: 23.4rem;
width: 23.4rem;

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

font-size: 374.4px;
padding: 374.4px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
22.9rem366.4px
23rem368px
23.1rem369.6px
23.2rem371.2px
23.3rem372.8px
23.4rem374.4px
23.5rem376px
23.6rem377.6px
23.7rem379.2px
23.8rem380.8px
23.9rem382.4px

Frequently Asked Questions

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

374.4px equals 23.4rem at a 16px root font size (374.4 ÷ 16 = 23.4).

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