Unit Converters

CSS Grid Column Width Calculator

col = (width − gap × (n − 1)) / n.

Column = (container − gap × (columns − 1)) / columns. A 12-column 1200 px grid with 16 px gutters is 84 px columns. Bootstrap’s 30 px gutter era is why old comps look airy.

Container width

px → px

85.33 px

This is a fixed grid. CSS Grid with fr units will still flex.

Container
1,200 px
Columns
12
Gap
16 px

Plain-English guide

Terms & how it works

Confused by a field? Read the short definitions here while you use the tool.

  • Container width

    The “Container width” value used in this tool’s formula. Adjust it to see results update live.

  • Columns

    The “Columns” value used in this tool’s formula. Adjust it to see results update live.

  • Gap (px)

    The “Gap (px)” value used in this tool’s formula. Adjust it to see results update live.

How this calculator works

Column = (container − gap × (columns − 1)) / columns. A 12-column 1200 px grid with 16 px gutters is 84 px columns. Bootstrap’s 30 px gutter era is why old comps look airy. col = (width − gap × (n − 1)) / n. Example: 1200 px, 12 cols, 16 px gap → 84 px per column. 960 / 12 / 20 gap → 65 px.

col = (width − gap × (n − 1)) / n.

Example: 1200 px, 12 cols, 16 px gap → 84 px per column. 960 / 12 / 20 gap → 65 px.

When to use this Grid Column Width

Common use cases

  • Column = (container − gap × (columns − 1)) / columns. A 12-column 1200 px grid with 16 px gutters is 84 px columns. Bootstrap’s 30 px gutter era is why old comps look airy.
  • Sanity-check with this case: 1200 px, 12 cols, 16 px gap → 84 px per column. 960 / 12 / 20 gap → 65 px.
  • The relationship is: col = (width − gap × (n − 1)) / n.

Localized examples

  • Unit Converters: the example on this page uses the same formula as the widget.

What you get

  • Fields: Container width, Columns, Gap (px)
  • col = (width − gap × (n − 1)) / n.
  • Example on the page: 1200 px, 12 cols, 16 px gap → 84 px per column. 960 / 12 / 20 gap → 65 px.

How to Convert Grid Column Width Step-by-Step

  1. 1Enter Container width, Columns, Gap (px). Use the values you have, not a catalog average, unless that is all you know.
  2. 2col = (width − gap × (n − 1)) / n.
  3. 3Worked case: 1200 px, 12 cols, 16 px gap → 84 px per column. 960 / 12 / 20 gap → 65 px.
  4. 4Check which dictionary the other person is using — US or UK, decimal or 1,024 — then trust the number.

Governing formula

col = (width − gap × (n − 1)) / n.

1200 px, 12 cols, 16 px gap → 84 px per column. 960 / 12 / 20 gap → 65 px.

Example: set Container width = 1,200, Columns = 12, Gap (px) = 16, then read the result.

Variable definitions

  • value

    Container width

    The “Container width” field. Default 1200; typical range 200–4000.

  • cols

    Columns

    The “Columns” field. Default 12; typical range 1–24.

  • gap

    Gap (px)

    The “Gap (px)” field. Default 16; typical range 0–80.

  • The conversion (col = (width − gap × (n − 1)) / n.) does not pick US vs UK gallons, SI vs binary megabytes, or Mach at altitude for you. Read the footnote on the page.
  • Nothing here is uploaded for the calculation itself.

Frequently Asked Questions

fr shares leftover space after gaps. This is the fixed-px cousin.

Unit Converters

Get a note when we add a planner

Occasional email when something new is worth opening. We never share your address. Unsubscribe anytime.

Community

Reviews & Ratings

See what others think about this tool, then leave your own rating to help improve CalculioHub.

4.8

out of 5.0

4 reviews

Leave a review

Your rating

Aisha K.

Mar 12, 2026

Clean layout and the results update instantly. Exactly what I needed for a quick planning check.

Daniel R.

Feb 28, 2026

Very usable on mobile. Would love a save/export option later, but the math feels solid.

Priya S.

Feb 3, 2026

The FAQ section answered my questions before I even had to search. Smooth dark mode too.

Marcus L.

Jan 19, 2026

Simple inputs, clear outputs. This replaced three bookmarks I used to juggle.

Improve this tool

Suggestion Box

Share an idea, report a bug, or send general feedback for Grid Column Width. Your input helps shape what we build next.