You lifted the lid on the kitchen trash, or moved the compost bucket, or opened the bin under the sink, and there was a pile of fat, flat, grayish grubs moving around in there. Now you're on your phone trying to figure out what they are and whether you should be worried.
Short version. You are almost certainly fine, this is not a hygiene failure on your part, and the fix is boring.
I raise these things on purpose, so I'm not exactly a neutral party here. But I also get this question a lot from people who are not remotely interested in insect farming and just want them out of the kitchen. So let me answer it straight.
First, make sure that's what you're looking at
Black soldier fly larvae are distinctive once you know the shape. They're flattened rather than round, tapered at one end, and the body is segmented in a way that makes them look a little armored. Full grown they run about three quarters of an inch to an inch. Color goes from creamy white when young to a dull gray or dark brown as they approach the prepupal stage.
They move by pulling themselves along, and a group of them together makes an audible dry rustling sound. Not a wet sound. If you hear anything at all it's more like rice being poured.
The thing that separates them from house fly larvae, which are what most people assume they've found, is the shape and the behavior. House fly larvae are pale, tapered, glossy, and round in cross section. They also stay in the wet material. Black soldier fly larvae will actively crawl away from the food when they're done eating, which is often exactly how you found them, because one of them ended up out on the floor or on a wall.
The other tell is what happens next. If you leave the room and come back and the pile has thinned out, that's black soldier fly larvae leaving on their own. House fly larvae do not do that in the same way.
Why they showed up
The adult is a black wasp-looking fly, roughly three quarters of an inch long, with a couple of pale windows on the abdomen. It does not bite. It does not have functional mouthparts to bite with. Adults do not eat at all, they live off fat stored during the larval stage, and they're generally alive for somewhere between five days and two weeks.
Which means the adult that laid these eggs was not attracted to your house for food. She was looking for a place to put eggs where her offspring would land on something decomposing. A trash can with meat scraps in it, a compost bucket you forgot for four days, a bag of potatoes that went bad in the pantry, a bin of chicken feed that got damp. Anything organic and going soft.
She probably laid outside the container, in a dry crack near the opening, and the hatchlings dropped in. That's the normal pattern. They lay near the food, not in it.
So the presence of larvae is telling you there's something decomposing nearby, and there was a gap large enough for a fly to get to it. That's the whole story.
They are not a disease problem
This is the part people actually want to know, and it's the part where black soldier flies are genuinely different from house flies.
Adult black soldier flies do not feed on garbage or waste, because they do not feed at all. They do not land on your food and then land on something else, which is the mechanism by which house flies move pathogens around. There's a body of research on black soldier fly larvae actively suppressing bacteria like E. coli and Salmonella in the material they're processing, which is part of why they get used in waste management at all.
They also don't infest living tissue, they don't chew through structures, they don't bite, and they don't reproduce indoors in any sustained way, because the adults need warmth and open space and light to mate.
So finding them is unpleasant if you weren't expecting it. It is not dangerous.
What to actually do about them
Find the source. That's the whole job. The larvae are downstream of something, and if you remove the something, they leave or die out and don't come back.
Check the kitchen trash first, then the compost bucket, then under the sink, then the pantry for a bag of produce that turned. If you have pets, check the feed storage. If you have a garage fridge, check what's under it.
Once you find it, bag it and take it out. Then wash the container with soap and hot water, because the residue is what the next fly smells.
For the larvae themselves, you have options. You can scoop them and dump them outside, where they'll finish their life cycle in the yard and do you no harm. If you keep chickens, they will be extremely happy about this development. Or you can bag them with the trash. I'm not going to pretend I love that option, but it's your house.
What I'd skip is insecticide. You do not have an infestation, you have a food source, and spraying the symptom while leaving the source means you get to do this again in two weeks.
Preventing it from happening again
Lids that actually seal, on anything with food waste in it. Empty the kitchen compost bucket every two or three days in warm weather instead of every week. Keep the outdoor bin away from the door. That's most of it.
Screens on windows help but honestly these flies get in through open doors more than anything, and they're not aggressive about coming indoors in the first place. She was looking for the smell, not for you.
If you want to go the other direction
Some people find these in the compost, look them up, and then get interested. That happened to me, roughly, except I went looking for them first.
Black soldier fly larvae process food waste faster than anything else I've tried, and what's left over is frass, which goes straight into the garden. If you keep chickens or reptiles, the grubs themselves are a live protein source you didn't have to buy. If that's a direction you want to take this, the BSFL Bin Kit is the outdoor version of what accidentally happened in your trash can, except it has a ramp so the grubs harvest themselves into a container instead of onto your kitchen floor.
To be clear, that's an outdoor setup. Not a kitchen one. The bin lives outside, in shade, and the flies come and go on their own.
FAQ
Are black soldier fly larvae harmful to humans? No. They don't bite, they don't sting, they don't transmit disease the way house flies do, and the adults have no functional mouthparts. They're a nuisance indoors, not a health risk.
How did black soldier fly larvae get in my house? An adult female found something decomposing, usually in a trash or compost container, and laid eggs in a dry gap near it. The hatchlings dropped into the food. She likely came in through an open door.
Will black soldier fly larvae infest my house? No. They need decomposing organic material to develop and they leave it when they're done. Adults need warmth, space, and light to mate, which they don't get indoors. Remove the food source and the cycle stops.
Do black soldier fly larvae bite? No. Larvae have chewing mouthparts for soft decomposing material and cannot break skin. Adults cannot bite at all.
Should I kill them or put them outside? Either works. Outside is fine and they'll finish their cycle in the yard. If you have chickens, put them where the chickens can find them.
Is finding them a sign my house is dirty? Not really. A forgotten compost bucket or a bag of potatoes going soft is enough. One fly and one open door is all it takes.
Find the source, bag it, wash the container. That's the fix, and it's usually a ten minute job once you know where to look.