Genetic variations can affect drug absorption, efflux, metabolism and the ability of drugs to interact with their target proteins. In this Review, Michael Camilleri provides an overview of pharmacogenetics in for the management of non-malignant gastrointestinal diseases on the basis of data from clinical trials. The potential of pharmacogenetics in targeting therapy to the individual patient is also discussed.