frontendhack-logo
10px = 0.625rem

At the default root font size of 16px, 10px is exactly 0.625rem.

Calculation based on a root font-size of 16 pixels.

How to convert 10px to rem

To convert pixels to rem, divide the pixel value by the root font size: rem = px ÷ 16. For 10px that is 10 ÷ 16 = 0.625rem.

10px is a small size, common for captions, labels, small text and tight spacing. It is often used for very small captions, often too small for comfortable body text.

10px at different root font sizes

Root font sizeInputResult
10px10px1rem
12px10px0.8333rem
14px10px0.7143rem
15px10px0.6667rem
16px10px0.625rem
18px10px0.5556rem
20px10px0.5rem
22px10px0.4545rem
24px10px0.4167rem

CSS examples

font-size: 0.625rem; /* 10px */
padding: 0.625rem;
margin-bottom: 0.625rem;
width: 0.625rem;

The same values in pixels, if you need a fixed size:

font-size: 10px;
padding: 10px;

Tailwind CSS equivalent

The default spacing scale has a step for 0.625rem: use classes like p-2.5, m-2.5, gap-2.5, w-2.5 and h-2.5.

Nearby values

PixelsREM
10px0.625rem
2px0.125rem
3px0.1875rem
4px0.25rem
5px0.3125rem
6px0.375rem

Frequently Asked Questions

10px equals 0.625rem when the root font size is the browser default of 16px. The calculation is 10 ÷ 16 = 0.625.

0.625rem equals 10px at a 16px root font size (0.625 × 16 = 10).

Yes. If the root font size is 18px, 10px equals 0.5556rem, and at 20px it equals 0.5rem. 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.