How to Raise Black Soldier Fly Larvae: Setup to Harvest

Raising black soldier fly larvae (BSFL) is straightforward once you understand their basic needs: warm temperatures, moist food waste, and the right setup for each life stage. The entire lifecycle takes roughly 45 days, and the larvae themselves do most of the work, converting kitchen scraps and organic waste into protein-rich biomass you can use as animal feed, compost amendment, or fishing bait. Here’s how to set up and manage a colony from eggs to harvest.

Understanding the Lifecycle

Black soldier fly development breaks into four stages: egg (about 4 days), larva (about 18 days), prepupa (about 14 days), and adult (about 9 days). The larvae and prepupae are the stages you’ll interact with most. Larvae are light-colored, hungry, and stay buried in their food. When they’re ready to pupate, they darken to a brownish-black, stop eating, and instinctively crawl away from the substrate, climbing upward and out of the bin. This “self-harvesting” behavior is one of the reasons BSFL are so easy to manage compared to other insects.

Adults don’t bite, don’t eat (they survive on fat reserves), and live only about nine days. Their sole purpose is to mate and lay eggs. If you’re running a continuous colony, you’ll need to keep a breeding population of adults going. If you just want a single batch of larvae, you can buy eggs or young larvae online and skip the breeding step entirely.

Setting Up a Larval Bin

Your bin can be as simple as a dark-colored plastic storage tote with a lid. Drill small ventilation holes near the top for airflow, and add drainage holes at the bottom, since decomposing food releases a lot of liquid. Place the bin on a tray to catch that runoff. A ramp or angled exit tube near the top of the substrate gives prepupae a crawl-off path. When larvae mature into prepupae, they’ll climb the ramp and drop into a separate collection container, essentially harvesting themselves.

Start with a 2 to 3 inch layer of substrate in the bin. Food waste works well: fruit and vegetable scraps, spent grains, coffee grounds, or overripe produce. Avoid meat, dairy, and oily foods in small home setups, as these attract pests and generate strong odors before the larvae can process them.

Temperature and Humidity

Temperature is the single biggest factor in how fast your larvae grow and whether they survive. The optimal range for larval development is roughly 30 to 36°C (86 to 97°F). At 30°C, population growth rate peaks and colony doubling time drops to about 5.5 days. Larvae can tolerate temperatures down to about 15°C (59°F), but growth slows dramatically. Below 15°C or above 40°C (104°F), you’ll see complete mortality.

If you’re raising BSFL indoors or in a temperate climate, a simple seedling heat mat under the bin can keep temperatures in range during cooler months. In tropical or subtropical regions where the flies are native, outdoor rearing works year-round without supplemental heat.

Humidity in the air around the bin should stay around 65 to 70%. The substrate itself needs to be moist but not waterlogged. Think the consistency of a wrung-out sponge. Too much moisture drowns larvae and increases mortality. Too little dries them out and stalls growth.

Managing Substrate Moisture

Controlling moisture inside the bin is one of the trickiest parts of BSFL rearing. Fruits and vegetables are mostly water, and as larvae break them down, the substrate can quickly become soupy. Excess moisture pushes larvae to the surface, reduces feeding efficiency, and raises mortality rates.

The fix is mixing in a dry bulking material. Rice husks are one of the best options: they absorb excess liquid, maintain structure in the substrate, and can be used at up to 50% of the mix by weight without harming the larvae. Rice bran also works well and adds nutrition, but keep it below 15% of the total mix. Above that, it generates heat as it decomposes and can dry out or overheat the substrate. Coconut coir is another effective option, though it needs to be washed first to remove tannins that can harm the larvae.

A practical approach is to blend your food waste with 10 to 25% dry material by weight before adding it to the bin. If you notice pooling liquid at the bottom, increase the dry material ratio or improve your bin’s drainage.

How Much and How Often to Feed

BSFL are remarkably efficient waste processors. They achieve a feed conversion ratio between 1.4 and 2.6, meaning it takes roughly 1.4 to 2.6 pounds of food to produce one pound of larvae. They can reduce fruit and vegetable waste by nearly 80% of its original mass, which is the highest reduction rate among common waste substrates.

