Tested tool guide
Tested browser tools
Checked August 16, 2026
What EM Unit Calculator does, with a checked example
The EM Unit Calculator turns a parent font size and an em multiplier into pixel values, including the cumulative result across nested elements. It resolves the first level against the supplied parent, then carries that computed size into the next level. The usual mistake is treating em as a fixed conversion. It is relative to font size, so repeating 1.5em through a hierarchy produces 24px and then 36px from a 16px parent, not 24px at every level.
Worked example
A concrete input and expected output from the current implementation.
Input
Parent font size: 16 px
EM value: 1.5
Nesting levels: 2
->
Expected output
Level 1: 24 px
Level 2: 36 px
The first level is 16 * 1.5 = 24px. The second level uses 24px as its parent, so 24 * 1.5 = 36px.