Aims. Both empirical evidence and theoretical findings indicate that the stellar winds of massive early-type stars are inhomogeneous, i.e., porous and clumpy. For relatively dense winds, empirically derived mass-loss rates might be reconciled with predictions if these empirical rates are corrected for clumping. The predictions, however, do not account for structure in the wind. To allow for a consistent comparison, we investigate and quantify the effect of clumpiness and porosity of the outflow on the predicted wind energy and the maximal effect on the mass-loss rate of O-type stars. Methods. Combining non-LTE model atmospheres and aMonte Carlo method to compute the transfer of momentum from the photons to the gas, the effect of clumping an...