Ammonia Isn't Killing Your BSFL. It's Starving Them.
Ammonia Isn't Killing Your Black Soldier Fly Larvae. It's Starving Them.
If you've been raising black soldier fly larvae for any length of time, you've probably seen this advice: "Don't let your feedstock go anaerobic or it'll kill your larvae." It shows up in forums, Facebook groups, YouTube comments. And it's not wrong exactly, but it misses the real problem. Understanding what ammonia actually does to BSFL is the difference between diagnosing a stalled bin and just guessing.
I spent a while blaming other variables, temperature, moisture, genetics, before I dug into the research and realized ammonia was the thing I wasn't accounting for.
What's Actually Happening in Your Bin
Any high-protein feedstock will produce ammonia as it breaks down. Kitchen scraps, spent grain, old pet food, whatever you're using. When that material sits wet in a bin without enough airflow, anaerobic bacteria take over and accelerate the process. You'll smell it before you measure it, that sharp, eye-watering hit when you open the lid.
The common assumption is that this ammonia kills the larvae. A 2024 study on ammonia pretreatment of fibrous biowastes tested this directly. Researchers dosed BSFL substrate with ammonia at 0%, 1%, 3%, and 5% concentrations and tracked what happened. At 5% ammonia, which is a heavy dose, larval survival only dropped from 98.9% to 89.7%. Nine out of ten larvae were still alive.
But here's the number that matters: bioconversion efficiency dropped by 96% at that same 5% dose. The larvae survived, but they basically stopped eating and growing. A separate study published in the Journal of Insects as Food and Feed found that substrate ammonium levels in the range of 6 to 18 milligrams per gram NH4-N cause osmotic and metabolic stress. At those concentrations, the larvae can't regulate water balance properly. Their metabolism downshifts. They're alive, but they're not doing anything useful.
This is what it looks like in practice. You set up a bin, add feedstock, add larvae, and two weeks later they're still tiny. The bin smells off. You think maybe you got bad genetics or your temps are wrong. But the real issue is that your substrate went anaerobic early on, ammonia built up, and the larvae have been sitting in a stress state the whole time. They didn't die. They just stopped growing.
How to Tell If Ammonia Is Your Problem
The nose test is actually pretty reliable. If you open your bin and get a strong ammonia smell, you have elevated levels. Fresh feedstock should smell like whatever it is, food scraps, grain, fruit. Not like a chemical burn.
Beyond the smell, the behavioral signs are consistent. Larvae in a high-ammonia environment cluster near the surface or edges of the bin, trying to get away from the worst of it. They move sluggishly. If you weigh a sample at day 10 or 12 and they're well under a gram each, ammonia stress is one of the first things to rule out.
Research from Frontiers in Sustainable Food Systems on substrate variation effects showed that feedstock composition directly affects ammonia generation. High-protein substrates produce more of it, faster. If you're feeding something like fish waste, meat scraps, or pure grain without balancing it, you're setting up the conditions for this problem whether the bin is sealed or not.
Fixing It in a DIY Setup
The good news is this is solvable with basic adjustments. No lab equipment required.
First, airflow. Ammonia builds up fastest in sealed, stagnant environments. If your bin doesn't have ventilation holes or a mesh lid, add them. You want passive airflow across the surface of the substrate. I drill quarter-inch holes around the upper walls of my bins and use mesh screen to keep flies where I want them.
Second, don't let high-protein feedstock sit wet before you use it. If you can't feed it to larvae within a day or two, spread it thin and dry it out. Getting moisture below about 15% will stall the microbial activity that produces ammonia in the first place. That's for storage only. When you actually feed it, rehydrate back to around 60 to 70 percent moisture, which is wet enough to clump when you squeeze it but not dripping. Go too dry in the bin and you'll trade one problem for another, especially with young larvae that desiccate fast.
Third, mix your feedstock. A 50/50 blend of protein-heavy material with a carb source, stale bread, rice, fruit pulp, oats, dilutes the nitrogen load and gives the larvae a more balanced diet. Research backs this up, and I've seen it consistently in my own bins. Mixed substrates produce faster growth, bigger larvae, and fewer ammonia problems than any single feedstock on its own.
Fourth, feed in thin layers. Two inches or less at a time. Thick layers of wet material compact and go anaerobic in the middle even if the surface looks fine. Let the larvae work through one feeding before you add the next.
The Takeaway
Ammonia doesn't wipe out your colony. It stalls it. And a stalled bin is frustrating because everything looks roughly okay, the larvae are alive, the temperatures are right, but nothing is progressing. Once I started managing ammonia as its own variable, separate from moisture and temperature, my consistency improved across the board.
If you're running a DIY BSFL setup and want to learn more about feedstock management, bin design, or getting your colony dialed in, I cover all of it at bluegrubfarm.com.
Sources: