Purpose. Shunt capacitors are installed in power system for compensating reactive power. Therefore, feeder capacity releases, voltage profile improves and power loss reduces. However, determination optimal location and size of capacitors in distribution systems is a complex optimization problem. In order to determine the optimum size and location of the capacitor, an objective function which is generally defined based on capacitor installation costs and power losses should be minimized According to operational limitations. This paper offers a newly developed metaheuristic technique, named dice game optimizer to determine optimal size and location of capacitors in a distribution network. Dice game optimizer is a game based optimization technique that is based on the rules of the dice game.