A system for mixing animal feed comprises a feed mixer (11) for cutting and mixing said animal feed a feed particle size measurement device (12) provided for measuring the size of feed particles in the animal feed in connection with the mixing of the animal feed and a control device (13) provided for receiving values of the measured size of feed particles in the animal feed and for automatically controlling the feed mixer based on the measured size of feed particles in the animal feed.