Accumulation of heavy metals in soil and vegetables is presently a challenging environmental concern worldwide. The present study was designed to elucidate heavy metals contamination of vegetables irrigated with domestic wastewater and associated health risks. The study area comprises three zones: Kot Addu, Alipur, and Muzaffargarh. A total of 153 samples of wastewater, topsoil, and vegetables were analyzed for physicochemical parameters and concentration levels of eight metal elements (Cu, Fe, Zn, Mn, Pb, Cd, Ni, and Cr) determined through analytical procedures. The outcome of the present investigation reveals that heavy metal concentrations in wastewater, soil, and vegetables irrigated with wastewater were slightly higher than the WHO-suggested limit. The heavy metals concentration observed in vegetables irrigated with wastewater can be ranked in order of Ni > Mn > Cr > Pb > Cu > Fe > Zn > Cd. Transfer factor (TF), daily ingestion of metals (DIM), and health risk index (HRI) were calculated. Spinach exhibited higher values of transfer factor than cabbage, cauliflower, and radish, which were followed by tinda and carrot. Minimum values of HRI were observed for Cr (0.0109) in almost all of the vegetables ingested by adults and children. Cabbage exhibited higher values of HRI for Pb (4.0656) in adults, followed by cadmium (HRI = 2.993). Minimum values of HRI were calculated for Cd (0.0115; child). Cauliflower exhibited higher values of HRI (5.2768) for Pb in children. Pb, HRI values (4.5902) were observed in adults living in Kot Addu. The results exhibited similar trends of HRI in adults and children living in Muzaffargarh and Alipur.