The dispersion of optical fiber can damage optical information, thus limiting data transfer speed and transmission distances. In this paper, a new structure is presented by applying metal nanoparticles for photonic crystal fibers (PCF) so that minimizes dispersion and optical loss. The proposed PCF uses circular and elliptical shape nanoparticles, then their number and location is optimized by PSO algorithm. Applying metal nanoparticles in PCF substrate causes increases the conductivity and increases light excitation, which increases light absorption and decreasing dispersion. By changing the shape, location, and type of nanoparticles, a structure with minimal dispersion and light loss is provided. In this paper, we applied three elliptical and three circular nanoparticles using the PSO results. The hexagonal PCF is designed with air grids and radius of 5.8 µm, and then circular and elliptical gold particles are used instead of air holes. Simulation results show that the loss is 7e−4 dB/cm at wavelengths between 1.3 and 1.65 µm and the dispersion is obtained less than 0.3 ps/nm/km. The light loss and dispersion are reduced compared to other related studies.