Design of Fenton and photo-Fenton reactions was partially automated by using sequential injection analysis (SIA) and response surface methodology for the treatment of a wastewater sample from a coatings industry. The extension of both Fenton and photoFenton reactions was evaluated by the percentage of total organic carbon (TOC) remaining in solution after 15 min of reaction. Use of small volumes of sample and reagents, as well as easy solution handling, were the remarkable features of the proposed system. The highest percentage of TOC removal (79%) was obtained by the photo-Fenton reaction at the following initial mass-based concentration ratios: H 2 O 2 /TOC ¼ 10, H 2 O 2 /FeSO 4 ¼ 50, and pH 2.5. The best result for Fenton reaction indicated a TOC removal of only 45%, obtained at H 2 O 2 /initial TOC ¼ 20, H 2 O 2 /FeSO 4 ¼ 30, and pH 2.5. The SIA system was designed to dispense reagents to the sample flasks and to drive the sample intended to photo-Fenton reaction through a homemade photoreactor. Modifications in chemical parameters of the reactions were achieved via the software commanding the SI system, without the need for physical reconfiguration of reagents around the selection valve.