The design of an airfoil is mainly analysed in two ways, structural and aerodynamic approaches. This paper focuses on the aerodynamic analysis of airfoil. The purpose is to obtain an optimized 2D airfoil shape with ideal ratio of drag and lift force. The modelling and simulation are realized using MATLAB programming and Ansys-Fluent program. The results are then analysed by PSO (Particle Swarm Optimization) in order to find the ideal shape parameters for the airfoil which has the optimal ratio of drag and lift force.