CSS units·20px
20px =
1.25rem
15pt

20 px in rem — 1.25 rem, 15 pt

20 px is 1.25 rem and 15 pt — 0.20833 inches, 5.292 mm, and 125% of the root font size.

rem (root 16 px)
1.25rem
pt (points)
15pt · exact
pc (picas)
1.25pc
percent of root
125%
inches
0.20833in
millimetres
5.292mm
centimetres
0.5292cm

Why rem divides by 16

Because browsers default the root font size to 16 px, and rem is a multiple of it. When a reader enlarges text in their browser settings, only the parts written in rem grow — anything pinned in px stays put.

Nearby sizes

pxrem (root 16 px)pt (points)
17px1.0625rem12.75pt
18px1.125rem13.5pt
19px1.1875rem14.25pt
20px1.25rem15pt
21px1.3125rem15.75pt
22px1.375rem16.5pt
23px1.4375rem17.25pt

On screen, pt and inches are still pixels

CSS fixes one inch at 96 px and one point at 1/72 inch. So 16 px is exactly 12 pt — but hold a ruler to the screen and that "inch" will not measure an inch.

Sizes you meet most

Body text at 16, small text at 14, spacing at 8, 24 and 32 — the values that keep coming back.

How to read this

  • rem = px ÷ 16, because browsers default the root font size to 16 px.
  • pt = px × 0.75, since CSS fixes an inch at 96 px and a point at 1/72 inch.
  • One pc is 12 pt, and one inch is both 96 px and 72 pt.
  • Use rem for text and spacing; keep px for hairlines such as borders.

Frequently asked questions

Q. How many rem is 20 px?

1.25 rem — that is 20 divided by 16.

Q. How many points is 20 px?

15 pt. A point is 1/72 inch and an inch is 96 px, so you multiply by 0.75.

Q. What length is that?

0.20833 inches, or 5.292 mm — though a ruler on the screen will not agree.

Q. And as a percentage?

125% of the root font size.