In this paper, a study on optimizing electrical discharge machining (EDM) when processing cylindrical shaped parts of stainless steel SS304 to achieve minimum surface roughness (SR) was introduced. To solve the optimization problem, an experiment was designed and performed. Besides, the Taguchi method in the Minitab R19 software was used to design the experiment and analyze the results. In addition, the influence of the input process parameters, including the pulse on time, the pulse off time, the servo current, and the servo voltage on SR was investigated. Furthermore, the optimal input factors of the EDM process for minimum SR were found.