In this paper, we study the stability and the instability of standingwaves for the nonlinear Schrödinger equation with harmonic potential. We provethe existence of stable or unstable standing waves under certain conditions on thepower of nonlinearity and the frequency of wave.