Binary and ternary multilayers comprising paramagnetic and ferromagnetic materials filter out a specific neutron wavelength from the reflected broad spectrum. The effect of the grazing angle, the magnetization of the ferromagnetic layers and the scattering length density of the ferromagnetic layers for both structures are studied. The best performance of the proposed filter, such as the broadest neutron bandgap of 0.46 Å and the smallest bandwidth of the transmitted beam of 0.0016 Å, was achieved using the binary structure at magnetization of 40 kOe. These findings hold potential in the nuclear fields, including neutron waveguides and filters.