Wormery pests: how to recognise them and get rid of them

Willy the compost worm, dressed as a detective, swats fruit flies around his WORMbox wormery; on the floor, a dish of cider vinegar and washing-up liquid traps them

Unlike the little creatures we describe in our guide The other inhabitants of the wormery, some organisms do call for real action on your part. The good news: most of them share the same cause — too much acidity or moisture — and can therefore be dealt with using the same simple steps.

Fruit flies, the most common pest

Top tray of a WORMbox wormery covered with pieces of cardboard and crushed eggshells to keep fruit flies awayThis is by far the most common problem in vermicomposting. The first thing to understand is that fruit flies do not come because you have a wormery. They are already buzzing around your fresh fruit bowls or houseplants — it is only if your wormery becomes welcoming to them (an environment that is too acidic or too wet) that they choose to settle in it. Keeping the right acidity/moisture balance therefore remains the best prevention.

As soon as a dozen or so fruit flies start coming out of the wormery, take action rather than waiting for things to get worse:

  • Pause feeding: in the active tray, add 2 to 3 tablespoons of RegulaWorm or crushed eggshells, then cover the whole surface with a good layer of cardboard torn into small pieces, 2 to 3 cm thick — this creates a real barrier against fruit flies. Leave this tray alone for 2 to 3 weeks;
  • Homemade trap: pour some cider vinegar and a drop of washing-up liquid into a small dish. The fruit flies are attracted by the vinegar, then trapped by the stickiness of the washing-up liquid;
  • Preventive repellent: wipe a little black soap over the outside walls of the wormery so they stop hovering around it.
Willy's tip

If your wormery is outdoors or the summer weather allows, leave the lid open for 2 to 3 days, even overnight, to let as many adult fruit flies as possible escape, then apply the cardboard barrier to stop them coming back.

Black soldier fly larvae, more conspicuous cousins

Greyish black soldier fly larvae on kitchen scraps in a wormery, next to thinner compost worms

Under the same conditions as fruit flies — exposed fresh scraps, an environment that is too acidic or too wet — you may also see black soldier fly larvae appear: larger (up to 2 cm), greyish and far more visible than fruit fly maggots. Rest assured, they do not attack your worms, but they can compete with them by quickly devouring large quantities of scraps. Being a good size, they are easy to remove by hand; then follow the same steps as for fruit flies (cardboard, a break from feeding) to stop them returning.

Ants, the opposite signal: too dry rather than too wet

Ants climbing up one leg of a wormery, the other legs standing in dishes of water that block them

This is the opposite of all the previous visitors: ants in your wormery, most often one kept outdoors, usually signal an environment that has become too dry rather than too wet, as ants are drawn by sweet food and in search of moisture. The solution is purely physical and needs no products: place a small container of water under each leg of your wormery, or coat the legs with petroleum jelly — the ants will no longer be able to get in. Indoors, the problem is rare.

Small red or black spiders, not to be confused with ordinary mites

Red and black mites covering food scraps in a wormery

You may call them spiders, but they are in fact mites, red or black depending on the species — nothing to do with the harmless mites in our guide to helpful little creatures. These can literally cover the food when the environment is too wet or too acidic, to the point that your worms refuse to eat. If you notice an unusual concentration of them, remove the infested food and leave the lid open for a few days to dry out the bedding: this is usually enough to make them disappear.

Rarer predators: centipedes and flatworms

Predatory flatworm, a brown striped flat worm, approaching a compost worm

Centipede on the compost in a wormery, next to compost wormsTwo occasional visitors do attack your worms directly — but they remain rare in a well-kept wormery. The centipede, flat with one pair of legs per segment (not to be confused with the harmless millipede, see our guide to helpful little creatures), is a predator that you simply need to remove by hand if you come across one. Predatory flatworms, which digest their prey through their skin, are rarer still: if you spot one, it is best to remove it by hand as soon as possible rather than wait for it to multiply.

Snails, slugs or small rodents, for their part, rarely find their way into a wormery started with shredded paper or cardboard bedding — they are far more attracted to a traditional outdoor compost heap. If you do come across any, simply removing them by hand is enough; for rodents in particular, the best preventive habit is never to put meat or bones in your wormery (see our guide What earthworms eat), which is the basic rule in any case.

In summary

The vast majority of wormery pests can be dealt with using two opposite but complementary approaches: rebalance the acidity and dry out the environment with cardboard when there is too much moisture (fruit flies, black soldier fly larvae, red mites), or, conversely, restrict access with a physical barrier when the problem comes from an environment that is too dry (ants). Keep an eye on your wormery, act at the first signs, and these unwanted visitors will remain the exception rather than the rule.

Accepted payment methods

Bring the Earth to life

To date, our customers have recycled 101447,201 tonnes of organic waste using our products since 2007. Learn more ›

Follow us on our social networks:

Moutta Farm
Site developed by ourselves with ❤️
All rights reserved 2007-2026.