Image Grid Layout
Rows, cell size and total height for an N-image grid.
Resulttinycalc.net
cell = (width − (cols − 1) × gap) ÷ cols · rows = ⌈images ÷ cols⌉
How it works
Each cell gets the container width minus the gaps, divided by the column count: (1200 − 3 × 16) ÷ 4 = 288 px for a 4-column grid. 23 images then need ⌈23 ÷ 4⌉ = 6 rows, with 3 images in the last one. Handy for planning galleries, mood boards and contact sheets.
Related calculators
Pixels → Print SizeHow large a photo can be printed at a given DPI, in cm and inches.Aspect-Ratio ResizeResize an image to a new width while keeping its aspect ratio.MegapixelsMegapixels, total pixel count and aspect ratio from a resolution.Uncompressed Bitmap SizeRaw in-memory size of an image from resolution and bit depth.Screen PPIPixel density of a display from its resolution and diagonal size.Video File SizeEstimate a video's file size from bitrate and duration.