A global particle swarm algorithm utilized to assess the inverted two-dimensional horizontal thin sheet parameters from the gravity anomaly profile based on applying the second moving average method. The using of the second moving average method has more advantageous than using the Bouguer gravity anomaly because this method has a capability in eliminating the regional field up to third-order impeded in the Bouguer anomaly. This algorithm is applied to interpret the gravity anomaly profile, i.e., estimating the depth, the width, the thickness, the density contrast and the origin location of the buried structure. The efficacy and stability of this method are investigated and exposed for utilizing free-noise and noisy synthetic examples. Real gravity data associated with oil and gas and mineral exploration from three different locations around the world is interpreted. The evaluated time to discovering this appropriate clarification is very short and the estimated parameters contrast the view that the proposed method is applicable for real exploration. It can extract the inverse parameters which have a geologic and economic significance.