This research presents a comprehensive energy, exergy, economics, and enviro-economic of macro-encapsulated phase change material (PHCM)-integrated single basin solar still for wastewater treatment.The study investigates the system's performance at three different wastewater depths (40%, 50%, and 60%) with varying masses of stearic acid as PHCM and compares the results with a conventional solar still.The novelty of this work lies in integrating macro-encapsulated PHCM, which significantly enhances thermal energy storage improving system energy & exergy efficiencies and productivity.The results demonstrated that energy and exergy efficiency is increased in the range of almost 28-99% and 21%-129% resp. compared to traditional solar still.The total output productivity at 40% depth for Test 1-4 was found to be 2500, 1850, 1620, and 1172 mL m-2d-1 resp.Similarly, at 50% depth, the total output productivity was 2028, 1625, 1439 & 970 mL m-2d-1 for Test 5-8 resp.For 60% depth, the total output productivity for Test 9-12 was 2040, 1550, 1410, and 935 mL m-2d-1 resp.The average value of levelized energy cost (LEC), net present value (NTPV), and payback period (PYP) of the solar still unit with and without macro-encapsulated PHCM is found to be 3.36 INR/kWh or 0.040 USD/kWh, 35,030 INR, & 4.46 years and 5.08 INR/kWh, 25,559 INR, & 9.76 years resp.Furthermore, the system with and without macro-encapsulated PHCM mitigates approx. 8-23 and 8-11 tCO2/lifetime resp.This study provides a novel approach to improving solar still efficiency through macro-encapsulated PHCM, offering a cost-effective and sustainable solution for wastewater treatment.