Based on CNC lathe product’s technical and economic properties demand for manufacturing industry of CNC equipment, this thesis studied the mutual relationship of machining accuracy and cost. According to adaptive particle swarm optimization, a optimization model of the two parts was established. The case of a CNC lathe shows that the optimization model has the advantages of rapid searching, high accuracy, effective and provides a new way for the machining accuracy and cost optimization.