For a home colony of a few thousand larvae, start by offering a thin layer of food waste every two to three days and observe how quickly it disappears. If food is sitting uneaten for more than 48 hours, you’re overfeeding, and the excess will rot, smell, and attract unwanted pests. If the larvae consume everything within a day, increase the amount. As the larvae grow through their later stages, their appetite increases sharply, so you’ll need to scale up portions over the 18-day larval period.

One useful indicator of colony health is pH. Active larvae naturally push their substrate to a pH of about 8.5 to 9.2, which is mildly alkaline. This creates conditions that favor beneficial bacteria and discourage many pathogens. You don’t need to adjust the pH yourself. If the substrate smells strongly of ammonia, it typically means you’re overfeeding protein-rich waste or the bin is too wet. Cut back on feeding and add more dry material.

Breeding Adults for a Continuous Colony

If you want a self-sustaining colony rather than buying new eggs each cycle, you’ll need to let some prepupae develop into adults and mate. This is where lighting matters. Adult black soldier flies need bright light with specific qualities to trigger mating. Blue light (around 440 nanometers) and green light (around 540 nanometers) are especially important for mating success. Ordinary household bulbs won’t cut it.

Outdoors in direct sunlight, mating happens naturally. Indoors, you need a light source that mimics sunlight’s intensity and spectrum. Specialized LED panels designed for black soldier fly breeding produce 3,000 to 6,000 lux with high output in the blue range. Alternatively, high-wattage reptile lamps that produce UV light at around 127,000 lux (at close range) have been used successfully. Standard compact fluorescent “natural light” bulbs, even those marketed for reptiles, typically produce far too little light on their own, sometimes just 200 to 500 lux, and flies won’t mate under them.

Set up a mesh cage or screened enclosure for your adults, positioned under the light source with a 12-hour on, 12-hour off cycle. Place a small container of corrugated cardboard or bundled wooden slats near the food bin as an egg-laying site. Females deposit tiny clusters of cream-colored eggs in tight crevices. Once you see eggs, transfer the cardboard to your larval bin, where they’ll hatch in about four days.

Harvesting and Storing Larvae

Most people harvest at the prepupal stage, when the larvae have stopped eating and turned dark. At this point, they’re at peak weight and nutritional density: roughly 39 to 48% protein and 26 to 38% fat on a dry-weight basis, with significant calcium content. This makes them excellent feed for chickens, reptiles, fish, and other animals.

The self-harvesting ramp makes collection easy. Prepupae crawl up and out, dropping into whatever container you place at the end of the ramp. Check the collection bucket daily. If you want to harvest younger larvae while they’re still actively feeding, you can sift them from the substrate using a mesh screen.

For short-term storage of live larvae, keep them at 10°C (50°F). At this temperature, they enter a dormant state and can survive for about six days with less than 15% loss. Lower temperatures of 6 to 8°C also work but result in slightly higher mortality. Store them in a ventilated container, and adding a small amount of frass (their substrate residue) helps maintain moisture. For long-term preservation, freezing, drying, or roasting the larvae are all effective.

What to Do With the Frass

The residue left behind after larvae process your waste is called frass, and it’s a valuable byproduct. BSFL frass has a nutrient profile comparable to commercial fertilizers, with an NPK ratio of roughly 4.9-2.6-1.7 (nitrogen-phosphorus-potassium). You can apply it directly to garden beds as a soil amendment or compost it further. It’s one of the reasons BSFL systems produce almost zero true waste: the larvae become feed, and the frass becomes fertilizer.

Regulations to Keep in Mind

Black soldier flies are not considered invasive or pestiferous. In warm climates where they naturally occur, you can rear them in open outdoor systems with no special containment. In cooler climates, they won’t survive winter outdoors, so escapees aren’t an ecological concern.

If you’re raising larvae as animal feed in the United States, regulations apply. AAFCO has approved dried BSFL for feeding salmonid fish (salmon, trout), but only when the larvae were raised on feed-grade materials. Feeding BSFL raised on food scraps or manure to livestock is not currently permitted under U.S. regulations. For personal use, such as feeding backyard chickens or pet reptiles, enforcement is less formal, but it’s worth knowing the rules. In the EU, similar restrictions exist on what substrates can be used: animal-derived waste, catering waste, and manure are explicitly excluded as feed substrates for insects destined for the food chain.