Introduction. The basis for research, analysis and mathematical optimization of any chemical process is an adequate mathematical model that takes into account the kinetics of the object. Kinetic analysis is a challenge in chemical technology, since it allows for optimizing synthesis processes and predicting their efficiency. Numerous chemical processes involve several stage reactions. For successful design and optimization, a mathematical model that describes each stage is needed. Creating such a model manually can be time-consuming and costly, since it requires processing a large amount of information. The modern level of automation makes it possible to accelerate the obtaining of a mathematical formulation of the kinetics of multistage reactions. In this case, working with data is greatly simplified, and the probability of making mistakes is reduced. The resulting mathematical model can be applied for further analysis and optimization of the process. The paper considers the industrial reaction of catalytic reforming of gasoline, which occupies an important place in the modern scheme of oil refining, since it is a source of high-octane components of commercial gasolines and individual aromatic hydrocarbons. This process is characterized by the participation of a large number (up to 300) of various hydrocarbons, a change in the number of moles, and non-isothermality in it. Mathematical modeling of such processes involves detailing the stages to the required level. The detailing of up to 173 stages is considered. In this setting, automation of the formation of a mathematical formulation of kinetics for catalytic reforming of gasoline has not been carried out before. Therefore, the presented work aimed at implementing effective numerical methods and algorithms for automating the building of a mathematical model taking into account kinetics, thermodynamics, and changes in the number of moles.Materials and Methods. The mathematical formulation of the kinetics of multistage reactions was developed on the basis of the mass action law. The kinetic parameters values were taken from literary sources. The direct kinetics problem was solved using algorithms: the Gear method, the Runge-Kutta method of the 4th order, and the scipy.odeint() method of the Python language. The automation concept was implemented using the IDEF0 methodology. The software was written in the Python programming language.Results. A new software was created to automate the process of forming a mathematical model, taking into account the kinetics, thermodynamics, and the volume of the reaction mixture. The program results were presented by the example of catalytic reforming of gasoline. The model implemented the possibility of taking into account the intermediate heating of the mixture in the reactor cascade. Numerical values of temperature changes corresponding to industrial data were obtained.Discussion and Conclusion. The results obtained through modeling chemical transformations in the cascade of gasoline catalytic reforming reactors confirmed the exothermic nature of the reaction. The developed software product provides displaying changes in the concentrations of reactants, as well as temperature variations in the reactor, and it can be used in scientific research organizations for the analysis of multistage catalytic processes. The results of the reaction kinetics modeling will be used in the subsequent optimization of the process conditions in production.