This work aims to contribute to the development of numerical approach for optimization of buried pipeline by using finite element (FE) method and particle swarm optimization (PSO), considering static analysis and material hardening. The buried pipeline is discretized by finite element approach, constituted by Euler-Bernoulli three nodes beam element, while the soil-structure interaction is modeled by Winker-type tensionless foundation. Moreover, the tensionless foundation is discretized by spring element in the numerical model. The material nonlinearity behavior is analyzed by Von Mises isotropic hardening model. In the numerical approach, this model is solved by stress increment procedure. Furthermore, the critical loading and optimum wall thickness, that leads to optimized condition, are determined using swarm techniques. The cost function is formulated using evaluated stress and target stress, more, the calculated error is minimized by using swarm techniques for single-variable and two-variable optimization. Several applications are carried out by considering several soil conditions, boundary conditions and loading types. As a novelty, the soil random stiffness is included in the numerical model, where the optimum wall thickness and critical loading are evaluated considering material nonlinearity. The performance of finite element particle swarm technique is also compared to finite element genetic algorithms technique. The results demonstrate the effectiveness of proposed numerical approach for nonlinear buried pipeline optimization.