This document presents a method for optimizing reactive power in a power distribution system using particle swarm optimization to minimize active power losses. It applies this method to a 21-bus power network in southern Ethiopia. The key steps are: (1) modeling the reactive power optimization problem and constraints, (2) applying particle swarm optimization with control variables like generator voltages and capacitor settings, (3) evaluating active power losses after each iteration using MATPOWER, (4) identifying the optimal settings that minimize losses. The results show active power losses reduced from 18.543 MW to 15.125 MW, an 18.43% decrease, after optimizing reactive power with a new wind generator placed at bus 14.