Use a 210 mm sheet width, 10 mm margins on both sides and 3 mm gaps. Three labels fit across the 190 mm usable width; four do not.

The worked example

Calculation
3 * 50 + 2 * 3 = 156
4 * 50 + 3 * 3 = 209
210 - 20 = 190

These are constructed inputs. Displayed decimals are rounded; they are not product measurements.

Understand the result before using it

For n columns, the occupied width is n times the label width plus n minus one internal gaps. Outer margins have already been removed, so they must not be counted again as gaps. Four 50 mm labels need 209 mm including three gaps, exceeding the available 190 mm even though four bare labels look close to the sheet width.

If label width is negotiable, solve for it instead of forcing another column. Four columns with the same gaps allow at most (190 minus 9) divided by four, or 45.25 mm per label. That limit still excludes any bleed between printed designs and cutting tolerance. Print a plain-paper outline before feeding a label sheet and compare the last column with the first. A consistent offset suggests placement; a growing offset suggests scaling or spacing. The calculation establishes the intended layout, not the printer's registration accuracy.

The boundary of this calculation

This determines columns only; row count needs height, and printer margins may be larger.

Inspect the example inputs and run the Python checks. They use only the published examples and do not read personal folders.