Layout grid calculator for responsive breakpoints
Set columns, gutters, margins and breakpoints, then drag the screen width to see exactly where your layout changes and how wide a column gets. Start from Material 3, Bootstrap 5 or Carbon, and export the grid as CSS or tokens.
- Free, no sign-up
- Runs in your browser
- Saves as you go
Max width 0 means the container fills the screen. Column at start is the column width at each breakpoint's smallest screen.
How to use it
- Start from a familiar set
Pick Material 3, Bootstrap 5, Carbon or our product UI starting point.
- Drag the screen width
Watch the active breakpoint, column width and content width change as you go.
- Make it yours and export
Edit any value in the table, add or remove breakpoints, then copy the CSS or tokens.
How the column width is worked out
At any screen width, the container is the screen (or the maximum width, if smaller). Take away the two margins to get the content width, take away the gutters between columns, and divide by the number of columns:
column = (min(screen, max width) − 2 × margin − (columns − 1) × gutter) ÷ columns
When columns get narrower than about 40px, a 12-column grid stops being useful on that screen: use fewer columns at that breakpoint.
About the starting points
| Set | Breakpoints | Notes |
|---|---|---|
| Material 3 | 600, 840, 1200, 1600 | Material 3's window size classes and margins. Material 3 describes panes and margins rather than a fixed column grid, so the 4, 8 and 12 columns here follow the common convention. |
| Bootstrap 5 | 576, 768, 992, 1200, 1400 | 12 columns, 24px gutters and fixed container widths from Bootstrap's defaults. |
| Carbon 2x Grid | 672, 1056, 1312, 1584 | IBM Carbon's breakpoints, with 16 columns on large screens and 32px gutters. |
| Product UI | 600, 1024, 1440 | Our starting point for business software: 4, 8 and 12 columns, full width up to 1440px. |
Check each system's own documentation before relying on exact values; frameworks change their defaults between versions.
Breakpoints as tokens
CSS custom properties can't be used inside media queries, so breakpoints are usually shared as constants (SCSS variables, a Tailwind screens object or JSON for your token pipeline), while columns, gutters and margins can be custom properties that change at each breakpoint. The CSS export does exactly that.
Questions
How do I calculate column width?
Subtract the two margins and all the gutters from the container width, then divide by the number of columns. The calculator does this at any screen width.
What breakpoints should I use?
Four or five, set where your layout needs to change. Material 3's 600, 840, 1200 and 1600 is a sound start. Name them by size, not device.
How many columns should a grid have?
4 on phones, 8 on tablets and 12 on laptops and desktops is the most common choice. Dense enterprise tools sometimes use 16.
Can I export the grid for Tailwind?
Yes. The Tailwind export gives a screens object with your breakpoints. The CSS export adds custom properties and a .grid class.
Our two-week audit turns your real screens into a token plan, a first-components list and a rollout plan.