A method for the automatic irrigation of plants, wherein the temporal progression of soil moisture is determined from measured soil moisture values, and the progression is used for the calculation of an optimized irrigation time duration, such that both water excess in the soil and soil drying are avoided as much as possible. Preferably, the time duration of irrigation is constantly evaluated and optimized using comparisons of measured values with prespecified moisture and dryness threshold values, and automatically adjusted to changing environmental conditions and/or plant requirements.