Photo grid size calculator

Know exactly how big each photo in a grid will be. Pick a canvas such as 1080 × 1350, set the columns, rows, gap and margin, and get the cell size, its shape and every position.

Free, no sign-upRuns in your browser
Canvas
Grid
Spacing
Each cell–
Cells–
Leftover–
Cell ratio–

Cell positions
CellXY

How to use it

Size a photo grid in three steps.

  1. Choose the canvas

    Pick a preset such as 1:1, 4:5 or 9:16, or type any width and height in pixels.

  2. Set the grid

    Enter the number of columns and rows, the gap between photos and the margin around the edge.

  3. Read the cells

    See the size and shape of each cell, any leftover pixels and, if you need them, the exact position of every cell.

How it works

How the cells in a grid are sized.

The calculator starts with the whole canvas, takes away the outer margin on both sides and the gaps between the photos, and shares what is left equally between the cells. There is always one gap fewer than there are columns or rows.

For example, a 1080 × 1080 px square with a 3 × 3 grid and a 6 px gap gives nine cells of exactly 356 × 356 px: the two gaps take 12 px, and the remaining 1,068 px divide evenly by three.

Pixels cannot be split, so when the space does not divide evenly each cell is rounded down and the calculator shows the leftover. With a 10 px gap in the same grid, each cell is 353 px and 1 px is left over. The positions table shares the leftover between the outer margins so the grid stays centred.

The cell ratio tells you how photos will be cropped. If it matches a common photo shape such as 4:5 or 2:3, photos in that shape fit without cropping.

SnapLayout

Make the whole collage in SnapLayout.

SnapLayout is a collage and carousel app for iPhone. Pick a layout, add your photos and export at the exact size for Instagram, TikTok or Facebook.

Download on the App Store
App Store
4.5
Read reviews →

Frequently asked questions

Take the canvas width, subtract the margin on both sides and all the gaps between columns, then divide by the number of columns. Do the same with the height and the rows. This calculator does it for you and rounds to whole pixels.
Use 1080 × 1350 px (4:5) for the most space in the feed, 1080 × 1080 px for a square post or 1080 × 1920 px for a Story or Reel.
A cell can only be a whole number of pixels wide. If the space does not divide evenly, a few pixels remain. Add them to the margin, or change the gap by a pixel or two until the leftover disappears.
Yes. It is free, needs no account and runs entirely in your browser.