The photosynthetic contribution of a fruit to its carbon requirement throughout ontogeny and under different growing conditions was quantified in cucumber (Cucumis sativus L. cv. Corona). In addition, the effects of shading on fruit dry matter accumulation and the diurnal course of the elongation rate were studied. Fruit darkening had no photomorphogenic effect on fruit growth, while the cumulative photosynthetic contribution of a fruit to its own carbon requirement ranged from 1 to 5%. During the day there was always a net CO2 efflux. The photosynthetic rate per fruit, calculated as the difference between rates of CO2 exchange in light and dark, increased during fruit ontogeny, while the photosynthetic rate per unit fruit surface area declined. The latter was not dependent on fruit size. The photosynthetic activity per unit surface area of fruits was estimated to be about 20–30% as efficient as that of leaves. The rate of calculated photosynthesis was reduced by 60–65% when the photosynthetically active radiation incident on the fruit decreased from 200 to 50 μmol m−2 s−1. Temperature (20–30°C) had no pronounced effect on the rate of calculated fruit photosynthesis when fruits of the same developmental stage (temperature sum) were compared. However, the relative photosynthetic contribution of a fruit to its carbon requirement increased when temperature decreased. Moreover, this contribution increased when irradiance increased or fruit growth was reduced by competing fruits. During fruit ontogeny the daily photosynthetic contribution was highest (up to 15%) in young and old fruits, with a small growth rate.