At the default root font size of 16px, 29px is exactly 1.8125rem.
Calculation based on a root font-size of 16 pixels.
How to convert 29px to rem
To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 29px that is 29 ÷ 16 = 1.8125rem.
29px is a medium size, common for body text, subheadings, buttons and standard spacing.
29px at different root font sizes
| Root font size | Input | Result |
|---|---|---|
| 10px | 29px | 2.9rem |
| 12px | 29px | 2.4167rem |
| 14px | 29px | 2.0714rem |
| 15px | 29px | 1.9333rem |
| 16px | 29px | 1.8125rem |
| 18px | 29px | 1.6111rem |
| 20px | 29px | 1.45rem |
| 22px | 29px | 1.3182rem |
| 24px | 29px | 1.2083rem |
CSS examples
font-size: 1.8125rem; /* 29px */
padding: 1.8125rem;
margin-bottom: 1.8125rem;
width: 1.8125rem;The same values in pixels, if you need a fixed size:
font-size: 29px;
padding: 29px;Tailwind CSS equivalent
1.8125rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[1.8125rem] or text-[1.8125rem].
Nearby values
Frequently Asked Questions
29px equals 1.8125rem when the root font size is the browser default of 16px. The calculation is 29 ÷ 16 = 1.8125.
1.8125rem equals 29px at a 16px root font size (1.8125 × 16 = 29).
Yes. If the root font size is 18px, 29px equals 1.6111rem, and at 20px it equals 1.45rem. 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.
