designwithfocus

Line Height Calculator

Free, instant, no sign-up.

Free No sign-up Runs in your browser
Line height24.0px
CSSline-height: 1.5;

The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs. How vexingly quick daft zebras jump.

Body text usually reads best at 1.4–1.6; headings at 1.1–1.3.

How to use Line Height Calculator

  1. Enter a font size.
  2. Choose a line-height ratio.
  3. Copy the line height in pixels.

The line-height formula

Line height equals font size times the ratio. A 16-pixel font at a ratio of 1.5 has a line height of 24 pixels.

A ratio between 1.4 and 1.6 is comfortable for body text.

Font sizeRatioLine height
16 px1.524 px
20 px1.530 px
16 px1.625.6 px

FAQ

What is line height?

It is the vertical space between lines of text, also called leading.

What ratio is best for body text?

Between 1.4 and 1.6 is comfortable for most body text.

Does it upload anything?

No. It runs entirely in your browser.

Can I use the value in CSS?

Yes. Use it as pixels, or use the ratio itself as a unitless line-height.

Report a problem with this tool