Performance of the electroflotation process is strongly influenced by the size and number of the hydrogen and oxygen gas bubbles that form during the electrolysis of water. In this study, the analysis of the size distribution of gas bubbles by the segmentation of the electrode surface was evaluated. Further results as the optimum condition were then applied in the laboratory of wastewater treatment. Stainless Steel electrode was used as the cathode, and Titanium was used as an anode at a constant voltage of 20 V for 30 min process. The results showed that the average gas bubble size was found to vary in the range of 0.15-0.4 mm, which impacted the maximum collision between the gas bubbles and colloidal particles during the electroflotation process. In addition, the number of gas bubbles that formed has affected the performance of this process. The effectiveness of the electroflotation process was evaluated by decreasing the turbidity, total dissolved solid (TDS), Pb concentration, and light intensity. The initial conditions of chemical laboratory wastewater with a 20-times dilution showed that the turbidity, TDS, Pb concentration, and light intensity were 41.8 NTU, 680 mg/L, 1.291 mg/L, and 782 lx, respectively. The optimum results obtained by the electroflotation process under the same parameters were 0.22 NTU (99.47%), 534 mg/L (21.47%), 0.443 mg/L (65.59%), and increased light intensity by 1031 lx. Based on these results, it can be concluded that the electroflotation process has proven to reduce pollutants.