Black soldier fly larvae stay alive longest when you control three things: temperature, moisture, and airflow. Get these right and you can keep a thriving colony for weeks. Get them wrong and you’ll find a bin of dark, motionless larvae within days. Whether you’re raising BSFL for composting or storing them as feeder insects, the principles are the same.
Temperature: The Single Biggest Factor
BSFL survive across a surprisingly wide range, from about 15°C (59°F) up to 37°C (99°F). Below 15°C or above 40°C (104°F), you’ll see complete mortality. The sweet spot for active, growing larvae is around 27 to 30°C (80 to 86°F), where they feed fastest and develop most efficiently. At 30°C, population growth rates peak and doubling time drops to under six days.
Heat is actually more dangerous than cold. Larvae packed tightly together generate their own heat through respiration, and microbial activity in the substrate adds more. This can push internal bin temperatures well above the ambient room temperature, sometimes fatally so. The lethal upper threshold for larvae falls somewhere between 37 and 44°C depending on their life stage, so a bin sitting in direct sunlight or next to a heat source can quietly cook its occupants. If you notice larvae crawling away from the center of the bin or trying to escape, overheating is a likely cause.
Short-Term Storage in the Fridge
If you’re keeping BSFL as feeder insects and want to slow their metabolism without killing them, refrigeration works. Research on cold storage found that 10°C (50°F) allowed the longest survival, with losses staying below 15% for up to six days. Lower fridge temperatures of 6 to 8°C also worked but shortened their viable window. Store them in a container with some airflow (a lid with small holes) and check on them every couple of days. This approach pauses their feeding and development, buying you time before they either need to be used or returned to warmer conditions.
Moisture and Substrate Management
BSFL need a moist environment, but waterlogged substrate is one of the fastest ways to kill them. When the bedding is too wet, water fills the tiny air pockets between particles, cutting off oxygen and creating anaerobic conditions. This triggers foul smells, bacterial overgrowth, and larval die-off. The goal is substrate that feels damp when squeezed but doesn’t drip freely.
Research on substrate moisture found that the highest larval survival rates occur when the material is hydrated just to the point where no free water separates out. In practical terms, that means your bin shouldn’t have standing liquid at the bottom. If it does, you need to add dry material to absorb the excess.
Several dry materials work well for soaking up extra moisture. Wheat bran is a common choice because it absorbs water effectively and adds some nutrition. Coconut coir dust is another reliable option. Rice bran works too, but use it sparingly: adding more than about 15% rice bran by weight can cause the substrate temperature to spike as it decomposes, drying everything out and potentially killing larvae. Sawdust and rice husk improve aeration but contribute less nutritionally. A thin layer of dry material on top of the feeding substrate helps regulate surface moisture without disrupting the larvae below.
Airflow and Ventilation
BSFL are aerobic organisms. They need oxygen to survive, and their bins produce significant carbon dioxide and ammonia as byproducts of both larval respiration and microbial breakdown of food. Without adequate ventilation, CO2 builds up, ammonia concentrations rise, and the environment turns toxic.
Your bin needs passive airflow at minimum. Drill ventilation holes in the sides and lid of the container, or use a mesh-covered opening. Avoid sealed containers entirely. The larvae themselves actually help with aeration as they burrow and churn through the substrate, but this only works if there’s somewhere for stale air to escape and fresh air to enter. Overly wet or compacted substrate blocks air movement even in a well-ventilated bin, so moisture control and ventilation go hand in hand.
Particle size in your substrate matters here too. Very fine, densely packed material restricts airflow and creates pockets where oxygen can’t reach. Mixing in some coarser material like rice husk improves porosity and helps prevent those anaerobic dead zones.
Feeding Without Overloading
Overfeeding is a common mistake. Uneaten food decomposes, drives up heat and moisture, and creates the exact anaerobic conditions that kill larvae. A feeding rate of roughly 90 to 175 milligrams of food per larva per day (depending on diet type) produced the best growth in controlled studies. You don’t need to weigh portions precisely, but the guideline is simple: feed only as much as the larvae can process before the next feeding. If food is sitting uneaten and starting to rot, you’re giving too much.
BSFL eat almost anything organic, from fruit and vegetable scraps to grains and coffee grounds. The nutritional balance that matters most is the ratio of carbon to nitrogen in the feed. A carbon-to-nitrogen ratio of about 16:1 to 18:1 produces the healthiest, fastest-growing larvae. In practice, this means mixing carbon-rich materials (bread, rice, cardboard) with nitrogen-rich ones (fruit scraps, vegetables). Pure fruit waste tends to be too wet and nitrogen-heavy, while dry grains alone lack moisture. A mix keeps both the chemistry and the moisture in a good range.
Don’t Overcrowd the Bin
Density directly affects heat buildup and competition for food. Research testing different stocking densities found that 5 larvae per square centimeter (roughly 32 per square inch) produced the best growth and welfare outcomes. At 15 larvae per square centimeter, heat generation spiked, competition increased, and overall performance dropped. If you’re seeing larvae piling on top of each other and crawling up the walls, your bin is likely too crowded. Split the population into a second container or use a larger bin.
Preventing Early Pupation
If your larvae are turning dark brown or black and stopping eating, they’re entering the prepupal stage and preparing to pupate into adult flies. This is a one-way process you can’t reverse, but you can slow it down. Light exposure plays a significant role. In complete darkness, prepupae pupated fastest, with adults emerging in about 13 days. With 12 hours of daily light, that timeline stretched to nearly 57 days. So if you want to keep larvae in their feeding stage longer, maintain a normal light cycle rather than storing them in total darkness.
Cooler temperatures also slow development. Keeping the bin at the lower end of the viable range (around 20 to 24°C) delays the transition to the prepupal stage compared to the optimal growth temperature of 30°C. Combined with moderate light exposure, this gives you more time before larvae naturally age out of their useful larval phase.
Signs Your Larvae Are in Trouble
Healthy BSFL are plump, creamy white to light tan, and actively burrowing through their food. Watch for these warning signs:
- Lethargy or no movement: Healthy larvae constantly wriggle. If they’re still and limp, the environment is too cold, too hot, or too wet.
- Dark coloring in small larvae: Young larvae that turn dark prematurely may be stressed or dying. Normal darkening only happens in mature prepupae.
- Escape behavior: Larvae crawling up walls and out of the bin are fleeing poor conditions, usually overheating, overcrowding, or oxygen depletion.
- Foul smell: A healthy BSFL bin has a mild, earthy odor. Strong, rotten smells indicate anaerobic conditions from excess moisture or uneaten food.
- Swelling or deformities: These suggest disease, which spreads quickly in overcrowded or unsanitary bins.
When you spot any of these signs, check temperature first, moisture second, and food levels third. Most problems trace back to one of those three being out of range.

