Chronic thromboembolic pulmonary hypertension (CTEPH) represents an important differential diagnosis to idiopathic pulmonary arterial hypertension (IPAH). We hypothesised that the capillary to end-tidal carbon dioxide gradient at rest and during exercise might help differentiate CTEPH from IPAH. Patients who presented with unequivocal IPAH or CTEPH according to ventilation/perfusion scanning, pulmonary angiography, computed tomography and right heart catheterisation were included in this retrospective study and compared with healthy controls. 21 IPAH patients and 16 CTEPH patients fulfilled the inclusion criteria. Haemodynamics and peak oxygen uptake were comparable, but respiratory rates at rest and during exercise were significantly higher in CTEPH than in IPAH. End-tidal carbon dioxide was significantly lower in CTEPH versus IPAH at rest and during exercise, while capillary carbon dioxide values were similar. Correspondingly, capillary to end-tidal carbon dioxide gradients were significantly increased in CTEPH versus IPAH at rest and during exercise (median (range) 8.6 (3.0-13.7) versus 4.4 (0.9-9.0) (p<0.001) and 9.3 (3.3-13.1) versus 4.1 (0.0-8.8) mmHg (p<0.001), respectively). Although these values were closer to normal in IPAH they were still significantly elevated compared with healthy controls (2.3 (-4.8-8.1) and -1.9 (-5.7-6.2) mmHg, respectively). Capillary to end-tidal carbon dioxide gradients may help to distinguish CTEPH from IPAH based on resting and exercise values.