In order to control seagliders dynamic motion, the full recognition of the hydrodynamic forces affecting their motion is very important. In this paper, the dynamic motion of a seaglider with a spherical nose has been studied and evaluated by using a developed computer code to obtain the hydrodynamics forces. Based on this algorithm, the time when the seaglider dives into the water until it returns to the water surface, as well as the parameters affecting the seaglider motion were investigated. Also, using a meta-heuristic optimization algorithm, the parameters affecting the optimal performance of the glider were determined. The investigated parameters include diving speed, diving angle, wing angle, distance and position of the seaglider center of mass relative to the center of buoyancy (center of the coordinate system). The speed varies from 0. 5 to 5 m/s, the diving angle includes 15, 30, 45 and 60 degree, the wing angle includes 0, 5, 10, 15 and 20 degree and the distance between the center of mass and the center of buoyancy is assumed to be 0, 1, 3 and 5 cm. According to the results, the diving angle of 30° , the wing angle of 5° and the center of mass and the center of buoyancy distance of zero and 1 cm at the diving speed of 5 m/s were selected as optimal values.