Electrolyte changes in right atrial and skeletal muscle pre- intra- and postoperatively, and their relationship to the development of postoperative atrial fibrillation or flutter were evaluated in 31 patients with coronary artery bypass grafting (CABG). Such postoperative arrhythmias occurred in 14 patients (45%). Before CABG the skeletal muscle potassium concentration was lower in these patients than in the others: median 261.4 (range 148.2-329.5) vs 298.6 (167.1-416.4) mumol/g dry weight, p = 0.017. The right atrial potassium concentration was normal, but sodium levels were higher in the patients with, than in those without postoperative arrhythmias: median 340.3 (263.7-454.9) vs 296.3 (203.9-355.0) mumol/g dry weight, p = 0.008, indicating disturbed transmembrane electrolyte transfer. During CABG the potassium levels fell and sodium increased in both right atrium and skeletal muscle, and on postoperative day 2 the potassium content in skeletal muscle was not yet restored. Magnesium levels showed no changes in right atrium or skeletal muscle, but serum magnesium declined postoperatively. As the observed electrolyte derangements may be important in the development of postoperative arrhythmias, concomitant potassium and magnesium supplement postoperatively may be beneficial in restoring cellular potassium concentration.