frontendhack-logo
10.4rem = 166.4px

At the default root font size of 16px, 10.4rem is exactly 166.4px.

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

How to convert 10.4rem to px

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

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

10.4rem at different root font sizes

Root font sizeInputResult
10px10.4rem104px
12px10.4rem124.8px
14px10.4rem145.6px
15px10.4rem156px
16px10.4rem166.4px
18px10.4rem187.2px
20px10.4rem208px
22px10.4rem228.8px
24px10.4rem249.6px

CSS examples

font-size: 10.4rem; /* 166.4px */
padding: 10.4rem;
margin-bottom: 10.4rem;
width: 10.4rem;

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

font-size: 166.4px;
padding: 166.4px;

Tailwind CSS equivalent

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

Nearby values

REMPixels
9.9375rem159px
10rem160px
10.1rem161.6px
10.2rem163.2px
10.3rem164.8px
10.4rem166.4px
10.5rem168px
10.6rem169.6px
10.7rem171.2px
10.8rem172.8px
10.9rem174.4px

Frequently Asked Questions

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

166.4px equals 10.4rem at a 16px root font size (166.4 ÷ 16 = 10.4).

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