The present invention relates to a composition containing medium-chain fatty acids or salts or mono-, di-, triglycerides, esters or amide derivatives of medium-chain fatty acids for use as a feed additive for animals, in an optimized ratio. In a second and third aspect, the invention concerns an animal feed, supplemented with the composition containing the medium-chain fatty acids or derivatives and a method for feeding animals with the animal feed.