Body surface electrocardiograms and electrograms recorded from the surfaces of the heart are the basis for diagnosis and treatment of cardiac electrophysiological disorders and arrhythmias. Given recent advances in understanding the molecular mechanisms of arrhythmia, it is important to relate these electrocardiographic waveforms to cellular electrophysiological processes. This modeling study establishes the following principles: (1) voltage gradients created by heterogeneities of the slow-delayed rectifier (I(Ks)) and transient outward (I(to)) potassium current inscribe the T wave and J wave, respectively; T-wave polarity and width are strongly influenced by the degree of intercellular coupling through gap-junctions. (2) Changes in [K+]o modulate the T wave through their effect on the rapid-delayed rectifier, I(Kr). (3) Alterations of I(Ks), I(Kr), and I(Na) (fast sodium current) in long-QT syndrome (LQT1, LQT2, and LQT3, respectively) are reflected in characteristic QT-interval and T-wave changes; LQT1 prolongs QT without widening the T wave. (4) Accelerated inactivation of I(Na) on the background of large epicardial I(to) results in ST elevation (Brugada phenotype) that reflects the degree of severity. (5) Activation of the ATP-sensitive potassium current, I(K(ATP)), is sufficient to cause ST elevation during acute ischemia. These principles provide a mechanistic cellular basis for interpretation of electrocardiographic waveforms.