Sub topic 3
Margins and gutters
This chapter assumes you know basic typography terms (point size, leading, line length) and have used a layout tool such as InDesign, Affinity Publisher or Figma. The CSS examples assume basic HTML and CSS. Margins and gutters are the two empty spaces that define a grid. Every column, module and image placement you make later depends on the values you choose here.
What each one does
A margin is the empty band between the trim edge of the page (or the edge of the viewport) and the content area. A gutter is the empty space between two adjacent columns or modules. The area inside the margins is the live area: the region where text and images are placed.
Margins and gutters do different jobs.
- Margins frame the content, keep it away from the trim or screen edge, and give the reader's thumbs or fingers somewhere to rest.
- Gutters separate neighbouring blocks so the eye does not run from one column into the next.
Two meanings of "gutter"
The word has two meanings, and mixing them up causes real mistakes.
- In grid design, and in InDesign's Margins and Columns dialog, the gutter is the space between columns.
- In print production, "gutter" often means the inner margin near the binding, where two facing pages meet.
When you work with a printer, say "inner margin" or "binding margin" for the second meaning. Print spreads get their own chapter later, so here we only note that margins on a book page are not always equal.
Choosing margin sizes
There is no single correct margin. The sizes depend on the medium, how the page is held or bound, and how much white space the design wants.
| Situation | Typical margin behaviour | Reason |
|---|---|---|
| Business report, A4 | 15 to 25 mm on all sides | Safe for office printers, which often cannot print to the edge |
| Book or magazine spread | Wider outer and bottom margins, narrower inner | Thumbs sit at the outer and bottom edges, and the inner edge is partly lost to binding |
| Poster | Small margins relative to page size | Content should fill the page from a distance |
| Web page | Fluid side padding, often 1 to 5% of the viewport | The reader's window size is unknown |
| Mobile screen | 16 to 24 px | Gives enough room to avoid accidental edge touches |
Three rules of thumb hold up well.
- Keep margins at least as large as the gutter. If the margin is smaller than the gutter, the edge of the content looks cramped compared with the space inside it.
- Make margins consistent across a document. Switching margins between pages makes headings and images jump.
- Check the printer's limits. Office and desktop printers usually need a non-printing border, often 3 to 6 mm. Commercial print needs a safe zone inside the trim, but that belongs to the print chapter.
Choosing gutter sizes
The gutter must be wide enough to separate columns clearly and narrow enough not to break the page into disconnected strips. A common starting point is a gutter close to the line height of your body text, or one to two times the type size.
For example, with 10 pt text on 12 pt leading, a gutter of 12 pt (about 4.2 mm) is a sensible start. Wider gutters suit larger type and loosely set layouts. Tight gutters suit dense material such as newspapers, where every column counts.
Test the gutter by looking at two justified columns side by side. If the eye drifts across the gap and reads a line from the wrong column, the gutter is too narrow. If the columns look like separate objects with nothing joining them, it is too wide.
Gutters take space from columns
Every gutter you add reduces the width available for columns. With n columns there are n − 1 gutters. The formula from the plan is:
column width = (page width − 2 × margin − (n − 1) × gutter) / n
The script below computes the column width and also reports what share of the live area the gutters occupy.
def column_width(page_width, margin, gutter, columns):
"""Width of one column when both side margins are equal."""
usable = page_width - 2 * margin
return (usable - (columns - 1) * gutter) / columns
def gutter_share(page_width, margin, gutter, columns):
"""Fraction of the live area taken up by gutters."""
usable = page_width - 2 * margin
return (columns - 1) * gutter / usable
# A4 portrait is 210 mm wide, with 20 mm margins and 5 mm gutters
for columns in (4, 12):
width = column_width(210, 20, 5, columns)
share = gutter_share(210, 20, 5, columns)
print(f"{columns:>2} columns: {width:.2f} mm each, gutters take {share:.1%}")The output is:
4 columns: 38.75 mm each, gutters take 8.8%
12 columns: 9.58 mm each, gutters take 32.4%The 12-column grid on a narrow page loses almost a third of its live area to gutters, and each column is only 9.58 mm wide. This is why a 12-column grid is usually spanned in groups (for example three columns for a quarter-width block) rather than used one column at a time. If a single column becomes too narrow to be useful, reduce the column count or the gutter before you reduce the margin.
Equal and unequal margins
Equal margins are simple and work for single sheets, slides and most web layouts. Unequal margins give a more considered look and are common in books.
- A larger bottom margin than top margin makes a page feel grounded, because the content seems to sit slightly above the centre.
- A larger outer margin than inner margin on a spread leaves room for the thumb and balances the facing pages visually.
- A wide margin on one side can hold notes, captions or pull quotes, which turns the margin into a working column.
Unequal margins change the column calculation. Use the left and right margin values separately:
usable width = page width − left margin − right margin
For a single page of a mirrored spread the left and right margins swap on facing pages, so the live area stays the same width.
Row gutters
Gutters run in both directions. In a multi-column grid, the main gutter is between columns. In a modular grid, the same idea applies between rows, and the row gutter is usually set to the same value as the column gutter. That keeps the white space around every module equal, so a block of four images looks evenly spaced.
If text is aligned to a baseline grid, a row gutter that is a whole multiple of the baseline unit keeps lines aligned across modules. The baseline grid chapter covers this in detail.
Margins and gutters on screen
On screen the page width is not fixed. The margin becomes padding at the edges of the layout container, and the gutter becomes the gap between grid tracks. The CSS below uses a fluid margin and a fixed gutter.
.page {
padding-inline: clamp(1rem, 5vw, 3rem);
max-width: 72rem;
margin-inline: auto;
}
.grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
column-gap: 1.5rem;
row-gap: 1.5rem;
}Here clamp() keeps the side margin between 1rem and 3rem and lets it grow with the viewport at 5vw. The max-width on .page stops the content from stretching on very wide screens. The column-gap and row-gap set the gutter in both directions, using the same value so spacing stays even.
Some common errors on screen:
- Putting margins on every column instead of using
gap. This doubles the space at the edges of the grid and makes the first and last columns misaligned. - Forgetting the margin on small screens. Content that touches the edge of a phone looks broken. Always keep a minimum margin.
- Using the same gutter at every width. A gutter of 1.5rem suits a 12-column desktop layout but takes too much from a 4-column phone layout. Responsive grids often reduce the gutter at small widths.
Checking your values
Before moving on to column grids, review a layout against this list.
- Are the margins at least as large as the gutter?
- Does the column width, after gutters, still fit the type size and line length you chose?
- Is the gutter wide enough to separate columns without making them look unrelated?
- For print, do the margins respect the printer's non-printing area and the binding?
- For screens, does the margin stay above a minimum value at the smallest viewport?
Exercise
A page is 297 mm wide (A4 landscape). It has 15 mm side margins, a 6 mm gutter and 6 columns. What is the column width, and what share of the live area do the gutters take up?
Show answer
The usable width is 297 − 2 × 15 = 267 mm. There are 5 gutters, so gutters take 5 × 6 = 30 mm. The columns share 267 − 30 = 237 mm, so each column is 237 / 6 = 39.5 mm wide. The gutters take 30 / 267 = about 11.2% of the live area.
Exercise
A designer adds margin-inline: 0.75rem to every column in a CSS Grid layout that already has column-gap: 1.5rem. What problem does this cause, and what is the fix?
Show answer
Each column now has 1.5rem of extra space between neighbours on top of the gap, so the visible gutter is 3rem. The first and last columns also have 0.75rem of extra space at the edges, so they do not line up with the page margin. The fix is to remove the column margins and control all spacing with column-gap on the grid and padding on the container.