Stable flies are blood feeding parasites and serious pests of livestock. The immature stages develop in decaying materials which frequently have high ammonium content. We added various ammonium salts to our laboratory stable fly rearing medium and measured their effect on size and survival as well as the physical properties of the used media. The addition of ammonium hydroxide, ammonium phosphate and ammonium sulfate reduced larval survival. These compounds decreased pH and increased ammonium content of the used media. Ammonium bicarbonate had no effect on pH and marginally increased ammonium while increasing survival twofold. The optimal level of ammonium bicarbonate was 50 g (0.63 mol) per pan. Larval survival decreased when pH was outside the range of 8.5 to 9.0.