Operational amplifier is an important portion of various analog and mixed signal circuits. Today use of mixed mode integrated circuits rises. Analog circuits particularly operational amplifiers in CMOS technology are difficult to design due to challenging and time consuming tasks like counting various conflicting benchmarks and a wide variety of design factors. This paper presents the use of Particle Swarm Optimization (PSO) algorithm for the optimum plan of two stage CMOS operational amplifier circuit. PSO algorithm has been used to accept required functionalities and performance specifications considering ideal sizing of two-stage op-amp. For circuit optimization C code of PSO algorithm has been integrated with Ngspice circuit simulator. The circuit is simulated using BSIM3v3 MOSFET models in TSMC 0.18 mu m and 0.35 um CMOS processes technology. The complete optimization system test setup is run on Ubuntu operating system. Results obtained by PSO algorithm are compared with earlier works.