The paper presents an algorithm for modeling the production of agricultural products in the formation of agrometeorological events. Stochastic models of variability of downpours, early snow-fall and crop yields are constructed to assess the likelihood of extreme events. Based on a probabilistic assessment of crop bio-productivity by a normative method, economic losses from agrometeorological events are determined. A model for optimizing crop production taking into account natural risks was built and implemented for an agricultural organization. The results were obtained according to data of the Irkutsk district.