CSS Grid

Calculate CSS Grid instantly with the exact formula and a worked example.

CSS Grid

Columns
Container, px
Gap, px
Column width
85.3333px
Calculate CSS Grid instantly with the exact formula and a worked example.

More about: CSS Grid

What it calculates

The “CSS Grid” calculator computes Column width in px from 3 parameters: columns, container, px, gap, px.

Standard IT calculations for developers and sysadmins.

Example calculation

With parameters Columns = 12, Container, px = 1,200, Gap, px = 16 the result is 85.33 px.

How to use

  1. Enter columns, container, px and gap, px — each field above is adjustable with a slider.
  2. Column width (px) is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

How is CSS Grid calculated?
The CSS Grid calculator computes Column width (in px) from columns, container, px, gap, px. Enter your values above and the exact formula is applied instantly; a worked example with real numbers is shown below.
Is the CSS Grid calculator free?
Yes. It is completely free, needs no signup, runs entirely in your browser, and sends no data to any server.

More calculators in this category

Explore related free tools

Edit Distance (Levenshtein)Jaro-Winkler DistanceCosine SimilarityTF-IDFSilhouette ScoreCable Length (CAT5e/6)CSS Cubic BezierCSS Border RadiusColor Tint / ShadeLighten / DarkenServer Response TimeImage Dimension for Web