Summary. In this paper we propose a finite element method to compute dielectric waveguides which does not present spurious solutions. In addition to a theoretical analysis showing the good stability properties of this method, we give numerical results for some classical test problems.