An apparatus for forming stacks of products contains, between a horizontally movable row of compartments and a vertically operating feed device, a directing device which directs in each case one product into the compartment assigned thereto. The guide device is moved along synchronously with the row of compartments, and in alignment therewith, in the region of the discharge location.