Decisions concerning the way of purchasing spare parts affect the level of the generated costs of collecting and maintaining stocks as well as the level of maintaining the continuity of production in enterprises. To learn about different situations of spare parts purchasing appearing in real economic conditions there has been conducted the simulation of different scenarios of spare parts purchase in connection with the selected factors. In this paper the case study for replacement parts used in a printing house was considered. As a result of the analysis, the best option to purchase replacement parts was indicated.