Consumption of food grown in contaminated soils may be a significant human exposure pathway to pollutants, including toxic elements. This study aimed to investigate the pollution level of trace elements in farmland soil and crops collected in orchards from Ponce Enriquez, one of the Ecuador’s most important gold mining areas. The concentration of arsenic (As), cadmium (Cd), chrome (Cr), copper (Cu), nickel (Ni), lead (Pb), and zinc (Zn) was analyzed in soil and crop samples (celery, chives, corn, herbs, lettuce, turnips, green beans, cassava, and carrots). In addition, a probabilistic human health risk assessment, in terms of hazard quotients (HQ) and cancer risk (CR), was conducted to assess the potential risk related to local crop ingestion. The contents of As, Cr, Cu, and Ni in soils exceeded the Ecuadorian quality guidelines for agricultural soils.The trace elements concentration in local crops was higher than the maximum permissible levels set by the Food and Agriculture Organization of the United Nations (FAO). The HQ and CR of local crop ingestion were several orders higher than the safe exposure threshold, mainly for lettuce, chives, and turnips. Our results revealed that inhabitants of the study area are exposed to developing carcinogenic and non-carcinogenic effects due to long-term food consumption with high trace elements. This study sheds light on the need to assess further the quality of agricultural soils and crops grown in mining areas with signs of contamination to guarantee consumer food safety.Supplementary InformationThe online version contains supplementary material available at 10.1007/s10653-023-01514-x.