Line Height Calculator

Calculate line-box size, unitless ratio, and extra leading.

Scope: This is scalar box arithmetic and does not measure font metrics, glyphs, wrapping, or rendered layout.

Workbench

Inputs stay on this page.

How to use Line Height Calculator

  1. Fill in the fields:

    • Font size (px): 0.1 to 10,000.
    • Line-height value: 0.01 to 100,000.
    • Line-height unit: Unitless multiplier, Pixels, Percent, rem.
    • Root font size for rem (px): 0.1 to 1,000.
  2. Press “Calculate line height”.

  3. Copy the result, or download it as line-height.json.