Line Height Calculator
Calculate line-box size, unitless ratio, and extra leading.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: This is scalar box arithmetic and does not measure font metrics, glyphs, wrapping, or rendered layout.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use Line Height Calculator
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.
Press “Calculate line height”.
Copy the result, or download it as line-height.json.

