In Europe, three widespread extreme summer drought and heat (DH) events have occurred in 2003, 2010 and 2018. These events were comparable in magnitude but varied in their geographical distribution and biomes affected. In this study, we perform a comparative analysis of the impact of the DH events on ecosystem CO2 fluxes over Europe based on an ensemble of 11 dynamic global vegetation models (DGVMs), and the observation-based FLUXCOM product. We find that all DH events were associated with decreases in net ecosystem productivity (NEP), but the gross summer flux anomalies differ between DGVMs and FLUXCOM. At the annual scale, FLUXCOM and DGVMs indicate close to neutral or above-average land CO2 uptake in DH2003 and DH2018, due to increased productivity in spring and reduced respiration in autumn and winter compensating for less photosynthetic uptake in summer. Most DGVMs estimate lower gross primary production (GPP) sensitivity to soil moisture during extreme summers than FLUXCOM. Finally, we show that the different impacts of the DH events at continental-scale GPP are in part related to differences in vegetation composition of the regions affected and to regional compensating or offsetting effects from climate anomalies beyond the DH centres. This article is part of the theme issue 'Impacts of the 2018 severe drought and heatwave in Europe: from site to continental scale'.