Black Soldier Fly Larvae in Buckets: Free Feed From Scraps
Turn wet kitchen scraps, spoiled fruit and manure into protein feed for chickens, ducks, fish and pigs with a simple bucket setup.
Published

Right now, in many places, rotting fruit, wet kitchen scraps and manure pile up faster than you can use them. Black soldier fly larvae can turn that waste into fat, protein-rich grubs your chickens, ducks, fish and pigs will eat. You need little more than a few plastic buckets, some dry bedding and a roof over your head. This guide shows you how to set it up, feed it, harvest it and stay safe.
Why black soldier fly larvae suit this time of year
The black soldier fly is a wild insect found across tropical Asia, including Cambodia, Thailand, Vietnam, Laos, the Philippines, Malaysia and Indonesia. The adult fly does not bite and does not come into kitchens the way house flies do. It lives only for about a week and lays its eggs near rotting food.
The larvae are pale grey-brown grubs that eat wet organic waste very quickly. They like warm, damp conditions, and the current weather in many areas gives them plenty of both. Wet waste that would otherwise smell and attract house flies becomes food for the larvae. What is left behind is a dark, crumbly material you can add to compost or garden beds.
Be honest with yourself about what to expect. How much feed you get depends on your weather, how much waste you add and how well you look after the bins. A bucket system will not replace all bought feed, but it can add useful protein and cut your waste.
What you need
Most of these items are already on a small farm. Costs vary a lot by country, but a basic setup often costs between 5 and 25 US dollars if you buy new buckets.
- Two or three plastic buckets or bins of about 20 litres, with lids
- One shallow tray or small bucket for collecting larvae
- A short piece of wood or plastic for a ramp
- Dry bedding: rice husk, coconut coir, dry leaves, sawdust or torn cardboard
- Strips of corrugated cardboard for the flies to lay eggs on
- A drill or a heated nail to make holes, and fine mesh or old mosquito net
- Gloves, sturdy shoes, eye protection and a dust mask
Choose a shaded place under a roof, raised off the ground, where rain cannot splash in and floodwater cannot reach. A veranda edge, an animal shed or under a carport works well. Keep it a few metres from the house.
Setting up the bucket, step by step
Step 1: Prepare the bucket
Work in a dry, calm spot. Put on eye protection and gloves before drilling. Drill 6 to 10 small holes in the bottom of one bucket so liquid can drain. Stand this bucket inside a second bucket, raised on two bricks or a block, so the liquid collects underneath. Drill a row of small air holes near the top and cover them with mesh from the inside to keep out rats and lizards.
Cut a slot or hole near the top edge on one side. Fix a ramp inside the bucket at a gentle angle, rising from the food to that hole. Grown larvae will crawl up the ramp and drop into a collection tray placed outside the hole. If you use a heated nail instead of a drill, hold it with pliers, not your fingers.

Step 2: Add bedding and the first food
Spread a layer of dry bedding about 5 to 10 centimetres deep in the bottom. This soaks up extra liquid, which matters a lot when your scraps are wet. On top, add a few handfuls of soft, wet food: overripe banana, papaya, mango, cooked rice, vegetable peels or coffee grounds. Chop large pieces smaller with a knife so the larvae can eat them faster.
If you use manure, wear gloves and a mask, and wash your hands well afterwards. Chicken, pig, cow or duck manure all work, but mix it with fruit or vegetable scraps. Do not use dog, cat or human waste.

Step 3: Attract the flies
You do not need to buy eggs in most tropical areas. Leave the lid slightly open, or replace it with a loose cover that leaves a gap of a few centimetres. Tape or clip two or three strips of corrugated cardboard just above the food, on the inside wall. Female flies like to lay eggs in the small dry gaps of the cardboard, close to rotting food.
Within a few days to two weeks, you should see clusters of tiny eggs in the cardboard, then very small larvae in the food. If nothing appears after two or three weeks, move the bucket to a warmer, more sheltered spot, or ask a neighbour who already keeps larvae for a handful to start your bin.

Feeding and caring for the larvae
Once the larvae are active, feed them every one or two days. Start with small amounts and add more as they grow. A good sign is when yesterday's food is mostly gone and the surface moves with larvae.
- Keep the mix damp but not flooded. It should feel like a wet sponge, not soup.
- If liquid pools on top, add more dry bedding such as rice husk or cardboard.
- If it smells sour or rotten, you are adding too much food. Stop feeding for a day and add dry material.
- Empty the liquid from the bottom bucket every few days. Dilute it with lots of water, about 1 part to 10 or more, before pouring it around fruit trees, or add it to compost.
- Avoid large amounts of meat, fish, oily food, salty food and citrus peel.
- Keep the bucket out of rain and direct afternoon sun. Too much heat can kill the larvae.
When storms are forecast, check that your shelter is secure and the bucket stands well above any water that might rise. Never wade into floodwater to rescue a bin.
Harvesting and feeding the larvae to your animals
In warm weather, larvae usually grow to full size in about two to four weeks. When ready, they turn darker brown or almost black and stop eating. At this stage they look for a dry place to change into flies, so they climb the ramp by themselves and fall into your collection tray.

Collect the tray every morning. Wear gloves. You can give the larvae to animals in these ways:
- Chickens and ducks: scatter a handful on the ground or in a feeder as a treat alongside their normal feed.
- Fish: drop a small amount into the pond and watch that it is all eaten, so leftovers do not foul the water.
- Pigs: mix larvae into their normal feed in small amounts.
Start slowly and treat larvae as a supplement, not the whole diet. Animals still need a balanced feed. If you have more than you need, you can spread larvae on a clean tray and dry them in the shade or in a pan over low heat, then store them in a sealed container for a short time.
Let some larvae turn into flies so your bin keeps going. Leave a few dark larvae in a container of dry bedding with a loose cover near the bucket. The new flies will lay eggs back on your cardboard strips.
Every few weeks, empty most of the leftover material, called frass, into your compost heap or garden beds. Leave a little in the bucket with some young larvae, add fresh bedding, and continue.
Problems, safety and local rules
Most problems come from too much water or too much food. Here are common ones:
- Many house flies and maggots: the bin is too wet and too smelly. Add dry bedding, feed less, and bury fresh food under a thin layer of bedding.
- Larvae crawling out everywhere: the bin is too wet or too hot. Add bedding and move it to shade.
- Ants: stand the bucket legs in small dishes of water.
- Rats: check your mesh and keep the lid in place with a gap only at the top.
Always wear gloves when handling scraps, manure and larvae, and wear a mask when mixing dusty bedding or manure. Wash your hands and tools afterwards. Keep children away from manure bins.
Rules differ by country and place. Some countries limit feeding kitchen scraps or manure-raised insects to farm animals, especially pigs, because of diseases such as African swine fever. To be careful, do not put meat, bones or food that touched raw meat into a bin whose larvae will go to pigs. Check your local animal health and feed rules, and ask a livestock extension officer or an experienced local farmer before you feed larvae to animals you plan to sell. Climate, waste types and results also change from place to place, so start with one bucket, learn how it behaves, and grow from there.