Background. Although obese patients are thought to be susceptible to postoperative pulmonary complications, there are only limited data on the relationship between obesity and lung volumes after surgery. We studied how surgery and obesity affect lung volumes measured by spirometry. Methods. We prospectively studied 161 patients having either breast surgery (Group A, n=80) or lower abdominal laparotomy (Group B, n=81). Premedication and general anaesthesia were standardized. Spirometry was measured with the patient supine, in a 30° head‐up position. We measured vital capacity (VC), forced vital capacity, peak expiratory flow and forced expiratory volume in 1 s at preoperative assessment (baseline), after premedication (before induction of anaesthesia) and 10-20 min, 1 h and 3 h after extubation. Results. Baseline spirometric values were all within the normal range. All perioperative values decreased significantly with increasing body mass index (BMI). The greatest reduction of mean VC (expressed as percentage of baseline values) occurred after extubation, and was more marked after laparotomy than after breast surgery (23 (sd 14)% vs 20 (14)%). Considering patients according to BMI (30), VC decreased after surgery by 12 (7)%, 24 (8)% and 40 (10)%, respectively. VC recovered more rapidly in Group A. Conclusion. Postoperative reduction in spirometric volumes was related to BMI. Obesity had more effect on VC than the site of surgery. Br J Anaesth 2004; 92: 202-