How to Attract Black Soldier Flies and Start a Colony

Black soldier flies are drawn to the smell of decomposing organic matter, particularly fermenting fruit and grain. To attract them reliably, you need three things working together: the right bait, a sheltered egg-laying spot, and environmental conditions warm enough to support their activity. Get those elements in place and wild females will find your bin or compost setup on their own.

What Attracts Them: Scent and Bait

Female black soldier flies locate egg-laying sites primarily through smell. They home in on volatile compounds released by decaying organic material, especially the chemical signatures produced by bacteria and fungi as they break down food. In practical terms, this means your bait should already be fermenting when you set it out, not fresh.

The most effective baiting materials include overripe or rotting fruit (bananas and apples work well), spent grain from brewing, chicken manure, rabbit manure, and mixed household food scraps. Research on the specific scent compounds these materials release found that a chemical produced by bacteria during active growth on substrates like apple, banana, and spent grain was one of the strongest indicators of an attractive site. Spent grain carries a naturally appealing scent profile that draws females in, and fruit wastes produce a cocktail of fruity, fermented odors that serve as landing signals.

To maximize the scent signal, keep your bait moist. Aim for roughly 70% moisture, about the consistency of a wrung-out sponge. Dry bait produces fewer of the volatile compounds that carry through the air, so if your setup is in a hot, dry climate you may need to sprinkle water on the bait every day or two. Mixing multiple food types together often creates a broader scent profile that reaches more flies.

Setting Up an Egg-Laying Site

Attracting adults is only half the job. You also need to give females somewhere to deposit eggs, because they won’t lay directly on food. Black soldier flies seek out narrow crevices near (but not touching) decomposing material. In the wild, they use cracks in wood or dried plant material. In a composting setup, the standard approach is corrugated cardboard.

Take a small stack of corrugated cardboard strips and suspend it inside your bin, close to the bait but above it. Purdue University’s composting guide recommends attaching the cardboard with a binder clip, twist tie, or string to a PVC fitting inside the bin lid. The corrugations create the narrow channels females are looking for. The cardboard should stay dry; if it gets soggy from condensation or bait moisture, the eggs can be damaged and the females may avoid it. Replacing the cardboard every week or two keeps the surface fresh and appealing.

Some people use fluted plastic sheeting (like corrugated plastic sign material) as a reusable alternative. The channel size is similar to cardboard corrugation and it holds up better in humid bins.

Temperature and Timing

Black soldier flies reproduce within a temperature range of 20 to 35°C (68 to 95°F), with peak egg production at 30°C (86°F). Below 20°C, reproductive activity drops sharply. Below 15°C, eggs stop being viable. Above 40°C (104°F), eggs collapse and die. If you live in a temperate climate, this means your window for attracting wild BSF is roughly late spring through early fall.

On a farm in Georgia, peak harvest season for black soldier fly larvae ran from April or May through September. In tropical and subtropical regions, BSF can be active year-round. In cooler climates (northern US, Canada, northern Europe), the season may compress to just June through August. If your area rarely reaches sustained temperatures above 68°F, attracting wild populations will be difficult without supplemental heat.

Place your bin or trap in a shaded area. Research trapping wild BSF in Kenya found the best results when traps were hung on stands about one meter (roughly three feet) above the ground, positioned under shade near homesteads or close to areas where organic waste accumulates. Direct sun can overheat both the bait and the eggs. A spot that gets dappled morning light but stays shaded during the hottest part of the day is ideal.

Light Requirements for Mating

Here’s a detail many beginners miss: adult black soldier flies need exposure to natural sunlight to mate. Without mating, females don’t produce fertile eggs, so even a perfectly baited trap in a dark garage won’t establish a colony. Mating activity peaks around 10:00 in the morning and is triggered by light in the 450 to 700 nanometer wavelength range, which corresponds to visible light from blue-green through orange. Ultraviolet “bug lights” in the 350 to 450 nanometer range do not stimulate mating behavior.

On cloudy days and during winter, mating drops off significantly. If you’re running an enclosed setup, a quartz-iodine lamp (which mimics the full spectrum of sunlight) has been shown to successfully induce mating and egg-laying indoors. Standard fluorescent or LED grow lights may not provide the right spectrum. The key takeaway for outdoor setups is simpler: make sure the area around your bin gets some direct or bright indirect sunlight during morning hours, even if the bin itself is shaded.

Bin Design That Keeps the Right Flies In

One common frustration is attracting house flies and fruit flies instead of (or alongside) black soldier flies. A few design choices help tip the odds in your favor.

  • Limit access points. BSF are larger than house flies and fruit flies, but they don’t need big openings. Small entry gaps or PVC pipe entrances allow BSF in while making it easier to screen out smaller pests with mesh.
  • Bury fresh food scraps. House flies lay eggs on exposed surfaces. If you cover new bait with a layer of finished compost or existing BSF-processed material, you reduce the attractant signal for house flies while the deeper fermentation scents still draw BSF.
  • Let larvae do the work. Once a BSF colony establishes, the larvae themselves produce compounds that deter house flies. A mature bin with an active larval population naturally suppresses other fly species over time.
  • Maintain moisture balance. Overly wet, anaerobic conditions favor house flies and produce foul odors. Keeping the bin at that 70% moisture target, with some drainage, creates conditions BSF prefer while making the environment less hospitable to pests.

Bootstrapping Your First Colony

If you’ve never had black soldier flies at your location, getting the first generation established takes patience. Set out your baited bin with cardboard egg traps during the warmest months and give it two to four weeks. BSF are widespread across tropical, subtropical, and warm-temperate regions worldwide, so if your area has warm summers, wild females are almost certainly nearby. They’re just not as conspicuous as house flies because adults don’t enter homes or buzz around people.

To speed things up, place your bin near an existing compost pile, animal enclosure, or outdoor garbage area where organic waste already accumulates. These spots are already on the flight paths of local BSF. You can also obtain a starter culture of BSF larvae from online suppliers or local composting communities. Once larvae are processing waste in your bin, the scent they produce acts as a powerful ongoing attractant for wild females looking to lay eggs.

Check your cardboard traps every few days. BSF eggs look like tiny, pale clusters packed into the corrugation channels. Each female can lay around 500 eggs at peak conditions, so a single successful visitor can jumpstart your entire colony. Once you spot eggs, keep the bin conditions stable (moist bait, shade, warmth) and the larvae will hatch within a few days and begin feeding immediately.