A computer model comprising light reactions in PS II and PS I, electron-proton transport reactions in mesophyll and bundle sheath chloroplasts, all enzymatic reactions and most of the known regulatory functions of NADP-ME type C(4) photosynthesis has been developed as a system of differential budget equations for intermediate compounds. Rate-equations were designed on principles of multisubstrate-multiproduct enzyme kinetics. Some of the 275 constants needed (DeltaG(0)' and K (m) values) were available from literature and others (V (m)) were estimated from reported rates and pool sizes. The model provided good simulations for rates of photosynthesis and pool sizes of intermediates under varying light, CO(2) and O(2). A basic novelty of the model is coupling of NADPH production via NADP-ME with ATP production and regulation of the C(3) cycle in bundle sheath chloroplasts. The functional range of the ATP/NADPH ratio in bundle sheath chloroplasts extends from 1.5 to 2.1, being energetically most efficient around 2. In the presence of such stoichiometry, the CO(2) concentrating function can be explained on the basis of two processes: (a) extra ATP consumption for starch and protein synthesis in bundle sheath leads to a faster NADPH and CO(2) import compared with CO(2) fixation in bundle sheath, and (b) the residual photorespiratory activity consumes RuBP by oxygenation, NADPH and ATP and causes the imported CO(2) to accumulate in bundle sheath cells. As a wider application, the model may be used for predicting results of genetic engineering of plants.