frontendhack-logo
160px = 10rem

At the default root font size of 16px, 160px is exactly 10rem.

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

How to convert 160px to rem

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

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

160px at different root font sizes

Root font sizeInputResult
10px160px16rem
12px160px13.3333rem
14px160px11.4286rem
15px160px10.6667rem
16px160px10rem
18px160px8.8889rem
20px160px8rem
22px160px7.2727rem
24px160px6.6667rem

CSS examples

font-size: 10rem; /* 160px */
padding: 10rem;
margin-bottom: 10rem;
width: 10rem;

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

font-size: 160px;
padding: 160px;

Tailwind CSS equivalent

The default spacing scale has a step for 10rem: use classes like p-40, m-40, gap-40, w-40 and h-40.

Nearby values

PixelsREM
160px10rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

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

10rem equals 160px at a 16px root font size (10 × 16 = 160).

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