What Are Flies Attracted to? Plus How to Get Rid of Them

House fly feeding on bread.
Follow these tips to keep flies off your food. Credit: Getty Images / Oxford Scientific

If your house is filled with flies , big and little, it's important to take steps to get rid of what they find attractive. This can be difficult when you're only seeing a few at a time. Once you have located the source, take steps to get rid of flies for good.

Learn more about what flies find attractive, how to eliminate them, and how to prevent flies from coming back into your home.

8 Things Flies Are Attracted To

It can be easy to guess what flies are attracted to based on where you see them swarming, but if you're just seeing one or two at a time inside your house, the culprit might be harder to locate. Here are eight things that might be attracting flies in your home.

Sweet and Fermented Liquids

If you leave cans of soft drinks, beer, or glasses of wine on counters or end tables, flies are going to make a beeline for your drink. They also love uncovered or drippy syrup bottles and even cruets of apple cider vinegar.

Uncovered Food

Leaving any food uncovered—fresh or half-eaten—will attract flies. As the food breaks down, the odor draws the files.

Rotting Fruit

As fruit rots, it undergoes fermentation, producing compounds like ethanol and acetic acid that act as attractants for flies. Female flies are drawn to decaying fruit to lay their eggs. The sugars and moist environment are ideal for fly larvae to feed and develop. Throw out any leftover banana peels, citrus skins, and be sure to check any countertop compost bins .

Want more cleaning and organizing tips? Sign up for our free daily newsletter for the latest hacks, expert advice, and more!

Pet and Human Waste

The odor of dirty diapers and pet accidents attract files into the home.

Garbage Cans

If you have an open garbage can, recycling bin. or compost container, flies are going to be drawn to the odors it emits. They particularly love the soupy liquid that collects in the bottom of the can.

Dirty Sink Drains

If you don't clean or flush your kitchen and bathroom sink drains regularly, sludge gathers around the edges of the drain and down into the pipes. Flies find that sludge particularly attractive for feeding.

Dead Animal

If a mouse or other animal dies in your walls, attic, or crawl space, it will attract hundreds of flies. If there are interior cracks nearby, the flies will enter your home.

Nighttime Outdoor Lighting

Drawn by outdoor lighting and food odors, flies will take every opportunity to slip into a house through open doors, windows, and unsealed cracks.

How to Get Rid of Flies

How to Prevent Flies

Prevention is by far the most effective method to keep flies out of your home.

Source: https://www.thespruce.com/what-are-flies-attracted-to-plus-how-to-get-rid-of-them-11704519