Grid column widths calculator

Container width includes outer margins.

Your inputs

Use the units shown.

Column width (px)
78.33333333

Your calculation
How is this calculated?

Container width includes outer margins. Negative available width is rejected.

  • Column width (px) = (Container width (px)-2 × Margin each side (px)-(Columns-1) × Gutter (px)) ÷ Columns

Try an example

Worked example

Column width (px): 78.33333333

Inputs
  • Container width (px): 1200
  • Margin each side (px): 20
  • Columns: 12
  • Gutter (px): 20

Compare inputs

Column width (px): 78.41666667

Inputs
  • Container width (px): 1201
  • Margin each side (px): 20
  • Columns: 12
  • Gutter (px): 20
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.