Skip to main content
Calcimator

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

px
px
px

Results

Column Width

90 px

Content Width1,344 px
Number of Gutters11
Half Column Width45 px
2-Column Span204 px
How to Use This Calculator
  1. Enter the Canvas Width in pixels and the Number of Columns for your grid system.
  2. Enter the Gutter Width (space between columns) and Margin Width (outer left/right margins).
  3. Review the Column Width in pixels — the core unit of your grid.
  4. Check Content Width, Half-Column Width, and 2-Column Span for layout planning.
  5. Use these values to set guides in your design tool (Figma, Sketch, Adobe XD, or Illustrator).

How the result changes with Canvas Width

Canvas WidthColumn Width
72030 px
1,08060 px
2,160150 px
3,600270 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

  1. Identify Input Parameters
    4 parameters
    Canvas Width = 1440, Number of Columns = 12, Gutter Width = 24, Margin Width = 48 = 4 input(s) provided
  2. Calculate Column Width
    Column Width
    90 = 90
  3. Calculate Content Width
    Content Width
    1344 = 1344
  4. Calculate Number of Gutters
    Number of Gutters
    11 = 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.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Creative, Media & Design.