The problem of invariance of the geometric mean in the class of Lagrangian means was considered in [Głazowska D., Matkowski J., An invariance of geometric mean with respect to Lagrangian means, J. Math. Anal. Appl., 2007, 331(2), 1187–1199], where some necessary conditions for the generators of Lagrangian means have been established. The question if all necessary conditions are also sufficient remained open. In this paper we solve this problem.