The measured net ecosystem exchange (NEE) of CO2 between the ecosystem and the atmosphere reflects the balance between gross CO2 assimilation [gross primary production (GPP)] and ecosystem respiration (Reco). For understanding the mechanistic responses of ecosystem processes to environmental change it is important to separate these two flux components. Two approaches are conventionally used: (1) respiration measurements made at night are extrapolated to the daytime or (2) light–response curves are fit to daytime NEE measurements and respiration is estimated from the intercept of the ordinate, which avoids the use of potentially problematic nighttime data. We demonstrate that this approach is subject to biases if the effect of vapor pressure deficit (VPD) modifying the light response is not included. We introduce an algorithm for NEE partitioning that uses a hyperbolic light response curve fit to daytime NEE, modified to account for the temperature sensitivity of respiration and the VPD limitation of photosynthesis. Including the VPD dependency strongly improved the model's ability to reproduce the asymmetric diurnal cycle during periods with high VPD, and enhances the reliability of Reco estimates given that the reduction of GPP by VPD may be otherwise incorrectly attributed to higher Reco. Results from this improved algorithm are compared against estimates based on the conventional nighttime approach. The comparison demonstrates that the uncertainty arising from systematic errors dominates the overall uncertainty of annual sums (median absolute deviation of GPP: 47 g C m−2 yr−1), while errors arising from the random error (median absolute deviation: ∼2 g C m−2 yr−1) are negligible. Despite site-specific differences between the methods, overall patterns remain robust, adding confidence to statistical studies based on the FLUXNET database. In particular, we show that the strong correlation between GPP and Reco is not spurious but holds true when quasi-independent, i.e. daytime and nighttime based estimates are compared.