In order to estimate the effects of automatic milking (AM) on milk production, test-day data from the Dutch DHIA were used, consisting of 2,071,662 test-day milkings from 306 herds. Half of these herds were milking with an AM system and the other half were randomly selected control farms, included to correct for the trend in yearly milk production due to genetic and management progress. The test-day milk production data were corrected for parity, stage of lactation, and season of calving. Milk production increased by, on average, 2% after introduction of an AM-system. Without correction of a year effect, the effect of introduction seemed to be 10-12%. However, a large part of this increase could be explained by a year effect. The milk production data were used in an economic linear programming model of a dairy farm. Using this model, an AM-system was not a viable investment, using the milk production data from this research and other assumptions. This means that other than purely economic factors play important roles when farmers invest in an AM-system.