18px to rem = 1.125rem
18 pixels equals 1.125rem at the default root font size of 16px. Adjust the root size below to recalculate.
px
px
1.125rem
How it works
To convert 18px to rem, divide by the root font size: 18 / 16 = 1.125. The rem unit is relative to the root element’s font size, which browsers default to 16px.