Work out gallery wall layout instantly with clear inputs, formula shown and shareable results.
The arrangement is frames times frame width plus one gap fewer than the number of frames, and centring leaves half the leftover width at each side. The frames-minus-one gap rule is what makes a five frame row 32 cm narrower than a naive calculation with five gaps.
Arrangement width
width = frames x frame width + (frames - 1) x gap
Side margin
margin = (wall width - arrangement width) / 2
width = frames x frame width + (frames - 1) x gap. The arrangement is frames times frame width plus one gap fewer than the number of frames, and centring leaves half the leftover width at each side.
The frames-minus-one gap rule is what makes a five frame row 32 cm narrower than a naive calculation with five gaps.
Enter available wall width, number of frames, width of each frame, preferred gap between frames. The defaults shown are a realistic worked example — swap in your own figures to get a result you can use.