It is well known in Elementary Geometry the problem proposed and solved by Toricelli in the 17th century, to minimize the sum of the distances of a variable point to three fixed points in the plane. In this paper, we extend and solve completely the problem in inner product spaces.