Those small, white, worm-like creatures in your beans are almost certainly bean weevil larvae, not true maggots. They’re a common pantry pest that develops inside dried beans, lentils, and peas, often without any visible sign on the outside of the bean until the larvae have finished growing. The good news: they aren’t dangerous to eat, even accidentally.
What You’re Actually Looking At
Bean weevils (sometimes called seed beetles) lay their eggs directly on or inside dried beans. The larvae are white, legless, and roughly 1/8 inch long, which is why they look strikingly like tiny maggots. But unlike fly maggots, these larvae live their entire development cycle inside a single bean, eating the starchy interior as they grow. A closely related species, the cowpea weevil, follows the same pattern: a female lays over 100 eggs in her lifetime, typically one per seed, gluing each egg to the bean’s surface.
Once a larva hatches, it bores into the bean and feeds for two to six weeks before pupating. During this phase, the bean may look completely normal from the outside. You won’t see entry or exit holes until the adult beetle chews its way out. That’s why an infestation can be well underway before you notice anything wrong. The first clue is often finding the larvae themselves when you soak, rinse, or cook a batch of beans, or noticing small round holes and powdery residue in the bag.
Are They Harmful if You Ate Them?
No. Bean weevils and their larvae don’t carry diseases, don’t produce toxins, and don’t bite or sting. They feed exclusively on plant material. If you cooked and ate beans that had larvae inside, you’re unlikely to get sick. The larvae reduce the nutritional quality of the beans themselves, breaking down some of the carbohydrates and protein as they feed, but they don’t make the food poisonous. The main issue is cosmetic and culinary: nobody wants to eat bugs, and heavily infested beans can taste stale or have a mealy texture.
If you’ve already eaten a meal made with infested beans and feel fine, there’s nothing you need to do. If you’re uncomfortable, toss the remaining beans and move on to cleanup.
How to Check Your Pantry
Bean weevils rarely limit themselves to one package. Once adults emerge, they can spread to any nearby dried goods. Pull everything off the shelf and inspect not just beans, but also lentils, peas, rice, flour, nuts, dried fruit, spices, cereal, birdseed, and dry pet food. Look for:
- Small round holes in individual beans or seeds, a sign that adult beetles have already emerged
- Fine powdery dust (called frass) at the bottom of bags or containers, which is larval waste
- Tiny beetles crawling on shelves or inside packaging, roughly 1/8 inch long, brownish with dark patches
- White larvae or pupae visible when you break open a bean or pour out the contents of a bag
Any package that shows signs of infestation should go straight into an outdoor trash bin. Don’t just toss it in the kitchen trash, where adults could still escape and re-infest your pantry.
Cleaning and Preventing Re-Infestation
After removing infested items, vacuum all shelves, corners, and crevices thoroughly. Bean weevils hide in cracks in shelving and cabinet joints. Follow up by wiping everything down with warm, soapy water. If you have caulk on hand, sealing cracks in your cabinet interiors limits hiding spots.
Going forward, the single most effective prevention step is airtight storage. Transfer dried beans and other bulk legumes into glass jars with screw-top lids or heavy plastic containers with tight seals as soon as you bring them home. The original plastic or paper bags they come in are no barrier to these pests. A package that isn’t sealed tightly after opening is an invitation for beetles already in your pantry to move in.
Freezing works too. Placing dried beans in a sealed plastic bag and putting them in a freezer at 0°F for three to four days kills eggs and larvae at all stages. Use the beans soon after thawing, though, because defrosting introduces moisture that can eventually cause mold if the beans sit around. Sealing them in a bag before freezing helps limit condensation.
A few other habits that help: don’t stockpile more dried beans than you’ll use in a few months, and rotate your supply so the oldest packages get used first. The longer beans sit on a shelf, the more time any hitchhiking eggs have to develop into a full-blown infestation.
Why You Didn’t See Them Sooner
This is the most frustrating part. Bean weevil eggs are tiny, about 0.7 millimeters long, transparent, and glued flat against the seed surface. You’d need magnification to spot them. Once the larva hatches and tunnels inside, it’s completely hidden. The bean’s shell may thin slightly as the larva grows and pupates, but that’s nearly impossible to notice with the naked eye in a bag of hundreds of beans. Most people discover the problem only when they see exit holes, floating larvae during soaking, or adult beetles crawling around the pantry.
This doesn’t mean the beans were contaminated at the store. Weevil eggs can be present on beans at harvest, during processing, or during storage at any point in the supply chain. Buying from stores with high turnover helps, since the beans spend less time sitting around, but freezing and transferring to airtight containers remains the most reliable defense.