Purpose: We deal with the problem of the joint determination of optimal economic production quantity (EPQ) and optimal preventive maintenance (PM) for a system that can produce multiple products alternately. The objective is to find the optimal number of production cycles and the PM policy simultaneously by minimizing the cost model.Design/methodology/approach: Considering the products go through the system in a sequence and a complete run of all products forms a production cycle. In each cycle, beyond production time we also consider some reserve time for maintenance and setup, shortage and overproduction may occur. We study the integrated problem based on two PM policies, and explain the situation with the other PM policies. The delay – time concept is used to model PM decisions.Findings: Using the integrated EPQ and PM model, we can calculate the optimal production planning and PM schedule simultaneously, especially we consider multiple products in each production cycle, which is more practical and economic than previous works.Originality/value: In modern companies, the production planning and maintenance schedule share the same system, and traditional research about two activities is separated, that always generate conflicts, such as inadequate or excessive maintenance, and shortages, etc., so we develop the integrated EPQ and PM model to avoid these undesirable effects.