Recent chats
ASKGEEZ Q&A GUIDEGarden & tools

How can I reduce unwanted animals or flies around a compost bin?

Quick answer

Keep food scraps covered: bury them in the pile or cover them with dry leaves or other brown material. Exposed scraps can attract flies and rodents; a secure enclosed bin can help exclude larger animals, but check its moisture because limited airflow can affect the pile. If the compost smells foul, turn it and add brown material, and follow local guidance on acceptable inputs. These steps may reduce attractants but do not identify or guarantee removal of every pest.

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

Flies and animals keep gathering around my compost bin. What should I change first?

Geez

Start by checking whether food scraps are visible or uncovered. Bury them in the pile rather than leaving them exposed; exposed food can attract flies and rodents. [S2] If you cannot bury a fresh addition, cover it with dry leaves or another brown material. [S1]

Then look at the bin itself: is the lid secure, and are there openings that let larger animals reach the contents? UC ANR describes a secure, enclosed bin as one way to exclude larger animals. [S1] These are general management steps, not a way to identify the animal or guarantee that it will stop visiting.

Follow-up question

I add kitchen scraps on top every day. Do I need a different bin?

Geez

You may be able to improve the routine before replacing the bin. Open a small space in the pile, put the scraps inside, and cover them with the surrounding material or a layer of dry browns. That keeps the food less exposed. The advice to bury scraps and cover food waste with browns is supported by UC ANR. [S1] [S2]

If larger animals can get into the bin despite that change, consider whether a secure, enclosed design is suitable for your setup. One trade-off to watch: enclosed bins with limited airflow need moisture monitoring. [S1] The source guidance does not specify a particular bin model, opening size, or guaranteed exclusion of a specific animal.

Follow-up question

There are also flies, and the bin smells bad. Should I add something to kill them?

Geez

Avoid starting with a poison or other pest-killing product. First remove the conditions you can see: cover exposed scraps, and check whether the pile is very wet or packed down. UC ANR notes that foul odor can indicate excess moisture, compaction, or too much green material; its troubleshooting suggestions are turning the pile and adding brown material. [S2]

For a worked example, suppose you find a wet, compacted patch with scraps on top. You could move the exposed scraps into the pile, cover them with dry leaves, and turn the compost while adding brown material. Then observe whether the odor and visible fly activity change. Treat this as a practical trial, not a promise or a pest diagnosis.

Follow-up question

How do I know what I’m allowed to put in, and what should I track?

Geez

Check your local compost program’s rules before changing what you add; acceptable inputs can vary, and UC ANR specifically advises following local guidance. [S2] The supplied guidance does not establish which materials your municipality accepts or identify the animal or fly species in your yard.

Use a short log for a week or two: note what you added, whether scraps were buried and covered, whether the pile seemed wet, and what you observed around the bin. Record observations rather than guessing at a pest identity.

Copyable entry: Date: [date] Added: [materials] Scraps buried and covered? [yes/no] Pile condition: [dry / damp / very wet / unsure] Odor or activity observed: [brief description] Change made: [what you changed]

A practical checklist

  • Bury food scraps instead of leaving them exposed.

  • Cover food additions with dry leaves or other brown material.

  • Check whether the bin is secure against access by larger animals.

  • Monitor moisture, especially in an enclosed bin with limited airflow.

  • If the compost smells foul, consider moisture, compaction, and excess green material; turn it and add brown material as appropriate.

  • Confirm acceptable inputs with your local compost program and keep a brief observation log.

A few more useful answers

Will covering scraps always stop flies?

It reduces exposed food, a condition associated with fly issues, but the supplied guidance does not promise that covering scraps will eliminate flies or establish their species. Keep observing and adjust the routine if activity continues.

Does an enclosed bin solve every animal problem?

No guarantee is established. UC ANR describes a secure enclosed bin as one way to exclude larger animals, while also advising moisture monitoring when airflow is limited. [S1]

What if I am unsure whether the pile is too wet?

Record what you observe and check whether there is a foul odor or compaction; these can be clues, not a definitive diagnosis. UC ANR recommends turning and adding brown material as troubleshooting for foul odor. [S2]

Sources

References used for this guide.

  1. [S1] Keeping the Compost Faith | UC Agriculture and Natural Resources
    ucanr.edu · Checked
  2. [S2] Compost Systems | UC Agriculture and Natural Resources
    ucanr.edu · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work