A greater knowledge of the effect of management factors is required to investigate the ontogeny of abnormal behaviour in the stabled horse. A postal survey of racehorse (flat) trainers yielded information about 22 yard and management factors. The relationship of the factors to the prevalence of abnormal behaviour was analysed by logistic regression. Management factors related to the time spent in the stable showed the strongest associations with stereotypic behaviour. The risk of horses performing abnormal behaviour increased: 1) as the amount of forage fell below 6.8 kg/day, 2) when bedding types other than straw were used, 3) when the total number of horses on the yard was fewer than 75, 4) in association with box designs that minimised contact between neighbouring horses, 5) when hay, rather than other types of forage, was used.