Flies are attracted to chicken coops because of moisture, manure, and spilled feed—and you stop them by removing those three things

Flies breed in wet manure and decaying organic matter, so a coop with standing water, packed bedding, or old feed scraps becomes a fly factory within days. The most effective approach is not sprays or traps—it is removing the conditions flies need to reproduce. A dry coop with clean bedding changed regularly, no pooled water, and feed stored in sealed containers will have far fewer flies than one that is cleaned once a month.

You cannot eliminate every fly, but you can make your coop an unattractive place for them to lay eggs. The key is consistency: flies complete their life cycle in 5 to 7 days, so if you clean more than once a week and keep moisture out, you break that cycle before adults emerge.

Key Takeaways

  • Remove wet or packed bedding at least twice a week, because fly larvae develop in moist manure within 3 to 5 days.
  • Fix any water leaks or pooling under waterers and feeders, since standing water is where flies breed fastest.
  • Store all feed in sealed metal or plastic containers with tight lids to prevent spills that attract flies and other pests.
  • Spread fresh bedding (wood shavings or straw) 3 to 4 inches deep and replace the top layer weekly to keep manure dry.
  • may support the coop has good airflow by opening vents during the day and positioning feeders and waterers away from corners where moisture collects.

Change bedding twice a week to interrupt the fly life cycle

Fly larvae hatch and mature in moist manure in about 5 to 7 days, depending on temperature. If you wait longer than a week between cleanings, you are giving them time to complete their cycle and emerge as adult flies. Changing bedding twice a week—or more often in hot, humid weather—breaks that cycle before the larvae can develop.

When you clean, remove the top 2 to 3 inches of soiled bedding entirely rather than just stirring it. Chickens scratch and mix their manure into the bedding, so the wet layer sits deeper than it looks. Spread fresh wood shavings (pine or aspen, not cedar) or straw 3 to 4 inches deep. The fresh, dry layer on top keeps manure from sitting against the coop floor, where moisture builds up fastest.

In summer or in very wet climates, you may need to clean three times a week. Watch the bedding—if it feels damp to the touch or smells strongly of ammonia, it is time to change it, regardless of the calendar.

Fix water leaks and move waterers away from corners

A leaking waterer or a waterer placed in a low corner creates a puddle that becomes a breeding ground for flies. Check your waterer daily for drips. If it leaks, replace the seal or the waterer itself—a $15 replacement is cheaper than weeks of fighting flies.

Position waterers on a slight slope or on a wire mesh platform so spilled water drains away rather than pooling. Keep them in the center of the coop or along an open wall, not in corners where air does not circulate and water sits. The same applies to feeders—place them where chickens cannot kick bedding into them and where any spilled feed dries quickly.

If your coop has a drainage problem (water pooling after rain or from a leaky roof), fix the leak or grade the ground outside to slope away from the coop. Flies can breed in surprisingly small amounts of standing water, so even a puddle the size of a dinner plate is worth eliminating.

Store feed in sealed containers to prevent spills and spoilage

Spilled or exposed feed attracts flies and also draws rodents. Use metal or heavy plastic containers with tight-fitting lids—not open bags or buckets without covers. A 50-pound bag of layer feed left open in the coop will draw flies within hours.

Keep containers outside the coop if possible, or in a separate feed storage area. If you must store feed inside, keep the lid closed except when you are actively scooping. Check containers weekly for moisture or mold, which also attracts insects. Feed that has gotten wet should be discarded, not dried out and reused.

Remove uneaten feed at the end of each day, especially in warm weather. Wet or fermented feed is a fly magnet. If your chickens do not finish their daily ration within a few hours, you are feeding too much.

Improve airflow to keep bedding dry

Moisture builds up in a closed, poorly ventilated coop, and flies thrive in that damp environment. Open vents or windows during the day to let air move through. In winter, you still need some ventilation—the goal is to let moisture escape without creating a draft at roost level.

Position vents high on the walls so warm, moist air rises and exits. If your coop has a solid roof with no ridge vent, consider adding one or drilling holes near the top of the walls. Even a small amount of air movement makes bedding dry faster and makes the coop less attractive to flies.

Avoid overcrowding, which traps moisture and heat. A coop that is too full will stay damp no matter how often you clean it. Aim for at least 3 to 4 square feet of floor space per bird.

Use lime or diatomaceous earth as a supplemental drying agent

After you remove soiled bedding, you can dust the coop floor with agricultural lime (also called hydrated lime or calcium hydroxide) to dry out remaining moisture and reduce odor. Sprinkle it lightly—about a handful per 10 square feet—and let it sit for a few hours before adding fresh bedding. Lime speeds up drying and makes the environment less hospitable to fly larvae.

Food-grade diatomaceous earth (DE) can also be mixed into fresh bedding at a rate of about 5 percent by volume. DE is a powder made from fossilized algae that damages the exoskeletons of insects. It does not kill flies when ready, but it reduces their numbers over time. Wear a dust mask when explore either product, and keep it away from the chickens' eyes and respiratory tracts.

These are tools to support good cleaning, not replacements for it. A coop that is cleaned regularly and kept dry will not need either product. They work best when combined with the other steps—removing moisture, fixing leaks, and changing bedding frequently.

Traps and screens for flies that do get in

Once you have removed the breeding conditions, you can reduce the adult flies that remain with straightforward traps. Fly tape (sticky paper hung in corners) catches flies without chemicals. Replace it when it is covered. Drain flies or fruit flies can be caught with a small bowl of apple cider vinegar covered with plastic wrap and a few holes poked in the top—they fly in and cannot find their way out.

Install window screens or hardware cloth over any openings larger than a quarter-inch. Flies can squeeze through surprisingly small gaps, so check vents and the space around doors. A screen door on the coop entrance keeps flies out when you are working inside.

Do not rely on sprays or foggers inside the coop where chickens live. They are unnecessary if you have removed the breeding conditions, and they expose your birds to chemicals. Focus on the root cause—dry bedding and no standing water—and the fly population will drop on its own within a few weeks.

Frequently Asked Questions

How long does it take to see fewer flies after I start cleaning more often?

You should notice a drop in adult flies within 7 to 10 days, because you are breaking the breeding cycle. The biggest improvement comes around week 3 to 4, once all the larvae that were already in the bedding have either been removed or completed their cycle and died without reproducing. Consistency matters more than speed—one deep clean followed by neglect will not work.

Can I use sand instead of wood shavings to keep flies down?

Sand drains water faster than wood shavings, which is good for fly control, but it does not absorb moisture as well and can be harder on the chickens' feet and joints. A mix of sand and shavings works well—about 50/50—if you want the drainage benefits of sand with the comfort of bedding. Whatever you use, change it regularly.

Do chickens themselves attract more flies than other animals?

Chickens produce a lot of manure in a small space, so yes, a chicken coop can attract more flies than a similar-sized enclosure for other animals. That is why cleaning frequency matters so much. A well-managed coop will have fewer flies than a neglected one, even with the same number of birds.

Will fans help keep flies out of the coop?

A fan that moves air across the bedding helps it dry faster, which reduces fly breeding. A fan pointed at wet spots or at the floor can be useful in humid climates. It will not eliminate flies on its own, but it supports the main strategy of keeping bedding dry.

Is it safe to use pesticides in a chicken coop?

Most pesticides are not safe to use where chickens live and eat. They can poison the birds or contaminate eggs. Stick to physical removal (cleaning), traps, and environmental controls (drying, airflow). If you have a severe infestation that cleaning does not control, talk to a veterinarian about what is safe for your flock.