Publisher notes · reviewed 29 October 2026
rem is pixels divided by the root
Default root 16 px. 24 px is 1.5 rem. A 10 px root (html 62.5%) makes 24 px equal 2.4 rem. Nested em is not modelled.
Why a table
Spacing scales 4, 8, 12, 16… are easier to scan than a single field.
Worked examples
32 px at 16
2 rem.
Limits of this page
- em equals rem only when the parent is the root.
- Viewport units belong on the clamp generator.