Aiming at the requirements of onboard spare parts for ships,mathematical models of demanded quantity of spare parts based on the economic analysis and the mission reliability analysis are established respectively depending on the curent mathematical model of spare parts quantity in this paper,and a calculation is demonstrated by using examples. Theoretical analysis and numerical results illustrate the rationality and feasibility of the model,which plays a guiding role for determining the spare parts quantity of new equipment.