Purpose The purpose of this paper is to design an applied mathematical model to maximize the profits of maintenance activities in manufacturing organizations, also providing an efficient solution method for that. Design/methodology/approach Reviewing published articles in the field of maintenance planning and then trying to model the problem to optimal decision making in this field. Findings Maintenance optimization can be done more appropriately by the accurate use of mathematical programming. Research limitations/implications The existence of probabilistic parameters in this problem leads to hard stochastic programming. Practical implications Designing and organizing maintenance activities will increase productivity. This paper attempts to use mathematical models to optimize this matter. Originality/value This paper highlights the importance of using optimization methods for maintenance planning.