Significant quantities of potentially toxic elements have been and are still being discharged into Pakistan's rivers through natural sources and anthropogenic activities. The present study provides a comprehensive study of potentially toxic element contamination in the water and sediment of the Ravi River, Pakistan. The research aims to examine the extent of pollution, its ecological risks, and the potential human health impacts through detailed geospatial analysis and statistical correlation. Water and sediment representative samples were taken and analyzed for potentially toxic elements, including Cobalt (Co), Cadmium (Cd), Zinc (Zn), Nickel (Ni), Arsenic (As), Chromium (Cr), Lead (Pb), Copper (Cu), and Manganese (Mn). Various pollution indices, such as the “Geo-accumulation Index (Igeo), Modified degree of Contamination (mCd), Nemerow comprehensive pollution index (Pt), Contamination factor (CF), Enrichment factor (EF), Pollution Load Index (PLI), and Potential Ecological Risk Index (PERI),” were calculated to determine the contamination levels and ecological risks. The results indicated significant spatial variability in metal concentrations, with higher levels observed in industrial and urban areas (near Lahore). Cd and As were identified as the most critical pollutants, exhibiting high Igeo, CF, EF, and PERI values. The PLI revealed that several regions along the river are heavily polluted. Pt shows high comprehensive pollution near Lahore and moderate to high pollution in surrounding areas. According to mCd, most of the study area, especially sampling points near Lahore, ranges between 8 and 16, indicating a high degree of pollution. The Human Health Risk (HHR) assessment, considering ingestion, inhalation, and dermal contact pathways, highlighted that children are particularly vulnerable, showing higher Hazard Quotient (HQ) and Hazard Index (HI) values for several metals. Correlation analysis revealed significant relationships between certain metals, suggesting common sources of contamination, likely from industrial discharges and urban runoff. The comprehensive mapping and statistical analysis underscore the urgent need for implementing effective pollution control measures to mitigate the risks posed by potentially toxic element contamination in the Ravi River. This study provides critical insights for policymakers and environmental managers to prioritize areas for remediation and to develop strategies to protect both ecological and human health in the region.