frontendhack-logo
0.8125rem = 13px

At the default root font size of 16px, 0.8125rem is exactly 13px.

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

How to convert 0.8125rem to px

To convert rem to pixels, multiply the rem value by the root font size: px = rem × 16. For 0.8125rem that is 0.8125 × 16 = 13px.

13px is a small size, common for captions, labels, small text and tight spacing.

0.8125rem at different root font sizes

Root font sizeInputResult
10px0.8125rem8.125px
12px0.8125rem9.75px
14px0.8125rem11.375px
15px0.8125rem12.1875px
16px0.8125rem13px
18px0.8125rem14.625px
20px0.8125rem16.25px
22px0.8125rem17.875px
24px0.8125rem19.5px

CSS examples

font-size: 0.8125rem; /* 13px */
padding: 0.8125rem;
margin-bottom: 0.8125rem;
width: 0.8125rem;

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

font-size: 13px;
padding: 13px;

Tailwind CSS equivalent

0.8125rem is not part of the default Tailwind scale, but you can use an arbitrary value such as p-[0.8125rem] or text-[0.8125rem].

Nearby values

REMPixels
0.625rem10px
0.6875rem11px
0.7rem11.2px
0.75rem12px
0.8rem12.8px
0.8125rem13px
0.875rem14px
0.9rem14.4px
0.9375rem15px
1rem16px
1.0625rem17px

Frequently Asked Questions

0.8125rem equals 13px when the root font size is the browser default of 16px. The calculation is 0.8125 × 16 = 13.

13px equals 0.8125rem at a 16px root font size (13 ÷ 16 = 0.8125).

Yes. rem is relative to the root font size, so 0.8125rem becomes 14.625px at an 18px root and 16.25px 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.