How to calculate line height
CSS line height controls the vertical space reserved for each line of text. To convert a unitless line-height to pixels, multiply it by the font size. For example, 16px × 1.5 = 24px. That means a 16px font with line-height: 1.5 uses a 24px line box.
font size×line-height ratio=line height in pixels
What is a good line height?
For body copy, a unitless value between 1.4 and 1.7 is a useful starting point. Large display headings often feel better around 1 to 1.25, while small text or long lines may need more room. Font shape, weight, line length and audience all affect the final choice, so use the live preview as a visual check.
The Balance it button provides a sensible starting value based on the selected font size. It is a design suggestion, not a universal rule—adjust it until the sample feels easy to follow.
TIP
Prefer unitless line-height for flexible components
A unitless value is inherited as a ratio, so nested text calculates spacing from its own font size. This usually behaves more predictably in responsive layouts than inheriting one fixed pixel value.
Unitless vs px, em and percent
Unitless values such as 1.5 are flexible and usually the best default. Pixels create an exact line box, which can help with a strict baseline grid. Em and percent are relative formats: 1.5em and 150% both represent one and a half times the element's font size when declared directly on that element.