In the process of industrial production, the flue gas discharged from the chimneys adjacent to the farmland often contains some heavy metal elements, which enter the soil by atmospheric deposition, resulting in long-term accumulation of some heavy metal elements in the soil exceeding the standard. The paper reports the spatial distribution and risk assessment of soil heavy metals in suburban soil from the interior area of Ningyuanbu Town in Jinchuan District, China. Forty-one soil samples were obtained from a depth of 0-40 cm or 0-100 cm using a wooden shovel to analyze the concentrations of heavy metals (Zinc, Copper, Nickel, Lead, Cadmium, Chromium, Arsenic and Mercury) by ICP-MS. The results showed that the Zn, Cu, Pb, Ni, As, Hg and Cd were mainly distributed in the soil layers of 0-60 cm, and there was a point of inflection at a depth of 60 cm, it basically showed a uniform distribution below the inflection point, but the Cr in the soil layers of 0-100 cm was distributed uniformly. Based on the assessment of the risk screening values and geo-accumulation index, it was found that Cu and Ni surpassed the standard value. According to the index of potential ecological risk (RI), the average value of RI was 323.71 in the soil layers of 0-20 cm and it belong to severe contamination, and the average value of RI was 236.36 in the soil layers of 20-40 cm and it belonged to moderate contamination, and more attention must be paid to Cu and Ni in farmland soils in these areas. Therefore, the study area should be divided into safe utilization category and priority protection category. The input of pollution sources should be strictly controlled for the priority protection category, for instance, alternative planting, fallow and rotating should be implemented to reduce the transfer of heavy metals to crops and reduce the risk of food safety and health.