At the default root font size of 16px, 3.125rem is exactly 50px.
Calculation based on a root font-size of 16 pixels.
How to convert 3.125rem to px
To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 3.125rem that is 3.125 × 16 = 50px.
50px is a large size, common for headings, section padding and generous layout gaps.
3.125rem at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 3.125rem | 31.25px |
| 12px | 3.125rem | 37.5px |
| 14px | 3.125rem | 43.75px |
| 15px | 3.125rem | 46.875px |
| 16px | 3.125rem | 50px |
| 18px | 3.125rem | 56.25px |
| 20px | 3.125rem | 62.5px |
| 22px | 3.125rem | 68.75px |
| 24px | 3.125rem | 75px |
CSS examples
font-size: 3.125rem; /* 50px */
padding: 3.125rem;
margin-bottom: 3.125rem;
width: 3.125rem;The same values in pixels, if you need a fixed size:
font-size: 50px;
padding: 50px;Tailwind CSS equivalent
3.125rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[3.125rem] or text-[3.125rem].
Nearby values
Frequently Asked Questions
3.125rem equals 50px when the root font size is the browser default of 16px. The calculation is 3.125 × 16 = 50.
50px equals 3.125rem at a 16px root font size (50 ÷ 16 = 3.125).
Yes. rem is relative to the root font size, so 3.125rem becomes 56.25px at an 18px root and 62.5px 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.
