Line Height Calculator

Suggested line height for your font size and line length, with a preview paragraph. Longer lines need more space between them; headings need less.

Unitless–
Pixels–
REM–
Line width–

Good typography is invisible. When line height, line length and font size work together, readers stop noticing the text and start absorbing the ideas. Too little space and lines blur together; too much and the eye loses its place when jumping to the next line. Most body text reads best with a line height between 1.4 and 1.6 times the font size.

Line Height and Line Length: The Two Settings That Make Text Readable

Readers rarely notice good typography, but they feel it when it’s wrong. Lines packed too tightly blur together; lines that are too long make it hard to find the start of the next one. Two settings control most of this: line height (the vertical space between lines) and line length (how many characters fit on a line). Get these right and almost any font becomes comfortable to read.

Line height comparison of tight, comfortable and loose paragraphs of body text

Line height basics

Line height, called leading in print (from the strips of lead typesetters placed between lines of metal type), is the distance from one line’s baseline to the next. In CSS it’s set with line-height, and the extra space is split equally above and below the text.

Recommended ranges:

Text typeTypical line height
Body text (14–20px)1.4–1.6
Long-form reading (articles, books)1.5–1.7
Subheadings (20–32px)1.2–1.35
Large headings (32px+)1.05–1.25
Single-line UI labels, buttons1–1.25

Larger text needs proportionally less line height, because the absolute gap is already big. A heading at 48px with line height 1.5 has 24px of extra space, which makes multi-line headings look like separate lines rather than one block.

The WCAG text spacing requirement

WCAG 2.1 success criterion 1.4.12 (Text Spacing, level AA) doesn’t require a specific line height in your design. It requires that content still works, with no clipped or overlapping text, when users override the spacing to at least:

  • line height 1.5 times the font size,
  • paragraph spacing 2 times the font size,
  • letter spacing 0.12 times the font size,
  • word spacing 0.16 times the font size.

In practice, using about 1.5 for body text by default and avoiding fixed-height containers for text makes compliance easy. Users with dyslexia and low vision often benefit from these increased spacings.

Unitless line height

Always write body line height without a unit:

body { line-height: 1.5; }

A unitless value is inherited as a ratio, so every child element calculates its own line height from its own font size. If you write line-height: 24px or 1.5em, the computed value is inherited instead. A 32px heading inside a body with line-height: 24px gets 24px line height, causing overlapping lines. Unitless avoids this.

Line length: 45 to 75 characters

For body text, the most widely cited guideline, found in Robert Bringhurst’s The Elements of Typographic Style, is that lines of 45–75 characters (including spaces) are comfortable, with around 66 characters often cited as ideal for single-column text.

  • Too long (90+ characters): the eye struggles to find the next line and readers lose their place.
  • Too short (under 40): frequent line breaks interrupt reading rhythm and create ragged, choppy text.

On the web, the simplest way to control line length is the ch unit, roughly the width of the “0” character:

.prose { max-width: 66ch; }

Because average characters are narrower than “0” in most fonts, 66ch usually yields slightly more than 66 characters per line, which is still within the comfortable range.

Line height and line length work together

Longer lines need more line height, because the eye travels further back to find the next line. Shorter lines can use a little less. A practical adjustment:

Characters per lineBody line height
45–551.4–1.5
55–701.5–1.6
70–801.6–1.7

The Golden Ratio Typography formula we discuss in the golden ratio guide formalises this relationship. The line height calculator above suggests a ratio from your font size and line length, and previews the result.

Font characteristics matter

Not all fonts at the same size look the same size:

  • x-height: fonts with a tall x-height (like Verdana or Inter) look larger and often need a little more line height than fonts with a small x-height (like Garamond).
  • Ascenders and descenders: fonts with long ascenders and descenders need more space to avoid collisions.
  • Weight: dense, heavy text benefits from slightly more space.
  • Language: scripts like Thai, Devanagari and Vietnamese, with stacked diacritics, need noticeably more line height than English.

Vertical rhythm

Setting line heights to multiples of a base unit (often 4px or 8px) helps text align with the rest of the layout. With 16px text and line height 1.5, each line is 24px, a multiple of 8. Headings can use line heights of 32, 40 or 48px. Margins between paragraphs can match the line height. The result is a calm, consistent vertical rhythm, closely related to the 8pt spacing system.

Paragraph spacing

Paragraphs need visible separation, typically equal to the line height or a bit more (1–1.5em). Avoid both indenting first lines and adding paragraph spacing at the same time; that’s a print convention clash. On the web, spacing between paragraphs without indents is standard.

Mobile considerations

On phones, line length is naturally short (around 35–45 characters at 16px across a 360–390px screen), which is fine. Don’t shrink body text below 16px to fit more characters; it hurts readability and can trigger zooming on input fields in iOS. Keep line height around 1.5 and generous side padding of at least 16px.

Starting values for body text

  1. Body text 16–18px, line height 1.5–1.6 (unitless).
  2. Line length capped at about 60–70ch.
  3. Headings with line heights from 1.1 to 1.3, decreasing as size increases.
  4. Paragraph spacing about 1–1.5em.
  5. Test with real content, then check that nothing breaks with WCAG text-spacing overrides.