At the default root font size of 16px, 17rem is exactly 272px.
Calculation based on a root font-size of 16 pixels.
How to convert 17rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 17rem that is 17 × 16 = 272px.
272px is a very large size, typically used for hero headings, containers and big layout dimensions.
17rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 17rem | 170px |
| 12px | 17rem | 204px |
| 14px | 17rem | 238px |
| 15px | 17rem | 255px |
| 16px | 17rem | 272px |
| 18px | 17rem | 306px |
| 20px | 17rem | 340px |
| 22px | 17rem | 374px |
| 24px | 17rem | 408px |
CSS examples
font-size: 17rem; /* 272px */
padding: 17rem;
margin-bottom: 17rem;
width: 17rem;The same values in pixels, if you need a fixed size:
font-size: 272px;
padding: 272px;Tailwind CSS equivalent
17rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[17rem] or text-[17rem].
Nearby values
Frequently Asked Questions
17rem equals 272px when the root font size is the browser default of 16px. The calculation is 17 × 16 = 272.
272px equals 17rem at a 16px root font size (272 ÷ 16 = 17).
Yes. rem is relative to the root font size, so 17rem becomes 306px at an 18px root and 340px 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.
