Toolman

40rem to px

40rem = 640px

At the browser default root font size of 16 px. Change it and this number changes — see below.

How it is calculated

One rem is 16px, so:

40rem × 16 = 640px

Reversing it, 640px × 0.0625 returns 40rem.

40rem at other root font sizes

rem is measured against the root element, so the answer above holds only while that is 16 px. A visitor who has raised their browser's default — the accessibility setting rem exists to respect — is reading your page at one of the larger rows.

Root font size40rem equals
14 px560px
16 px (default)640px
18 px720px
20 px800px
24 px960px

Nearby values

rempx
20rem320px
24rem384px
28rem448px
32rem512px
36rem576px
40rem640px
48rem768px
56rem896px

Frequently asked questions

What is 40rem in px?

640px at the default 16 px root font size.

How is 40rem converted to px?

Multiply by 16: 40 × 16 = 640. To go back, multiply 640 by 0.0625.

Is 640px always the answer?

No. rem is relative to the root element, so 40rem is 640px only while that is 16 px. The table above gives the value at the sizes you are most likely to meet.

The full REM to PX converter → · All CSS unit converters