This study examined product separation in biodiesel power plants to optimize the process. Response surface methodology (RSM) was used to identify the optimum parameters for the process of separation, to maximize profitability while also reducing carbon dioxide emissions. The mass and energy balance was assessed using aspen plus software, while RSM was carried out with design-expert software. Development of the characteristic equation determined that the model for gasoline yield, power generation, and carbon dioxide emissions was significant at the 95% confidence level. The R-squared value predicted by the model was found to be 0.97–1.00. In an optimal plant, profit can rise by 3836 USD over the year, while carbon dioxide emissions decline annually by 17.97 tons.