Vertical Rhythm: A Formula for Consistent Spacing

Vertical rhythm is a system for consistent spacing derived from your body text's line height. Use this calculated unit between all elements—paragraphs, lists, and after headings—to create harmony.
Why it exists
To solve the problem of inconsistent, visually noisy layouts. Without a system, designers often use intuitive but arbitrary spacing, leading to text where paragraphs, headings, and lists feel disconnected and hard to read, turning the content into an indistinguishable block.
The mental model
Think of vertical rhythm as a musical beat for your page layout. Instead of guessing at spacing, you establish a single, foundational spacing unit—like a quarter note—and use it and its multiples consistently for every element on the page. This creates a predictable, harmonious flow that makes content comfortable to read.
How it works
The system is built from the body text's line height. First, establish a comfortable line height for your main text, typically around 1.6 times the font size. Second, calculate your base spacing unit by dividing this line height value (in pixels) by 1.5. Third, apply this base unit as the space between paragraphs, between a paragraph and a list or image, and directly after headings. Fourth, to create separation for new sections, use a larger multiple (e.g., 3x the base unit) for the space before a heading. For headings themselves, use a tighter line height, around 1.2, to keep multi-line headings cohesive.
When to use it
Apply this system in any content-heavy layout, such as blogs, articles, documentation, or marketing pages. It is especially critical in design systems to enforce consistency across many pages and components built by different teams. It ensures a baseline of quality and readability.
When not to use it
While the principles are broadly applicable, a rigid mathematical system might be overkill for highly artistic or sparse layouts where the "rules" are intentionally broken for effect. It's primarily for structured, readable content, not abstract digital art.
One canonical example
For body text with a font size of 16px and a line-height multiplier of 1.6, the calculated line height is 25.6px. Your base spacing unit is 25.6px / 1.5, which is ~17px. Therefore: space between paragraphs is 17px; space after a heading is 17px; space before a heading is 3 * 17px = 51px. All vertical space is now a multiple of a single, calculated value.
Interview question
In the context of Vertical Rhythm, what is the foundational element used to derive the consistent spacing unit for a page layout?
- a.The overall page margin settings
- b.The line height of the body textCorrect
- c.A predetermined grid column width
- d.The font size of the primary heading
Why? this is the answer
The card explicitly states that the vertical rhythm system "is built from the body text's line height," which then forms the basis for calculating all other vertical spacing units. While other options relate to layout, they are not the foundational element for this specific system.
Just read this? Test yourself on what you have been reading.
Read the original → imperavi.com
- #design systems
- #typography
- #ui
- #css
- #layout
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on design systems — each one lists the topics its interview covers.
See open roles