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 size | Input | Result |
|---|---|---|
| 10px | 160px | 16rem |
| 12px | 160px | 13.3333rem |
| 14px | 160px | 11.4286rem |
| 15px | 160px | 10.6667rem |
| 16px | 160px | 10rem |
| 18px | 160px | 8.8889rem |
| 20px | 160px | 8rem |
| 22px | 160px | 7.2727rem |
| 24px | 160px | 6.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
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.
