Optimal power flow (OPF) is a tool used for minimization through that secured and cost-effective power systems is obtained with the inclusion of FACTS devices for existing power systems that enhance the power transfer ability of the power system, which reduces congestion. The current work proposed a solution to the OPF issue in power systems using genetic algorithm (GA). The proposed technique is implemented on an IEEE 30 bus system by considering the minimization of fuel cost and L-index functions. The results at the end of this paper pre-sent the efficacy of GA algorithm to solve OPF issues in power systems and FACTS devices while comparing it to other algorithms presented previous re-search.