Skip to main content

Line Height

UI Design

What is Line Height

Line height is the vertical distance between lines of text. In print it is called leading. It has a big effect on how easy text is to read. Lines that are too close feel cramped, and lines that are too far apart break the flow.

Recommended Line Height

  • Body text: About 1.4 to 1.6 times the font size
  • Headings: Tighter, because large text needs less space
  • Small UI text: Enough room so lines do not touch

Typographer Matthew Butterick recommends 120% to 145%, while MDN suggests at least 1.5 for paragraphs to help readers with low vision or dyslexia.

Line Height in CSS

Use a unitless value, such as 1.5, so each element multiplies it by its own font size. Keep line heights on your spacing grid where possible, for example multiples of 4.

Line Height and accessibility

WCAG 1.4.12 requires that content still works when users raise line height to 1.5 times the font size. Avoid fixed-height text boxes that clip or overlap when spacing grows.

Frequently asked questions

What is a good line height for body text?

Butterick recommends 120% to 145% of the font size for most text, while MDN suggests at least 1.5 for main paragraphs to help readers with low vision or dyslexia. Many interfaces use about 1.4 to 1.6 for body text.

Should line height be unitless in CSS?

Usually yes. A unitless value, such as 1.5, is multiplied by each element's own font size, which avoids odd results when child elements inherit a different size.

What does WCAG say about line height?

WCAG 1.4.12 requires that content still works when users increase line height to 1.5 times the font size, so text containers must not clip or overlap when spacing grows.