In two patients, operated on because of gastroesophageal reflux, carbon dioxide pneumothorax developed during laparoscopic Nissen fundoplication. In both instances, decrease of lung compliance and a change of pressure-volume loop configuration, computed and illustrated with on-line spirometry, led quickly to diagnosis of this complication. We conclude that continuous spirometry is valuable as an early indicator of intraoperative pneumothorax.