This study explores the optimization of iron electrocoagulation for treating laundry greywater, which accounts for up to 38% of domestic greywater. Characterized by high concentrations of surfactants, detergents, and suspended solids, laundry greywater presents complex challenges for treatment processes, posing significant environmental and health risks. Utilizing response surface methodology (RSM), this research developed a second-order polynomial regression model focused on key operational parameters such as the area-to-volume ratio (A/V), current density, electrolysis time, and settling time. Optimal treatment conditions were identified: an A/V ratio of 30 m2/m3, a current density of 10 mA/cm2, an electrolysis duration of 50 min, and a settlement period of 12 h. Under these conditions, exceptional treatment outcomes were achieved, with turbidity removal reaching 94.26% and COD removal at 99.64%. The model exhibited high effectiveness for turbidity removal, with an R2 value of 94.16%, and moderate effectiveness for COD removal, with an R2 value of 75.90%. The interaction between the A/V ratio and electrolysis time particularly underscored their critical role in electrocoagulation system design. Moreover, these results highlight the potential for optimizing electrocoagulation parameters to adapt to daily fluctuations in greywater production and meet specific household reuse needs, such as toilet flushing. This tailored approach aims to maximize contaminant separation and coagulant efficiency, balance energy use and operational costs, and contribute to sustainable water management.