How to use grid layout in Figma

Learn how to switch a Figma frame to grid layout, then set the gap between columns and rows so its content sits in an even grid on the canvas.

Quick answer

Select a frame in the Layers panel, then choose Grid under Flow in the Layout section of the right sidebar. Figma arranges the frame's content in rows and columns. Adjust the Gap between columns and Gap between rows fields to space items evenly, and check the result on the canvas.

Steps at a glance

  1. Select the frame in the Layers panel
  2. Choose Grid in the Layout section
  3. Set the gap between columns
  4. Set the gap between rows
  5. Check the grid on the canvas

Interactive demo

Loading demo…

Summary

Grid layout makes a frame arrange its content in rows and columns instead of one line. It keeps cards, thumbnails, and tiles evenly spaced without placing each one by hand.

Step-by-step guide

  1. Step 1

    Select the frame

    Click Frame 1 in the Layers panel. The right sidebar shows the frame's settings, including the Layout section.

  2. Step 2

    Choose the Grid layout

    In the Layout section, find the Flow options and select Grid. The frame switches from a freeform layout to a grid.

  3. Step 3

    Set the gap between columns

    Click the Gap between columns field in the Auto layout section, type 24, and press Enter. The columns move apart on the canvas.

  4. Step 4

    Set the gap between rows

    Click the Gap between rows field, type 24, and press Enter. The rows now match the column spacing.

  5. Step 5

    Check the grid on the canvas

    Click Frame 1 again and look at the canvas. The frame's content now sits in an even grid.

Why this matters

You are building a card gallery or pricing table and keep nudging items into place by hand. Grid layout lays them out in rows and columns for you, so spacing stays even when you change the gap values.

Frequently asked questions

  • Does grid layout work on the free plan?

    Yes. The Grid option and the gap fields were available on a free plan in this capture.

  • Can I set different gaps for columns and rows?

    Yes. Gap between columns and Gap between rows are separate fields, so each can have its own value.

Create interactive demos like this one — free, no coding required.

Start for free →