This study focuses on optimizing the parameters of the COCOMO II model for software cost estimation using the Particle Swarm Optimization (PSO) method, to improve accuracy in encountering project management challenges. It identifies how COCOMO II estimates effort and cost based on software size and various cost drivers, addressing its known inaccuracies by testing the PSO method on a Turkish software industry dataset. Results demonstrate that the PSO method significantly enhances estimation accuracy, indicated by improved measurement metrics, minimizing errors in project cost predictions.