Industrial waste significantly impacts water and soil quality, restricting their suitability for agricultural and domestic use. This study investigates the distribution of heavy metals (HMs) in groundwater and soils across the Shazand plain under different irrigation methods and rainfed farming systems. It evaluates the Total Hazard Quotient (THQ) and Carcinogenic Risk (TCR) associated with HMs for both children and adults, considering exposure through ingestion, dermal contact, and inhalation. A total of 104 samples were collected, comprising water samples from wells and boreholes, and soil samples. Concentrations of Pb, Cd, Cr, Ni, Hg, Zn, and Cu were analyzed using atomic absorption spectrometry, and the data were assessed using descriptive and inferential statistics. The highest average concentrations of HMs in groundwater samples were observed for Cr (19 mu g l-1) and Zn (22.8 mu g l-1). In soil samples, Cr (35.28 mu g g-1) and Zn (216.52 mu g g-1) exhibited the highest values. The Total Hazard Index (HI) indicated a high risk across different age groups, ranging from moderate to very high in the study areas. The Soil Pollution Load Index (PLI) was 18.22 in rainfed farming and 71.17 in irrigated farming, indicating severe HM contamination across the site. Carcinogenic health risks from HMs exceeded acceptable levels, with children showing greater vulnerability compared to adults. This research underscores the urgent need for effective environmental management strategies to mitigate HM contamination, safeguard public health, and ensure sustainable agricultural practices in industrialized regions.