Abstract The radial distribution system is a rugged system, it is also the most commonly used system, which suffers by loss and low voltage at the end bus. This loss can be reduced by the use of a capacitor in the system, which injects reactive current and also improves the voltage magnitude in the buses. The real power loss in the distribution line is the I2R loss which depends on the current and resistance. The connection of the capacitor in the bus reduces the reactive current and losses. The loss reduction is equal to the increase in generation, necessary for the electric power provided by firms. For consumers, the quality of power supply depends on the voltage magnitude level, which is also considered and hence the objective of the problem becomes the multi objective of loss minimization and the minimization of voltage deviation. In this paper, the optimal location and size of the capacitor is found using a new computational intelligent algorithm called Flower Pollination Algorithm (FPA). To calculate the power flow and losses in the system, novel data structure load flow is introduced. In this, each bus is considered as a node with bus associated data. Links between the nodes are distribution lines and their own resistance and reactance. To validate the developed FPA solutions standard test cases, IEEE 33 and IEEE 69 radial distribution systems are considered.