How to Get Rid of Flies - The Ultimate Guide

Last Updated: May 12, 2026
Gordon Reidy
Fly Control, General Pest Control

Houseflies are a genuine bioweapon, known to carry a range of pathogens including Salmonella, dysentery, cholera, typhoid and polio, even leprosy and anthrax, so there’s every reason to make sure flies are kept out of the house and well away from the kitchen. Fortunately, with a bit of knowledge, making sure your home is a fly free zone is fairly straight forward.

Housefly feeding by liquefying food and sucking it up
Housefly feeding by liquefying food and sucking it up

Although the housefly is probably the most common fly you will find around your home, there are a number of fly species, which includes the housefly, collectively called filth flies. They get their name because they prefer to live, eat and breed around rotten organic matter – manure and garbage are much preferred! It’s therefore not surprising that they pick up a range of pathogens. Of course, when they then land on your food or kitchen surfaces, they can transfer one of the many pathogens they carry and cause illnesses and disease.

If you have a housefly problem you need to find the source of the problem and it’s probably due to there being a suitable breeding site / food source nearby. By eliminating housefly food sources and breeding sites, you can make your home less attractive to houseflies thereby reducing their number.

Our top 5 tips to make your house less attractive to houseflies:

  1. Make sure waste is placed in sealed bags, inside sealed garbage bins
  2. Pick up and dispose of any pet faeces from the yard and garden
  3. Avoid using chicken manure as a fertilizer
  4. Don’t create compost heaps
  5. Don’t leave uneaten pet food out
Housefly larvae or maggots will quickly hatch and grow in garbage bins
Housefly larvae or maggots will quickly hatch and grow in garbage bins

There’s a reason Australia is home of the fly screen – there are lots of flies in Australia and fly screens work. But they need to be well fitted and be in good order (no holes or tears). Of course, a good fitting screen is only works if the doors are kept closed!

Houseflies can fly long distances, so even if you eliminate breeding sites around your home, they can still fly in from the surrounding areas. Whilst ensuring your entertaining areas are 100% fly free is probably not realistic, there are a few fly products that can be used to keep numbers in check:

  • Spraying the external walls of your home and other fly resting places with a long-lasting insecticide, such as PestXpert Pro Spray Outdoor Perimeter
  • Use fly traps which contain an attractive food source to lure flies in, however these are not for everyone as the traps may end up with numerous fetid fly bodies which can look quite disgusting
  • Fly paper, although old fashioned and a bit unsightly, they can be effective as flies are attracted by the vertical lines created by the paper.

Hopefully fly numbers inside the home should be relatively low (assuming fly screens are in place). However, there are some different fly control options for inside the home.

  • Electric fly units attract flies through UV light and then use either an electric grid to zap them or a glue board to trap them. Don’t place the trap near windows (a competing UV source) or near food preparation area (flies explode when they hit the electric grid!)
  • Fly traps and sticky fly paper can also be used indoors
  • But with well fitted fly screens the best way to deal with the occasional fly invader is with a premium fly spray such as PestXpert Pro Spray Flying.

Trying to hit a fly directly with an aerosol spray is a challenge as they pick up the pressure wave from the spray and fly off before the insecticide arrives. The best way to spray for flies, and the aerosols are designed this way, is to carry out a “space spray”.  

Close all the doors and windows in the room to be treated. Shake the can and spray into the air for several seconds before leaving the room and close the door. When you re-enter 10 minutes later the flies should be dead. This is a great technique for mosquitoes as well, as they can be hard to locate.

More details on How do fly sprays work?

Avoid the Australian ‘salute’ by getting on top of fly problems
Avoid the Australian ‘salute’ by getting on top of fly problems

Houseflies aren’t the only nuisance flies found around the home. Two other small pest flies that cause problems are the vinegar flies and drain flies. Learn more about how to get rid of vinegar flies and how to get rid of drain flies.

Flies are more than just annoying – they are a health threat to your family, so it’s certainly worth trying to keep your home fly free. Of course, they are annoying too…


Originally Published: January 24, 2019
author bio image

Author:

Gordon Reidy has over 30 years experience in Pest Control Product Development and Product Safety. As the lead formulator at PestXpert, he has helped develop some of Australia’s most trusted household pest solutions. With a PhD in Toxicology, Gordon is passionate about delivering effective, science-backed products that are safe for families and the environment.

Share This Post

Further Reading

  • Slater or woodlouse
    How to Stop Slaters Invading Your Home

    Slaters entering the home can be a problem in Australia. Learn how to keep slaters out of your home and how to control them.

  • Indian meal moth or pantry moth
    What's Eating My Food? Pantry Insects

    Pantry pests is a common name given to insects that infest stored products such as flour, cereals and indeed any dried foods. Sometimes you may not be even aware your food has been infested, but when you do… yuck! But…

  • Carpet beetle larva
    5 Facts About Carpet Beetles You Need to Know

    Carpet beetles are a common fabric pest. Although their name indicates they only eat carpets or rugs, they will eat a wide range of animal fabrics including wool, fur, silk, felt, feathers and leather. As with any pest problem it…

  • Silverfish
    10 Places Silverfish Like to Hide in your Home

    Secretive and nocturnal, a silverfish infestation can go unnoticed for some time. A versatile, primitive insect, silverfish can inhabit a wide range of hiding places in your house. Silverfish like to eat starchy foods, so they find paper and cardboard…

  • Housefly
    The Top 3 Small Flies in the House that Cause Problems

    Information, treatment and prevention tips for the top 3 pest flies found in homes - housefly, vinegar fly and drain fly.

  • cockroach on pear
    Spring Cleaning? Do a Pest Spray!

    With the temperature warming up, everyone thinks about clearing up the yard for outdoor entertaining, which often leads to cleaning out the garage and then the house – a good Spring clean! If you are giving your house and yard…

  • Dog with petfood bowls
    Safe pesticide use for pet owners

    “Are insecticides safe to use around my pets?” is perhaps one of the most common question homeowners ask about pest control products. It’s a good question…. and important, because when using any pest control product, safety comes first! Learn more about…

  • Spraying house
    DIY Pest Control - Which insecticide should you choose?

    Everything you need to know about white tail spiders: What do they look like? Where do they live? Information on white tail spider bites - is the flesh eating spider bite a myth? How to get rid of white tail…

  • Carpet beetle larva
    What’s eating my clothes?

    If you find holes in your clothes, carpets, curtains or other fabrics, you need to work out the cause before you decide on a treatment. But how can you work out what’s eating your clothes? Check out our cheat sheet…

  • PestXpert cockroach gel bait
    How to Use Cockroach Bait

    Cockroach baits are the best way to get rid of cockroach infestations, especially small cockroaches (German cockroaches). However, there are some tips to get the best performance from cockroach baits and indeed some cockroach baits are better than others. Learn…