In this paper the back bombardment of electrons in rf thermionic guns is studied for cavity design. We put forward that shortening the length of cavities can decrease the back bombardment power sharply and obtain electron bunches with better qualities. The simulation results of back bombardment power and electron beam parameters at exit of rf guns with various cavity lengths are presented. The ida has been adopted in the multi – cavity rf thermionic gun for BFEL.