Hermetia illucens, the black soldier fly, is a common and widespread fly of the family Stratiomyidae. The larvae and adults are considered neither pests nor vectors. Instead, black soldier fly larvae play a similar role to that of redworms as essential decomposers in breaking down organic substrates and returning nutrients to the soil.
Black soldier fly larvae (BSFL) are an excellent source of sustainable protein for aquaculture, animal feed, and pet and human nutrition. The larvae have voracious appetites and can be used for composting household food scraps and agricultural waste products.
- 1 Life cycle
- 2 Uses in composting or as food for animals
- 3 Names and trademarks
- 4 References
- 5 External links
An adult Black Soldier Fly female lays between 600-800 eggs at a time. These eggs are typically deposited in crevices or on surfaces above or adjacent to decaying matter such as manure or compost hatch into larvae in approximately four days. Black Soldier Fly larvae can be differentiated from blowfly or housefly larvae by a thin gray-black stripe on the posterior end. These larvae eat and grow for 10-14 days until they enter the pre-pupal stage, when they begin to turn a brownish color. After about a week they enter the pupal stage, when they are at their nutritional peak.  The larvae range in size from 1⁄8–3⁄4 inch (3–19 mm). Although they can be stored at room temperature for several weeks, their longest shelf life is achieved at 50–60 °F (10–16 °C).
The adult fly, which measures about 16 mm (5/8 inch), has a life span of 5 to 8 days. It is a mimic, very close in size, color, and appearance to the organ pipe mud dauber wasp and its relatives. The mimicry of this particular kind of wasp is especially enhanced in that the fly's antennae are elongated and wasp-like, the fly's hind tarsi are pale, as are the wasp's, and the fly has two small transparent "windows" in the basal abdominal segments that make the fly appear to have a narrow "wasp waist". The adult soldier fly has no functioning mouthparts (although can ingest water); it spends its time searching for mates and reproducing.
Uses in composting or as food for animals
Black soldier fly larvae (BSFL) are used to compost waste or convert the waste into animal feed. The harvested pupae and prepupae are eaten by poultry, fish, pigs, turtles; even dogs. The wastes include fresh manure, food wastes of both animal and vegetable origin.
Fly larvae are among the most efficient animals at converting feed into biomass. Aside from the protein production, fly larvae also produce another valuable resource called frass. Fly larvae frass is a granulated and odorless residue that can be used as organic fertilizer 
Grub composting bins use self-harvesting
When the larvae have completed their larval development through six instars, they enter a stage called the "prepupa" wherein they cease to eat, they empty their guts, their mouth parts change to an appendage that aids climbing, and they seek a humid sheltered area to pupate. This prepupal migration instinct is used by grub composting bins to self-harvest the mature larvae. These containers have ramps or holes on the sides to allow the prepupae to climb out of the composter and drop into a collection area.
Larvae are beneficial in the following ways:
- Their large size relative to houseflies and blowflies allows them to prevent houseflies and blowflies from laying eggs in decaying matter by consuming larvae of other species. This matters because compost systems inhabited by houseflies and blowflies carry a much greater stench than systems inhabited by BSFL, making H. illucens a more human-friendly way to minimize food waste. 
- They are usually not a pest. Unlike houseflies, adult Black Soldier Flies do not have mouths, so they do not spread disease through regurgitation of food like the housefly does.
- They are not attracted to human habitation or foods. As a detritivore and coprovore, the egg-bearing females are attracted to rotting food or manure.
- Black soldier flies do not fly around as much as houseflies. They have less expendable energy due to their inability to consume food as adults. They are very easy to catch and relocate when they get inside a house, as they do not avoid being picked up, they are sanitary, and they neither bite nor sting. Their only defense seems to be hiding. When using a wet grub bin that will collect or kill all the pupae, the black soldier fly population is easy to reduce by killing the pupae/prepupae in the collection container, before they become flies. They may be killed by freezing, drying, manually feeding to domestic animals, putting the collection container in a chicken coop for automatic feeding, or feeding to wild birds with a mouse/pest-proof feeder.
- Significant reductions of E. coli 0157:H7 and Salmonella enterica were measured in hen manure.
- They quickly reclaim would-be pollutants: Nine stinky organic chemicals were greatly reduced or eliminated from manure in 24 hours.
- They quickly reduce the volume and weight of would-be waste: The larval colony breaks apart its food, churns it, and creates heat, increasing compost evaporation. Significant amounts are also converted to carbon dioxide respired by the grubs and symbiotic/mutualistic microorganisms. BSFL in a compost system typically reduce the volume of compost by around 50%.
Establishing and building larval colonies
The main difficulty is obtaining black soldier fly larvae or eggs to start or replenish the colony. This is usually done by enticing the soldier flies to lay eggs in small holes over the grub bin. Adult flies lay clusters of eggs in the edges of corrugated cardboard or corrugated plastic. In some regions, it is possible to start or maintain adequate larvae colonies from native soldier flies; however, pest species such as houseflies and blowflies are also drawn to many of the foods used to attract soldier flies (such as fermented chicken feed).
In tropical or subtropical climates, they might breed year-round, but in other climates, a greenhouse may be needed to obtain eggs in the cooler periods. The grubs are quite hardy and can handle more acidic conditions and higher temperatures than redworms. Larvae can survive cold winters, particularly with large numbers of grubs, insulation, or compost heat (generated by the microorganisms in the grub bin or compost pile). Heat stimulates the grubs to crawl off, pupate, and hatch, and a great deal of light and heat seem to be required for breeding. Many small-scale grub farmers build their larval colonies from eggs deposited by wild soldier flies.
Requirements for captive-breeding chambers
Captive breeding can also keep pest flies away if done carefully.
Space and shape
Newly emerged soldier flies mate in flight.
Adults typically mated and oviposited at temperatures of 24 °C (75 °F) up to 40 °C (104 °F) or more. 99.6% of oviposition in the field occurred at 27.5–37.5 °C (81.5–99.5 °F).
Quartz-iodine lamps have been successfully used to stimulate mating of adult BSF. In tropical conditions, morning direct sunlight is optimal for emergence, mating and egg laying, with indirect sunlight often preferred pre and post mating.
70% RH for all stages of the life cycle is considered optimal. 
Substrate was found to be unnecessary for pupation. however it was postulated that substrate acts as a regulator for humidity which prevents desiccation. a 93% emergence rate was observed when humidity was held at 70%.
Black soldier fly larvae are edible to humans. The larvae are highly efficient in converting proteins, containing up to 42% of protein, much calcium and many amino acids. In 432 hours, 1 gram of black soldier fly eggs turns into 2.4 kilograms of protein. They thus can be a source of protein for human consumption.
In 2013, Austrian designer Katharina Unger invented a table-top insect breeding farm called "Farm 432" in which people can produce edible fly larvae at home. It is a multichambered plastic machine that looks like a kitchen appliance. According to Unger: “Farm 432 enables people to turn against the dysfunctional system of current meat production by growing their own protein source." About 500 g of larvae or two meals can be produced in a week by the machine.
The taste of the larvae is said to be very distinctive. Unger: "When you cook them, they smell a bit like cooked potatoes. The consistency is a bit harder on the outside and like soft meat on the inside. The taste is nutty and a bit meaty."
Black soldier fly larvae and redworms
Worm farmers often get larvae in their worm bins. Larvae are best at quickly converting "high-nutrient" waste into animal feed. Redworms are better at converting high-cellulose materials (paper, cardboard, leaves, plant materials except wood) into an excellent soil amendment.
Redworms thrive on the residue produced by the fly larvae, but larvae leachate ("tea") contains enzymes and tends to be too acidic for worms. The activity of larvae can keep temperatures around 37°C (100°F), while redworms require cooler temperatures. Most attempts to raise large numbers of larvae with redworms in the same container, at the same time, are unsuccessful. Worms have been able to survive in/under grub bins when the bottom is the ground. Redworms can live in grub bins when a large number of larvae are not present. Worms can be added if the larval population gets low (in the cold season) and worms can be raised in grub bins while awaiting eggs from wild black soldier flies.
Possible Natural Enemies
In West Africa, Dirhinus giffardii has been found to be a parasitoid of H. illucens pupae and have a negative impact on egg production. It has been found to reduce stocks by up to 72%. The parasite is carried by the wasps and precautions should be taken to protect the larvae from exposure to these wasps. 
Names and trademarks
A generic term for grubs of Hermetia illucens is black soldier fly larvae, abbreviated as "BSFL". BSFL were developed as a feeder insect for exotic pets by D. Craig Sheppard. Dr. Sheppard named the larvae Phoenix Worms and began marketing them as pet food. In 2006, Phoenix Worms became the first feeder insect to be granted a U.S. registered trademark. Other companies also market BSFL under such brand names as "NutriGrubs", "Soldier Grubs", "Reptiworms", "Calciworms", and "BIOgrubs." In Australia BSFL are marketed as live feeder insects under the brand name "Beardie Grubs".
- Hermetia illucens (University of Florida)
- Savonen, Carol. "Big maggots in your compost? They're soldier fly larvae". OSU Extension Service - Gardening. Oregon State University.
- TROVET Hypoallergenic (Insect) | IPD (TROVET Netherlands)
- Lohri, Christian Riuji; Diener, Stefan; Zabaleta, Imanol; Mertenat, Adeline; Zurbrügg, Christian (2017-03-01). "Treatment technologies for urban solid biowaste to create value products: a review with focus on low- and middle-income settings". Reviews in Environmental Science and Bio/Technology. 16 (1): 81–130. ISSN 1569-1705. doi:10.1007/s11157-017-9422-5.
- "Black Soldier Fly: Compiled Research On Best Cultivation Practices". Research Resources. 9 July 2008.
- Feeding Grubs to Birds EXPERIMENT
- "Research Summary: Black Soldier Fly Prepupae - A Compelling Alternative to Fish Meal and Fish Oil". February 14, 2011.
- Breeding BSF in captivity / Re: not easy
- (translation of) Zucht der schwarzen Soldatenfliege (Hermetia illucens)
- booth; sheppard (1984). https://academic.oup.com/ee/article-abstract/13/2/421/2393178/Oviposition-of-the-Black-Soldier-Fly-Hermetia?redirectedFrom=fulltext. Missing or empty
- Zhang; et al. (2010). "An Artificial Light Source Influences Mating and Oviposition of Black Soldier Flies, Hermetia illucens". Journal of Insect Science Oxford.
Under the quartz-iodine lamp... mating pairs were observed...approximately 39% less than observed when observing the effects of sunlight
- "Nutrition Technologies | Black Soldier Fly". Nutrition Technologies | Black Soldier Fly. Retrieved 2017-09-09.
- Holmes (2010). "Role of Abiotic Factors on the Development and Life History of the Black Soldier Fly, Hermetia illucens (L.) (Diptera: Stratiomyidae)". university of windsor.
- Holmes (2012). "Substrate effects on pupation and adult emergence of Hermetia illucens (Diptera: Stratiomyidae)." (PDF). Entomological Society of America.
- Katharina Unger, “Farm 432: Insect Breeding” in Dezeen Magazine, 25.3.2013, at http://www.dezeen.com/2013/07/25/farm-432-insect-breeding-kitchen-appliance-by-katharina-unger/
- Modern animal feed eco-friendly solutions
- "TABLE 05: Common Helminths of Poultry". The Merck Veterinary Manual / Poultry / Helminthiasis. Retrieved April 20, 2008.
- Devic, Emilie; Maquart, Pierre-Olivier (2015-12-09). "Dirhinus giffardii (Hymenoptera: Chalcididae), parasitoid affecting Black Soldier Fly production systems in West Africa". Entomologia. 3 (1). ISSN 2281-9584.