Electricity generation from renewable energy sources such as solar energy is an emerging sustainable solution. In the last decade, this sustainable source was not only being used as a source of power generation but also as distributed generation (DG). Many literatures have been published in this field with the objective to minimize losses by optimizing the DG size and location. System losses and voltage profile go hand-in-hand; as a result, when system losses are minimized, eventually the voltage profile improves. With improvement in inverter technologies, PV-DG units do not have to operate at a unity power factor. The majority of proposed algorithms and methods do not consider power factor optimization as a necessary optimization. This article aims to optimize the size, location, and power factor of PV-DG units. The simulations are performed on the IEEE 33 bus radial distribution network and IEEE 14 bus transmission network. The methodologies developed in this article are divided into two sections. The first section aims to optimize the PV-DG size and location. A multi-objective function is developed by using system losses and a voltage deviation index. Genetic algorithm (GA) is used to optimize the multi-objective function. Next, analytical processes are developed for verification. The second section aims to further enhance PV-DG by optimizing the power factor of PV-DG. The simulation is performed for static load in both systems, which are the IEEE 33 bus radial distribution network and IEEE 14 bus transmission network. A mathematical analytical method was developed, and it was found to be sufficient to optimize the power factor of the PV-DG unit. The results obtained show that voltage stability indices help minimize the computation time by determining the optimal locations for DG placement in both networks. In addition, the GA method attained faster convergence than the analytical method and hence is the best optimal sizing for both test systems with minimum computation time. Additionally, the optimization of the power factor for both test systems has demonstrated further improvement in the voltage profile and loss minimization. In conclusion, the proposed methodology has shown promising results for both transmission and distribution networks.