The CSS rem is a font-relative length unit in the W3C CSS layout system, equal to the computed font size of a document's root html element. Its symbol is rem, short for root em. Under the universal 16-pixel default font size shipped by desktop and mobile browsers, 1 rem equals 16 CSS pixels, or 12 points.
Introduced in CSS Values and Units Level 3 and supported across mainstream browsers since the early 2010s, rem solved a notorious maintenance headache of the older em unit. Because em scales relative to an element's parent, nested components multiplied silently: a 0.9 em caption inside a 0.9 em card shrank to 0.81 em, and a third layer fell to 0.729 em. Anchoring every calculation to the single root element eliminated cascading drift.
The unit's greatest practical virtue is accessibility. Hard-coded px font sizes can override a reader's chosen browser text preference, whereas sizing headings, paragraphs and spacing in rem lets low-vision users raise their browser default from 16 px to 24 px and watch the entire interface scale harmoniously with its visual hierarchy intact.
Design systems routinely define modular type and spacing scales in rem: 0.875 rem (14 px) for captions, 1 rem (16 px) for body prose, 1.5 rem (24 px) for subheadings and 2.5 rem (40 px) for display titles, paired with 0.25 rem (4 px) spacing steps. An older habit set the root size to 62.5 per cent (10 px) for easy mental maths, though modern teams keep the 16-pixel root intact so third-party widgets do not shrink unexpectedly.
Because rem has no fixed physical magnitude outside a stylesheet, adjusting the root font size rescales an entire page at once — a clean lever for global density controls.
Conversion tables evaluate 1 rem at the standard 16-pixel browser default, where it aligns directly with one pica and twelve points.
One CSS rem equals 16 CSS pixels (at the standard 16-pixel browser default), 12 points, 1 pica, 1 CSS em, 240 twips, about 4.2333 CSS millimetres, or about 0.1667 CSS inches.
| Unit | Symbol | 1 CSS rem equals | 1 of these equals | Converter |
|---|---|---|---|---|
| CSS pixel | px | 16 px | 0.0625 rem | CSS rems to CSS pixels |
| Point | pt | 12 pt | 0.0833333333333 rem | CSS rems to Points |
| Pica | pc | 1 pc | 1 rem | CSS rems to Picas |
| CSS em | em | 1 em | 1 rem | CSS rems to CSS ems |
| Twip | twip | 240 twip | 0.00416666666667 rem | CSS rems to Twips |
| CSS millimeter | mm CSS | 4.23333333333 mm CSS | 0.236220472441 rem | CSS rems to CSS millimeters |
| CSS inch | in CSS | 0.166666666667 in CSS | 6 rem | CSS rems to CSS inches |