Antimony selenide (Sb2Se3), is an excellent photovoltaic absorber due to its high absorption coefficient (> 105 cm–1) at the visible region and 1.17 eV band gap. In recent years, the power conversion efficiency of Sb2Se3 thin film solar cells has gradually enhanced. Therefore, given the great interest in this material, this work is devoted to the study of a mathematical model for the optimization of the preparation of thin Sb–Se films by the electrochemical method. The study was conducted by potentiodynamic, potentiostatic and galvanostatic methods carried out under different conditions at Pt, Cu and Ni elec-trodes. The kinetics and mechanism of the electroreduction of antimony and selenite ions in the tartaric acid were studied separately for the electrochemical deposition. On the basis of cyclic polarization, X-ray phase and SEM-EDX analyses, it is found that Sb–Se thin films are deposited on Pt and Ni electrodes, but not on Cu electrode. The mathematical calculations were performed in the OptimME software package using specially developed software for this process. By studying the effects of various factors (concentration of the initial components, temperature, current density, etc.), the optimal electrolysis mode and electrolyte composition for the co-deposition process were selected. Based on these results, Student and Fisher criteria were assigned for future purposes and regression coefficients were estimated. The obtained regression equation determines the electrolyte content and the electrolysis conditions, which allows precipitating the Sb–Se alloy containing the required amount of Sb. Calculations and experimental results show that the error of the regression equation for obtaining the Sb–Se alloy is =6.4%.