The authors describe the possibility of applying the Markov chains theory and simulation to the study of petrochemical processes. By associating a finite Markov chain to a petrochemical process we can determine the quantities of raw materials and semifinished products required for the accomplishment of a given production plan. The described problem is dwelt upon also through the numerical simulation method, which proves to be advantageous as the number of processing units increases.