Space between lines of text

How the scan measures line spacing of body text on desktop and phone, which values warn or fail, and how to set a comfortable line height.

What AuditX checks

The scan opens the page twice, at 1440 by 900 pixels (desktop) and at 390 by 844 pixels (phone). In each view it finds the dominant body text size, takes the longest block at that size, and measures the distance between its lines (the median gap between the tops of lines, needing at least 3 lines) divided by the font size. A view is skipped when the body text is larger than 22 pixels, because large display text often has tight lines on purpose. If neither view can be measured the result is an info note, which does not lower the score. The check fails when any measured view is below 1.20 or above 2.20. It warns when any measured view is below 1.30 or above 2.00. Otherwise it passes, and the message reports the first measured view, desktop when available. The warn message calls 1.4 to 1.7 the range that reads most easily. The scan measures one block per view, not every paragraph, and does not check the spacing between paragraphs. A fail counts fully in the review score and a warn counts less. This check is not one of the checks that can cap the overall score.

Why it matters

W3C WCAG 2.2 success criterion 1.4.8 (Visual Presentation, Level AAA) asks for line spacing of at least 1.5 within paragraphs.

Lines that are too tight make the eye lose its place at the end of a line. W3C WCAG criterion 1.4.12 expects content to keep working when a reader raises line height to 1.5, so a layout built on a comfortable value is safer.

How to fix it

  1. Set a unitless line height of about 1.5 on body text: line-height: 1.5.
  2. Use a unitless number, not a fixed pixel value, so the spacing scales with the font size.
  3. Keep tighter spacing (around 1.1 to 1.3) for large headings only.
  4. Separate paragraphs with margin, not with extra line height.
body { line-height: 1.5; }
h1, h2 { line-height: 1.2; }

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.