At the default root font size of 16px, 12rem is exactly 192px.
Calculation based on a root font-size of 16 pixels.
How to convert 12rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 12rem that is 12 × 16 = 192px.
192px is a very large size, typically used for hero headings, containers and big layout dimensions.
12rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 12rem | 120px |
| 12px | 12rem | 144px |
| 14px | 12rem | 168px |
| 15px | 12rem | 180px |
| 16px | 12rem | 192px |
| 18px | 12rem | 216px |
| 20px | 12rem | 240px |
| 22px | 12rem | 264px |
| 24px | 12rem | 288px |
CSS examples
font-size: 12rem; /* 192px */
padding: 12rem;
margin-bottom: 12rem;
width: 12rem;The same values in pixels, if you need a fixed size:
font-size: 192px;
padding: 192px;Tailwind CSS equivalent
The default spacing scale has a step for 12rem: use classes like p-48, m-48, gap-48, w-48 and h-48.
Nearby values
Frequently Asked Questions
12rem equals 192px when the root font size is the browser default of 16px. The calculation is 12 × 16 = 192.
192px equals 12rem at a 16px root font size (192 ÷ 16 = 12).
Yes. rem is relative to the root font size, so 12rem becomes 216px at an 18px root and 240px 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.
