An arrangement for feeding animals on a farm comprises an on-farm analyzer device (13; 17) provided for performing measurements on samples of individual ingredients of a food mixture before the different ingredients are mixed together; and a feeding device (14; 18) provided for feeding animals with a food mixture, which is mixed based on the result of the measurements of the samples of the individual ingredients.