Important factors affecting the quality of steel are both the level of metal contamination with non-metallic inclusions and the properties of these inclusions. Hard-to-remove magnesium-containing compounds have a pronounced negative effect on the performance of metal products. This type of inclusions is distinguished by a high melting point, a characteristic acute-angled shape, and a significant difference in the coefficient of thermal expansion from the matrix material. Despite the fact that the magnesium-containing modifiers are practically not used for out-of-furnace processing of steel and the magnesium-containing inclusions are mostly exogenous, the task of their removal from the metal is extremely important. At present, to improve the quality of metal, especially low-alloyed metal, out-of-furnace steel processing technologies are used using complex alloys, which include barium and strontium. The study of the effect of barium and strontium additives on the processes of liquid steel refining is one of the promising areas of research in the field of metallurgical technologies. This paper presents the results of thermodynamic studies of phase equilibria in the Fe–Mg–Ba–Sr–O and Fe–Mg–Ba–Sr–O–C systems. Based on the literature data and our own research, we have constructed the phase diagram of the BaO–MgO–SrO ternary system for the first time. For the systems under study, the component solubility surfaces (SSS) in liquid iron were constructed for steel treatment temperatures of 1550 and 1600 ºС. According to the calculations, the most probable type of inclusions are solid solutions based on magnesium oxides. As the temperature decreases, the probability of participation of strontium and barium in the steel refining process increases, which creates conditions for the formation of easily removed barium- and strontium-containing non-metallic inclusions. The gas phase formed in the presence of carbon creates additional conditions for efficient refining of the melt.