Grid Layout Calculator
Calculate column widths, gutters, and margins for a design grid.
About this calculator
Column Width is what's left of the canvas once margins and gutters are subtracted, divided evenly across every column. The calculator first removes Margin Width from both sides of Canvas Width to get the usable area, then removes space for every gutter between columns -- Number of Columns minus one gutters total -- before dividing the remainder by Number of Columns. That means Column Width rises with a wider Canvas Width, falls as Margin Width or Gutter Width grows, and also falls as you add more columns to the same canvas, since each extra column both claims a smaller share of the usable width and adds another gutter that eats into it.
Content Width re-derives the total space the grid actually occupies -- all columns plus all gutters -- which should match the usable width the calculator started from, aside from rounding. Half Column Width and 2-Column Span are just Column Width scaled for common layout patterns: sizing an element to half a column, or spanning two columns plus the gutter between them, both frequent needs when placing images or headlines that don't align to a single column boundary. Because gutter space is subtracted once per gutter (not per column), a grid with more columns always has proportionally more of its usable width consumed by gutters rather than content.
Inputs
Results
Column Width
90 px
How to Use This Calculator
- Enter the Canvas Width in pixels and the Number of Columns for your grid system.
- Enter the Gutter Width (space between columns) and Margin Width (outer left/right margins).
- Review the Column Width in pixels — the core unit of your grid.
- Check Content Width, Half-Column Width, and 2-Column Span for layout planning.
- Use these values to set guides in your design tool (Figma, Sketch, Adobe XD, or Illustrator).
How the result changes with Canvas Width
| Canvas Width | Column Width |
|---|---|
| 720 | 30 px |
| 1,080 | 60 px |
| 2,160 | 150 px |
| 3,600 | 270 px |
What each input means
- Canvas Width
- Total width of your design canvas or viewport.
- Number of Columns
- How many columns in the grid system.
- Gutter Width
- Space between each column.
- Margin Width
- Left and right margin outside the grid.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersCanvas Width = 1440, Number of Columns = 12, Gutter Width = 24, Margin Width = 48 = 4 input(s) provided
- Calculate Column WidthColumn Width90 = 90
- Calculate Content WidthContent Width1344 = 1344
- Calculate Number of GuttersNumber of Gutters11 = 11
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Does adding more columns always make each column narrower?
Yes, for a fixed Canvas Width, Margin Width, and Gutter Width. More columns both divide the same usable space into more pieces and add another gutter for every extra column, so Column Width shrinks on both counts as Number of Columns increases.
Why is Content Width sometimes slightly different from Canvas Width minus margins?
Column Width is rounded to two decimal places before Content Width re-multiplies it back out across every column and gutter, so small rounding differences of a fraction of a pixel can appear. The underlying math is exact; only the displayed, rounded figures can drift by a hair.
How does Margin Width affect Column Width?
Margin Width is subtracted from both sides of Canvas Width before any column math happens, so it shrinks the usable width the grid has to work with. A wider margin always produces a narrower Column Width for the same Canvas Width, Number of Columns, and Gutter Width.
What is 2-Column Span for?
It's the width an element would need to span two adjacent columns plus the gutter between them -- useful for images, pull quotes, or headlines that deliberately break out of a single-column measure. It equals twice Column Width plus one Gutter Width.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Bleed & Trim Calculator
Calculate document dimensions including bleed, trim, and safe area margins.
Graphic DesignImage Crop Calculator
Calculate crop dimensions to fit a target aspect ratio while maximizing area.
ComicsComic Page Layout Calculator
Calculate panel dimensions, counts, and page utilization based on page format, grid layout, gutter sizes, and pacing style.
Finish CarpentryCoffered Ceiling Calculator
Grid dimensions and material from ceiling size.
Graphic DesignColor Mode Converter
Convert RGB color values to CMYK and HSL representations.
More in Creative, Media & Design.