Spontaneous depolarisation and repolarisation due to ionic exchange are the main properties of smooth muscle cells in the human stomach. This change in the distribution of electrical charge results in the creation of an electric field. The field manifests itself as a potential difference (biovoltage), recorded both in vitro and in vivo and known as gastric electrical activity (GEA). The aim of the paper is to describe a computer model of this electric phenomenon, considering all anatomical and electrophysiological particularities of the stomach, and to simulate real in vivo experiments with a computer. In the proposed model, the depolarised smooth muscle cells are represented as organised electrical dipoles distributed with known density in an annular band that moves distally with increasing velocity. Computer simulations of in vivo experiments using this model not only give the waveform, duration, amplitude and frequency of GEA, but they also represent the phase lag between different channels, the difference in propagation velocity along greater and lesser curvatures, and the electric coupling between different parts of the stomach. The effects of changed electrode configuration, surface area and distance from the stomach are described. Mathematical modelling is done in spherical co-ordinates, and the simulations are performed in a specially designed user-friendly IBM PC environment. Some of the unsolved problems in cutaneous electrogastrography are also discussed.