Web Design & UI/UX9 min read

Carousel vs Grid Layout: When to Use a Carousel and When to Use a Grid

Use a carousel when people look at one item at a time and there are only a few. Use a grid when they scan many items to pick one. The same six stays built both ways, three mistakes side by side, the spacing values to copy and a table for ten common screens.

By Boone
XLinkedIn
Carousel vs Grid Layout: When to Use a Carousel and When to Use a Grid

A carousel and a grid both show a set of items, and teams often pick the carousel because it looks tidy and saves space. Below: the question that decides it, the same six stays built both ways, three mistakes side by side, the spacing to copy and a table for ten common screens.

The one question: one at a time, or many at once?

Ask what the person does with the set. If they glance at a few items in passing, one row of picks between other things on the page, a carousel gives them a taste without pushing the rest of the page down. If the items are the reason they came, a category, a shop or search results, they need to see many at once and compare, and every swipe hides what they just saw.

Nielsen Norman Group's testing on phones shows why the count matters. Most people stop after viewing three or four items in a carousel, and its advice for a long set is direct: "If you have a high number of items, use a list view instead and allow people to directly access any of the items on the page."

A Top picks in Lisbon row with two stay cards, Casa Rio at $118 and Mira Loft at $96, and a third card cut off at the right edge, above an Explore by area section with neighborhood chips

A carousel is one row of items that moves sideways, one swipe at a time. Above, it takes one strip of the page, and Explore by area still sits right under it. A carousel is right when:

  • People look at one item at a time. Each card gets a moment on its own, so a big photo can do the selling.
  • There are only a few, five at most. NN/g's carousel guideline is five frames or fewer, since people rarely engage with more.
  • Space is tight. One row of best sellers on a busy home page, between the search bar and the next section.

Two habits make it work. Let the next card peek in from the edge, so people can see there is more. And let the row stand still: NN/g's rule on moving carousels is that one "should show a new panel only when users ask for it. Otherwise, it should stand still."

Allbirds runs its mobile home page "Best sellers" this way: product cards 290 px wide, 10 px apart and 10 px from the edge, so the next card peeks in about 80 px on a 390 px screen.

Where a carousel fails: anything people need to compare. Item five is four swipes away, and by then item one is gone.

A grid: every item on screen

The same six Lisbon stays as a grid of three across and two rows, each with a photo, the name and the price, all visible at once

A grid lays the items out in rows and columns, so the page scrolls down instead of sideways. Above are the same six stays. The carousel showed two and a half of them; the grid shows all six. A grid is right when:

  • People scan many items to pick one. The eye jumps across rows and lands on the one that fits.
  • Every item should show without a swipe. Nothing hides behind an arrow or a dot.
  • The items are the page. A category, a shop, search results: there is nothing else to save space for.

The same Allbirds site switches to a grid where the products are the page: its mobile collection pages run two across with 10 px gaps.

Where a grid fails: a few picks dropped into a busy page. Four products in two rows take the whole screen and push everything else below the fold.

Mistake 1: dots instead of a peek

Wrong: two cards fit exactly, five dots below

A Best sellers row where two stay cards end exactly at the screen edge, with five small dots under them

Right: the next card peeks in from the edge

The same Best sellers row with one large card and the next card cut off at the right edge

When the cards end exactly at the edge, the row looks finished. The only hint that more exists is a line of small dots, and NN/g calls dots "generally weak signifiers." A card cut off at the edge is a much stronger cue: it looks continued, so people swipe. On a 420 px wide screen, our version keeps 16 px at the edge, cards 314 px wide and 10 px apart, which leaves the next card peeking in 80 px.

Wrong: 12 results, one at a time

A Stays in Lisbon search with 12 results shown as one large card and a 1 of 12 counter with arrows

Right: 12 results in a grid

The same 12 results as a grid of two across, with six stays visible and more below

Twelve stays in a carousel means eleven swipes to see them all, and most people will stop at three or four. The search looks thinner than it is, and the stay that fits might be number nine. As a grid, six results show at once, the prices sit side by side, and the rest are one scroll down. Search results are the clearest case of items that are the page.

Mistake 3: a grid for four picks on a busy home screen

Wrong: four picks fill the screen

A recipe app home where four Tonight's picks in a two by two grid fill the screen and push the next section to the bottom edge

Right: one row, the page continues

The same home with Tonight's picks as one carousel row, followed by Quick, under 20 min and Browse by dish

Here the mistake runs the other way. A home screen has several jobs: search, tonight's picks, quick recipes, browsing by dish.

As a grid, four picks take the whole screen and the rest of the home disappears below it. As one carousel row, the same picks get a strip with the third one peeking in, and the quick recipe and dish chips are still in view. Four items is a few, and people glance at them in passing: carousel.

Here are ten common screens and the layout each one needs.

ScreenPickWhy
Best sellers on a shop home pageCarouselA few picks, one row on a busy page
Recently viewed itemsCarouselA short row people glance at in passing
Related products under a productCarouselA few extras below the main item
Photos of one product or stayCarouselOne photo at a time, full width
Onboarding screensCarouselThree or four steps, one at a time
Category page in a shopGridThe items are the page
Search results with photosGridMany to scan and compare
A photo gallery or albumGridPeople scan thumbnails to pick one
Wishlist or saved itemsGridPeople compare what they kept
Templates or themes to choose fromGridMany options, picked side by side

A useful test when a screen sits between the two: count the items and ask how many people should see without swiping. Five or fewer, seen in passing: carousel. More, or the whole point of the page: grid.

The values to copy

LayoutWindowEdgeCardGapPeek
Allbirds best sellers carousel390 px10 px290 px10 px80 px
Our peek row in mistake 1420 px16 px314 px10 px80 px
Allbirds collection grid390 px2 across10 px

In CSS, a carousel with a peek is a scroll-snap row. On the 420 px screen the card is the screen minus the edge, the gap and the peek: 420 - 16 - 10 - 80 = 314 px. Inside a row with 16 px padding on both sides, 100% is only 388 px, and the peek runs on into the right padding, so the code takes 74 px off 100%, not 106. A grid is a single line.

css
.carousel { display: flex; gap: 10px; padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; } .carousel > * { /* 100% = 420 - 2 x 16 padding = 388 px. Card = 388 + 16 right padding - 10 gap - 80 peek = 314 px */ flex: 0 0 calc(100% - 74px); scroll-snap-align: start; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

Keep the carousel still: no autoplay timer. For when a grid gets long, read pagination vs infinite scroll. For how each item should look, read card vs list and card UI design fixes.

FAQ

A carousel is one row of items that scrolls sideways, showing one or two at a time. A grid lays items out in rows and columns that scroll down, so many show at once without a swipe.

Use a carousel when people look at one item at a time and there are only a few, five at most, and space is tight, like one row of best sellers on a busy home page.

A grid is better when people scan many items to pick one, or when the items are the whole page, like a category, a shop or search results. Every item shows without a swipe.

Five or fewer. Nielsen Norman Group found most people stop after viewing three or four items in a mobile carousel, and its carousel guidelines recommend five frames at most.

A peek. A card cut off at the edge tells people there is more to swipe, while NN/g calls dots weak signifiers. Leave about 80 px of the next card showing on a phone.

Sources

More from Brainy Papers

Keep reading