In this paper, the chaotic bat algorithm (CBA) is applied to solve the optimal reactive power dispatch (ORPD) problem taking into account small-scale, medium-scale and large-scale power systems. ORPD plays a key role in the power system operation and control. The ORPD problem is formulated as a mixed integer nonlinear programming problem, comprising both continuous and discrete control variables. The most outstanding benefit of the bat algorithm (BA) is its good convergence for optimal solutions. The BA, however, together with other metaheuristics, often gets stuck into local optima and in order to cope with this shortcoming, the use of the CBA is proposed in this paper. The CBA results from introducing the chaotic sequences into the standard BA to enhance its global search ability. The CBA is utilized to find the optimal settings of generator bus voltages, tap setting transformers and shunt reactive power sources. Three objective functions such as minimization of active power loss, total voltage deviations and voltage stability index are considered in this study. The effectiveness of the CBA technique is demonstrated for standard IEEE 14-bus, IEEE 39 New England bus, IEEE 57-bus, IEEE 118-bus and IEEE 300-bus test systems. The results yielded by the CBA are compared with other algorithms available in the literature. Simulation results reveal the effectiveness and robustness of the CBA for solving the ORPD problem. INDEX TERMS Chaotic bat algorithm, optimal reactive power dispatch, chaotic sequences.