The fast increase of loads around the world has made electrical networks more and more complex and difficult to operate close to its capacities. This is has led to many problems such as voltage collapse and energy losses. Therefore, flexible alternating current transmission systems (FACTS) are considred as a best solution for solving these problems. Unified Power Flow Controller UPFC is one of the most important and powerful FACTS devices due to its ability to increase the transmission capacity of the power system and reduce the total line losses. The problem of optimizing its number, location and size has become an important requirement for best advantages of this device. In this paper, a proposed relationship to identify the maximum number of FACTS devices that can be installed for a given power network is introduced in the search process code to determine the optimal number, optimal placement and size of UPFC device to enhance voltages profile and reduce overall system losses in the standard IEEE 14 bus test system using genetic algorithm (GA). The obtained results show clearly that all control parameters of UPFCs in each case are within their limits, and whenever the number of UPFCs installed increases, both voltage deviation and total losses well decreases. They also show that the application of the proposed relationship in the search process code facilitates greatly the search for optimal number, optimal placement and size of UPFC devices and reduces the calculation time. On the other hand, the obtained results has been scientifically justified and compared with other works reported in the literature.