The black soldier fly is a large, wasp-like fly that is completely harmless. The real work is done by its larvae, which can eat through food scraps and manure and leave behind two things people want: an insect meal for feeding animals and a fertilizer for soil. Once confined to the warmer Americas, the fly now lives on every continent except Antarctica, which is why many people first meet it as a writhing mass of grubs in a compost bin.1Vegetable Crops Hotline. The Black Soldier Fly How fast it lives, and how useful it is, depends almost entirely on warmth and on what the larvae are fed.
The Black Soldier Fly Life Cycle From Egg to Adult
Temperature sets the pace at every stage. Eggs hatch in under 3 days at 35°C but take about 2 weeks at 15°C.2PubMed Central. Threshold temperatures and thermal requirements of black soldier fly Hermetia illucens: Implications for mass production Eggs kept at 10°C or 42°C collapse and never hatch.2PubMed Central. Threshold temperatures and thermal requirements of black soldier fly Hermetia illucens: Implications for mass production The feeding larval stage then lasts about 13 days at 30°C and around 2 months at 15°C.2PubMed Central. Threshold temperatures and thermal requirements of black soldier fly Hermetia illucens: Implications for mass production
Next comes the prepupa, a darker larva that stops eating and wanders off to find a dry place to transform. It takes about 8 to 10 days at 30°C but nearly 3 months at 15°C.2PubMed Central. Threshold temperatures and thermal requirements of black soldier fly Hermetia illucens: Implications for mass production At 40°C, prepupae fail to turn into pupae at all.2PubMed Central. Threshold temperatures and thermal requirements of black soldier fly Hermetia illucens: Implications for mass production Add it all up, and the trip from hatched larva to adult takes about 28 to 31 days at 30°C and around 6 months at 15°C.2PubMed Central. Threshold temperatures and thermal requirements of black soldier fly Hermetia illucens: Implications for mass production Flies bred over generations in warm conditions can complete their life cycle 3 to 5 days faster with no loss of fitness.3eFood. Shortening the Black Soldier Fly Life Cycle by Temperature‐Driven Genetic Selection to Enhance Alternative Protein Production
In a compost bin, each stage looks different. Eggs are laid in tiny clusters in dry cracks near rotting material, not on it. The young larvae are pale, flattened, segmented grubs that swarm in wet food. Later the wandering prepupae turn dark brown to black and crawl away from the food. The adults are slim, black, wasp-like flies with clear “windows” at the base of the abdomen.
Adults are harmless to people. They do not bite or sting despite looking like wasps, and they don’t hang around homes or food the way house flies do. They spend their short lives mating and laying eggs. They do have working mouthparts and digestive systems and will eat if food is offered, and adults given food live longer than those given only water, despite the common belief that adults cannot eat.4PubMed Central. Dietary preferences and impacts of feeding on behavior, longevity, and reproduction in adult black soldier flies (Diptera: Stratiomyidae; Hermetia illucens)
How Black Soldier Fly Larvae Break Down Waste
Much of the work happens in the gut. Larvae carry a stable core of gut bacteria that stays similar whatever they eat,5PubMed Central. The Core Gut Microbiome of Black Soldier Fly (Hermetia illucens) Larvae Raised on Low-Bioburden Diets so they can break down a broad range of foods rather than needing one specific diet. Food waste with larvae in it also shows higher activity of the natural chemicals that break food down than waste without larvae.6PubMed Central. Black soldier fly larvae (Hermetia illucens) strengthen the metabolic function of food waste biodegradation by gut microbiome
Some foods work much better than others. Larvae on fruit and vegetable waste grew more than twice as fast as on standard chicken feed. They also shrank that waste fastest and turned the most of what they ate into body mass.7PubMed Central. Bioconversion of Different Waste Streams of Animal and Vegetal Origin and Manure by Black Soldier Fly Larvae Hermetia illucens L. (Diptera: Stratiomyidae) Some manures and processed waste, though, produced very slow growth.7PubMed Central. Bioconversion of Different Waste Streams of Animal and Vegetal Origin and Manure by Black Soldier Fly Larvae Hermetia illucens L. (Diptera: Stratiomyidae) On food waste, larvae can cut the waste’s weight by about 66%.8Renewable Energy. Valorization and bioconversion of food waste and post-hydrolyzed food waste via black soldier fly larvae for lipid-based biodiesel production in a circular economy
For a home bin, that means fruit, vegetable and kitchen scraps give the fastest growth. Very dry or fibrous material slows the larvae down. Manure works, but results vary by animal. If you add more than the larvae can eat, the extra rots and smells.
Compared with a normal compost heap, larvae process scraps in days to weeks rather than months. The result is a crop of grubs plus a dark, crumbly residue, rather than finished compost.
Larvae as Animal Feed for Chickens and Fish
Dried larvae average about 41% protein, varying from about 22% to 66% depending on diet. That is a little less than soybean meal and well below fish meal.9PubMed Central. Nutritional Composition of Black Soldier Fly Larvae (Hermetia illucens L.) and Its Potential Uses as Alternative Protein Sources in Animal Diets: A Review Whole larvae are also about 35% fat on average, far fattier than soybean meal or fish meal.9PubMed Central. Nutritional Composition of Black Soldier Fly Larvae (Hermetia illucens L.) and Its Potential Uses as Alternative Protein Sources in Animal Diets: A Review Removing the fat raises the protein, from about 46% to 56% in one flour, while fat drops from about 26% to under 5%.10PubMed Central. The Nutritional Quality and Structural Analysis of Black Soldier Fly Larvae Flour before and after Defatting
The main fat is the same one that dominates coconut oil, and it can fight some bacteria.11Sustainability. Lauric Acid from the Black Soldier Fly (Hermetia illucens) and Its Potential Applications12PubMed Central. Research note: Antimicrobial properties of commercial black soldier fly (Hermetia illucens) meal against gram-positive and gram-negative bacteria Larvae raised on fruit waste can have far more of it, up to about three-quarters of their fat.11Sustainability. Lauric Acid from the Black Soldier Fly (Hermetia illucens) and Its Potential Applications
The wide protein range means a bag of larvae meal is not one standard product, because what the larvae ate and how the meal was processed change what is in it. Defatted meal and whole-larva meal are really two different ingredients and shouldn’t be swapped one for one.
Fish handle larvae fairly well. In Nile tilapia, replacing a quarter to three-quarters of fish meal with larvae meal didn’t hurt growth and made the feed more profitable.13Scientific African. Partial Replacement of Fishmeal with Black Soldier Fly Larvae Meal in Nile Tilapia Diets Improves Performance and Profitability in Earthen Pond Replacing fish meal raises some essential protein building blocks in the feed but lowers its calcium and phosphorus.14Sustainability. Black Soldier Fly Larvae Meal as Alternative to Fish Meal for Aquaculture Feed Yet in yellowtail kingfish, replacing 75% of fish meal meant the fish ate less and gained less weight.15PubMed Central. Sustainable Fishmeal Alternatives: Impact of Partially Defatted Black Soldier Fly (Hermetia illucens) Meal on Growth and Health of Yellowtail Kingfish (Seriola lalandi)
Chickens do worse when larvae take up too much of the diet. In broilers, full-fat larvae at 10% of the diet slowed growth and harmed the gut lining, so in that setting larvae should stay at or below about 5% of feed.16Journal of Insects as Food and Feed. Impact of black soldier fly larvae (Hermetia illucens) inclusion in broiler diets on growth performance, specific fecal bacteria, and intestinal morphometry Defatted larvae meal at 15% of broiler feed also weakened the gut lining.17PubMed Central. Black soldier fly defatted meal as a dietary protein source for broiler chickens: Effects on growth performance, blood traits, gut morphology and histological features Tiny amounts of microwave-dried larvae, under 1% of feed, improved growth and gut health.18PubMed Central. Microwave-dried black soldier fly larvae enhance growth, intestinal health, and humoral immunity in broiler chickens: A functional feed approach
For backyard chickens, that points toward moderation. Treat larvae as a treat or supplement, not the main ration, since the fatty grubs can unbalance a diet if overfed. Keep a complete layer or grower feed as the base.
Frass as a Garden and Farm Fertilizer
Frass is the mix of larval droppings, shed skins and leftover food. In poor sandy soil it can greatly boost plant growth, increasing early growth about twofold in wheat and nearly fivefold in canola.19Journal of Cleaner Production. Black soldier fly frass greatly improves growth of four crops in a fertilised sandy soil Maize given frass grew taller and greener and took up more nitrogen and phosphorus than with commercial fertilizers.20PubMed Central. Exploring Black Soldier Fly Frass as Novel Fertilizer for Improved Growth, Yield, and Nitrogen Use Efficiency of Maize Under Field Conditions That’s because frass releases its nutrients quickly in the top layer of soil, where roots feed.20PubMed Central. Exploring Black Soldier Fly Frass as Novel Fertilizer for Improved Growth, Yield, and Nitrogen Use Efficiency of Maize Under Field Conditions In durum wheat, it raised soil nitrogen, phosphorus and potassium and produced taller plants.21Communications in Soil Science and Plant Analysis. Black Soldier Fly (Hermetia illucens) Larvae Frass Organic Fertilizer Improves Soil Quality and the Productivity of Durum Wheat
There are limits. Very heavy frass can make wheat grow too lush and then dry off late in the season.19Journal of Cleaner Production. Black soldier fly frass greatly improves growth of four crops in a fertilised sandy soil Its main benefit is supplying nitrogen, while soil carbon gains stayed modest.19Journal of Cleaner Production. Black soldier fly frass greatly improves growth of four crops in a fertilised sandy soil Frass also contains only tiny amounts of the tough material from insect shells, and less the longer it is stored.22Bioresource Technology Reports. Chitin content in Black Soldier Fly (Hermetia illucens) rearing residues (frass) determined via liquid chromatography-mass spectrometry and ultra-performance liquid chromatography
At home, treat frass like a nitrogen-rich fertilizer. Mix it into the soil or use it as a top dressing rather than piling it thick, and don’t overdo it. If fresh frass smells, let it dry or cure first, and store it dry to avoid mould.
Safety Concerns With Germs and Heavy Metals
Larvae reared on commercial food waste tested safe for Listeria, Salmonella, E. coli and Staph.23PubMed. Microbial safety of black soldier fly larvae (Hermetia illucens) reared on food waste streams In pig manure, larvae lowered Staph, Salmonella and coliform bacteria over about 8 days.24PubMed Central. Inhibition of Zoonotic Pathogens Naturally Found in Pig Manure by Black Soldier Fly Larvae and Their Intestine Bacteria Other manures went differently. In chicken manure, larvae sped up the death of E. coli, in cow manure they had no effect, and in hog manure they helped it survive.25PubMed. Reduction of Escherichia coli O157:H7 and Salmonella enterica serovar Enteritidis in chicken manure by larvae of the black soldier fly The larvae themselves also became contaminated with Salmonella after several days in chicken manure.25PubMed. Reduction of Escherichia coli O157:H7 and Salmonella enterica serovar Enteritidis in chicken manure by larvae of the black soldier fly
Metals are a separate issue. Larvae concentrate cadmium to about 9 times the level in their food and lead about 2 times.26PubMed. Impact of substrate contamination with mycotoxins, heavy metals and pesticides on the growth performance and composition of black soldier fly larvae (Hermetia illucens) for use in the feed and food value chain Mould toxins and pesticides in their food did not build up in the larvae.26PubMed. Impact of substrate contamination with mycotoxins, heavy metals and pesticides on the growth performance and composition of black soldier fly larvae (Hermetia illucens) for use in the feed and food value chain
So if larvae are going to animals, feed them clean kitchen scraps rather than unknown manure. Avoid waste from contaminated soil or industrial sources, and don’t feed larvae raised on raw meat or pet waste. Heat-drying larvae before feeding adds a margin of safety against germs, though it does not remove heavy metals.
Commercial farms face regulation for these reasons. Rules on allowed feeds for insects differ between the EU, US, Canada and Australia, and many places restrict manure or catering waste for feed insects. Check local rules before selling larvae or frass.
Other Uses From Biodiesel to Packaging
Fat from larvae grown on food waste can be turned into biodiesel at over 93% yield, and that fuel met European and Korean diesel standards.27Energy. Biodiesel production from black soldier fly larvae derived from food waste by non-catalytic transesterification28Journal of the Taiwan Institute of Chemical Engineers. Direct transesterification of black soldier fly larvae (Hermetia illucens) for biodiesel production
The shells have uses too. Chitin, the tough material in insect shells, can be extracted from larvae and is more heat-stable than a commercial standard.29PubMed Central. Chitin Extracted from Black Soldier Fly Larvae at Different Growth Stages Chitosan, made from chitin, has been produced from shed pupal cases and turned into food packaging that changes colour as bananas ripen.30PubMed. Development of intelligent packaging films utilising chitosan derived from black soldier fly exuviae and anthocyanin from red dragon fruit peel for monitoring banana ripeness It has also been used to make biodegradable drinking straws, offering an alternative to shellfish-based chitosan.31AgriHealth: Journal of Agri-food, Nutrition and Public Health. Characterization of Eco-Friendly Straw Based on Chitosan from Pupae Exuviae of Black Soldier Fly (Hermetia illucens)
Is Black Soldier Fly Farming Good for the Environment
The picture is mixed. Treating a tonne of food waste with larvae emits about 30 kg of CO2 equivalent. The biggest environmental gain is land saved, while energy use is the main cost.32Journal of Cleaner Production. Environmental impact of food waste bioconversion by insects: Application of Life Cycle Assessment to process using Hermetia illucens One assessment found larvae protein had greater impacts than soybean meal or fish meal because of that energy use.33Resources, Conservation and Recycling. Black soldier fly larvae as an alternative feed source and agro-waste disposal route – A life cycle perspective Still, insect protein products made from food by-products can be 2 to 5 times better than traditional products.34Journal of Cleaner Production. Sustainability of insect use for feed and food: Life Cycle Assessment perspective The payoff depends on using waste as feed and keeping heating low.
Raising Black Soldier Flies at Home
Moisture decides most outcomes. A bin that is too wet makes frass sticky and foul-smelling and lets liquid pool at the bottom, and wet walls help larvae climb out, defeating escape barriers.35PubMed Central. Potential Application of Black Soldier Fly Larva Bins in Treating Food Waste Drier bedding gives frass that separates easily from the larvae.35PubMed Central. Potential Application of Black Soldier Fly Larva Bins in Treating Food Waste
Harvesting works with the larvae’s own habits. Prepupae crawl toward an exit under dim light, about as dim as deep dusk, especially when the bedding is moist.36PubMed Central. Do It by Yourself: Larval Locomotion in the Black Soldier Fly Hermetia illucens, with a Novel “Self-Harvesting” Method to Separate Prepupae With moist bedding and dim light, about 87% of collected larvae were ready prepupae and few young ones.36PubMed Central. Do It by Yourself: Larval Locomotion in the Black Soldier Fly Hermetia illucens, with a Novel “Self-Harvesting” Method to Separate Prepupae Young larvae leave the bedding if it gets too dry.36PubMed Central. Do It by Yourself: Larval Locomotion in the Black Soldier Fly Hermetia illucens, with a Novel “Self-Harvesting” Method to Separate Prepupae
A simple bin uses a container with drainage holes or absorbent bedding like cardboard, plus a ramp leading to a collection bucket. Keep it in a warm, shaded spot and add scraps a little at a time.
Most problems trace back to moisture or temperature. A bad smell usually means the bin is too wet or overfed, so add dry bedding. Larvae escaping means the walls are wet or the bin is too full. Few larvae can mean it’s too cold for egg-laying adults, though that is only one possible cause.
Breeding adults indoors is harder. They need bright light with the right colours to mate.37PubMed. Mating success of the black soldier fly, Hermetia illucens (Diptera: Stratiomyidae), under four artificial light sources38PubMed Central. An Artificial Light Source Influences Mating and Oviposition of Black Soldier Flies, Hermetia illucens Their eyes see ultraviolet, blue and green light, so LED lights tuned to those colours gave the best mating results.37PubMed. Mating success of the black soldier fly, Hermetia illucens (Diptera: Stratiomyidae), under four artificial light sources39PubMed. Photoreceptor spectral sensitivity of the compound eyes of black soldier fly (Hermetia illucens) informing the design of LED-based illumination to enhance indoor reproduction

