In this paper, Bat Algorithm is proposed to solve the Optimal Power Flow (OPF) problem. The approach employs a Meta heuristic optimization algorithm called bat optimization algorithm to determine the optimal settings of control variables of OPF problem. The performance of proposed method examined on the IEEE 9, 14, 30 and 57-buses test systems with fuel cost minimization as the objective function. The numerical results are compared to those of Particle Swarm Optimization (PSO), Harmony Search (HS) and Cuckoo algorithms. Simulation results obtained from the proposed approach demonstrate that this method provide effective and robust high-quality answer for the OPF problem.