Moulding device for moulding three-dimensional products from a mass of foodstuff which can be pumped, for example a meat mass, comprising: - a mould member having a moulding surface in which at least one mould cavity for moulding the products from the foodstuff is arranged, which mould cavity is provided with a mould cavity opening at the moulding surface, - a filling device for filling the mould cavity of the mould member with the foodstuff, which filling device is provided with a dispensing mouth, and a pump for displacing a volume of the foodstuff from the dispensing mouth, wherein the mould cavity opening of the mould cavity of the mould member and the dispensing mouth of the filling device can be moved with respect to one another along a movement path by a drive device, and wherein the dispensing mouth and the mould cavity opening each, viewed in the direction of the movement path, comprise a front edge and a rear edge which is situated at a fixed distance thereof, and wherein the distance between the front edge and the rear edge of the dispensing mouth in said direction is smaller than the distance between the front edge and the rear edge of the mould cavity opening in said direction, characterized in that the moulding device is provided with: - a position-determining device, for example a position sensor, for determining and/or detecting the position of the front edge of the mould cavity opening of the mould cavity with respect to the front edge of the dispensing mouth of the filling device during movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another, and - a control unit which is connected to the position-determining device and to the pump, which control unit is configured to control the pump on the basis of the position-determining device during the movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another such that the pump substantially does not transfer any foodstuff from the dispensing mouth into the mould cavity from a mutual position of the mould cavity opening and the dispensing mouth in which the front edge of the mould cavity opening and the front edge of the dispensing mouth are aligned with respect to each other and the mould cavity opening and the dispensing mouth meet/touch each other and/or start to partly overlap each other up to a mutual initial filling position of the mould cavity opening and the dispensing mouth in which the front edge of the mould cavity opening and the front edge of the dispensing mouth have been moved past each other over a predetermined distance which has been input into the control unit and the mould cavity opening and the dispensing mouth partly overlap each other, and the pump displaces a volume of the foodstuff from the dispensing mouth into the mould cavity which substantially corresponds to the volume of the mould cavity after the mutual initial filling position has been reached. - a mould member having a moulding surface in which at least one mould cavity for moulding the products from the foodstuff is arranged, which mould cavity is provided with a mould cavity opening at the moulding surface, - a filling device for filling the mould cavity of the mould member with the foodstuff, which filling device is provided with a dispensing mouth, and a pump for displacing a volume of the foodstuff from the dispensing mouth, - a position-determining device, for example a position sensor, for determining and/or detecting the position of the front edge of the mould cavity opening of the mould cavity with respect to the front edge of the dispensing mouth of the filling device during movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another, and - a control unit which is connected to the position-determining device and to the pump, which control unit is configured to control the pump on the basis of the position-determining device during the movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another such that the pump substantially does not transfer any foodstuff from the dispensing mouth into the mould cavity from a mutual position of the mould cavity opening and the dispensing mouth in which the front edge of the mould cavity opening and the front edge of the dispensing mouth are aligned with respect to each other and the mould cavity opening and the dispensing mouth meet/touch each other and/or start to partly overlap each other up to a mutual initial filling position of the mould cavity opening and the dispensing mouth in which the front edge of the mould cavity opening and the front edge of the dispensing mouth have been moved past each other over a predetermined distance which has been input into the control unit and the mould cavity opening and the dispensing mouth partly overlap each other, and the pump displaces a volume of the foodstuff from the dispensing mouth into the mould cavity which substantially corresponds to the volume of the mould cavity after the mutual initial filling position has been reached.