— Motivated by some crowd motion models in the presence of noise, we consider an optimal control problem governed by the Fokker-Planck equation. We sketch optimality conditions by means of an Hamilton-Jacobi-Bellman equation and we give a monotonic scheme for the numerical approximation of the solution.