Every breakpoint tutorial starts with the same table: this width for phones, that width for tablets, another for desktops. So you copy the numbers and discover your navigation still collapses into mush at an in-between width the table never mentioned, while one copied breakpoint changes nothing at all.

The table describes somebody else's layout. This guide shows a more honest method: find the widths where your own design actually breaks, sanity-check them against the screens your visitors really use, and turn them into finished queries with the free Media Query Builder on Ovatly.

Contents

  • Quick answer
  • Why device names make bad breakpoints
  • The method: shrink the browser until it hurts
  • Sanity-check your widths against your analytics
  • CSS pixels are not physical pixels
  • How to build the query, step by step
  • Worked example: a product grid that runs out of room
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Choose breakpoints where your layout breaks, not where a device table says a phone ends. Drag your browser window narrower and note the exact width where each part of the design stops working: short text lines, squeezing columns, wrapping navigation. Sanity-check those widths against your analytics. Then open the Media Query Builder, enter each width as a min or max value, pick a media type, and copy the finished @media block into your stylesheet.

Why device names make bad breakpoints

A breakpoint is a promise: below this width, the layout changes in this specific way. Device names cannot keep that promise, because devices refuse to stay in their categories. Phones ship in dozens of widths, tablets get used in both orientations, and a desktop window is whatever width the user dragged it to. A query aimed at a device is really aimed at a width, so think in widths from the start.

Two layouts at the same width can need completely different treatment. A one-column reading page might be fine everywhere, while a three-column shop grid is already uncomfortable at a width a device table calls a tablet. The width where things break is a property of your design, not of the hardware. That is why experienced designers increasingly set breakpoints where the layout itself breaks, and treat device tables as background reading.

The method: shrink the browser until it hurts

Start with your widest layout. Drag the window edge inward slowly and watch like a visitor, not the person who built it. Look for the moment something starts to feel wrong, which usually arrives before anything overflows:

  • A row of cards still fits, but each card is now too narrow to read comfortably.
  • The navigation fits, but only just, and one more menu item would break it.
  • A sidebar and content column both survive, but the text lines have become short and choppy.

When you hit that moment, note the viewport width: rounded to a clean number, that is a breakpoint candidate. Keep shrinking. Most layouts produce two or three such moments, and each becomes a query: below the first, the grid stacks; below the second, the navigation changes.

Sanity-check your widths against your analytics

Your layout tells you where breakpoints make sense; your analytics tell you whether anyone will ever meet them. If much of your traffic sits just above or below a candidate width, know that before you commit, because a careless breakpoint can split your most common screen size into two half-tested layouts. Analytics can also justify a breakpoint your layout alone would not suggest, if many visitors use noticeably wider screens. A width almost nobody visits at does not deserve its own tuned layout state.

CSS pixels are not physical pixels

One confusion poisons a lot of breakpoint decisions. Media queries do not measure physical screen pixels. They measure the viewport in CSS pixels, a unit the browser defines and scales so text stays readable on dense screens. A modern phone may have well over a thousand physical pixels across, yet report a viewport only a few hundred CSS pixels wide.

The good news: the width you noted while dragging your desktop window is directly comparable to what a phone reports, so one set of breakpoints serves both.

How to build the query, step by step

  1. Open the Media Query Builder. Start from a preset or type your own exact values.
  2. Set the width limits: a max width for a query applying below your breakpoint, a min width for one applying above it, or both for a range. Leave a field empty when that side has no limit.
  3. Add an orientation condition if the layout changes on rotation, and choose the media type: screen, or all when the block should apply everywhere.
  4. Copy the finished block, paste it into your stylesheet, and replace the placeholder comment inside with the CSS that changes at that width.
  5. Repeat for each breakpoint, then test by resizing slowly across each boundary, watching the layout switch cleanly both ways.

Worked example: a product grid that runs out of room

Say your shop page shows products in three columns beside a filter sidebar. You start shrinking the wide window. At around 1080 CSS pixels wide the sidebar and grid still fit, but the cards have narrowed until titles wrap onto three lines and prices crowd the buttons. You note 1080 as your first breakpoint: below it, the sidebar moves above the grid.

You keep shrinking. At about 700 pixels the grid becomes two cramped columns that look worse than a single clean column would. Second breakpoint: below 700, one column. In the builder, the first query is media type screen with a max width of 1080, the second the same shape with a max width of 700. Neither number came from a device table. Both came from watching your own page fail. The classic preset approach might have handed you a max width of 767 pixels instead: valid code that answers a question your layout never asked.

Limitations and honest tradeoffs

The shrink test finds breakpoints for the pages you test. A template you forget to check, a checkout or landing page, can still break at widths you never watched. Test every distinct layout, not just the homepage.

The builder assembles the query, not the design. It validates the arithmetic mistake, a minimum larger than the maximum, but it cannot tell you whether stacking your grid at 700 pixels looks good. That judgement remains yours. And breakpoints are not permanent: redesign the layout and the breaking points move.

Common mistakes

  • Copying a breakpoint table wholesale. The numbers describe another site's layout. Borrow the method, not the values.
  • Naming queries after devices. A query called tablet confuses everyone when a desktop window hits that width. Name it after what changes.
  • Setting a breakpoint where nothing changes. If the layout looks identical above and below a width, the query is dead weight.
  • Forgetting the in-between widths. Windows land everywhere, not just on tested sizes.
  • Testing only in an emulator. Device modes approximate well, but drag a real window too.

FAQs

How many breakpoints does a site need? As many as the layout genuinely needs, and no more. Many sites work with two or three: one where layouts stack, one where navigation changes, sometimes one for very wide screens. Every extra breakpoint is another layout state to design and test, so add one only when something visibly breaks without it.

Should I just use the standard phone, tablet and desktop widths? Treat those tables as a starting grid, not an answer. The preset widths are conventions gathered from popular device sizes, not official standards, and they know nothing about your layout. A blog and a dense dashboard break at completely different widths, so the numbers must come from your own design.

What is the difference between CSS pixels and my screen's resolution? Media queries measure the viewport in CSS pixels, an abstract unit the browser scales to the device. A phone with a very high physical resolution can still report a viewport a few hundred CSS pixels wide, so a breakpoint based on physical resolution would never match as expected.

Can a media query have both a minimum and a maximum width? Yes. Conditions combine with the word and, so a block can apply only inside a range, for example at least 768 CSS pixels wide and at most 1023. In the builder, fill in both the min and max width fields, and leave a field empty when that side has no limit.

Does the builder stop me from writing an impossible query? It catches the obvious arithmetic mistake: if your minimum width exceeds your maximum, the block could never match anything, and the builder flags it before you copy the code. Whether the breakpoint is a good idea for your layout remains your call.

Conclusion

Good breakpoints are found, not copied. Shrink your own layout until it hurts, note the widths, sanity-check them against your visitors' real screens, and let the Media Query Builder turn each one into a clean, ready-to-paste block. Still deciding how to structure those blocks? Our comparison of mobile-first vs desktop-first media queries covers the two ways of organising them. For more guides in this series, see our Website and Webmaster Tools guides.

References