Unit Hub Online

CSS inches to rem converter

Convert CSS inches (in) to rem. The reference table uses 16 px element and root fonts; examples label any different font basis.

Typography converter

Instant conversion

Edit either value. Decimals and scientific notation supported.

in

rem

CONVERSION

1 in ≈ 6 rem

Precision changes displayed rounding, not calculation accuracy.

FORMULArem = in × (96) ÷ (16)

FORMULA & EXAMPLES

How to convert CSS inches to rem

rem = in × (96) ÷ (root font size in px)

Convert in into CSS reference pixels, then divide by the pixel size of rem. The reference table uses 16 px for both element and root font sizes. Examples state any different context. For em in a font-size declaration, use the parent’s computed font size; for other properties, use the element’s computed font size.

Worked examples

1 in ≈ 6 rem

1 × 96 ÷ 16 ≈ 6

Font basis for this example: element 16 px; root 16 px.

8.5 in ≈ 40.8 rem

8.5 × 96 ÷ 20 ≈ 40.8

Font basis for this example: element 16 px; root 20 px.

Frequently asked questions

Which font or display assumption applies?

em and rem depend on the specified font context. CSS absolute units have fixed relationships to reference pixels, which do not necessarily equal physical display pixels.

CSS inches to rem table

Fixed reference · CSS inch to rem (root font) · Element and root font sizes: 16 px

Reference values use this page’s named pair and default context. Calculator precision and font settings do not change this table.

CSS inch (in)rem (root font) (rem)
00
0.10.6
0.53
16
212
530
1060
25150
50300
100600
10006000
Table results use 10 significant figures; decimal formula coefficients use up to 15. Calculations use the unit definitions before rounding. Extra digits do not improve measurement accuracy.

Related conversions

A UNIT FOR EVERYTHING

Explore all converters

18 categories. One place.