Abstract The aim of this work was to optimize the ball mill based refining process of chocolate, in terms of refining time and energy consumption. Experiments were planned following a central composite design (CCD), considering refining time (rt) and agitator shaft speed (as) as factors.