Free U.S. shipping · $48.99 starter kit · $18.99 refills every 90 days · Start a plan
  1. Home
  2. Pest guides
  3. Flies and gnats

How to get rid of flies and gnats

To get rid of flies and gnats, find and remove what they breed in (trash, pet waste, overripe fruit, drain film or wet potting soil), keep screens and doors tight, and treat only the outdoor resting surfaces the product label lists. Our refillable fly and gnat spray bag comes with a plug-in sprayer you keep. Spraying without removing the source will not end the problem.

Need it done for you? Find a pro near you

Which fly is it?

House flies breed in garbage, compost and pet waste. Fruit flies are small, tan and red-eyed, and breed in overripe produce and spills. Fungus gnats are tiny and dark and hover around houseplants with wet soil. Drain flies are fuzzy and moth-like and live in the film inside sink and floor drains. Cluster flies gather on sunny walls in the fall and hide in attics over winter.

Remove the source

Take out trash often and keep bins closed and clean. Pick up pet waste in the yard. Store fruit in the fridge and wipe up spills. Let houseplant soil dry between waterings. Scrub drains with a stiff brush to remove the film. Each species keeps coming until its breeding spot is gone.

Keep them out

Repair torn screens, add door sweeps, and keep doors closed. For cluster flies, seal gaps around windows, soffits and siding before fall, the same way you would for stink bugs. A simple cider-vinegar trap with a drop of dish soap catches fruit flies indoors.

Outdoor resting spots

Flies rest on sunny walls, fences, garage doors and the undersides of eaves near trash and compost areas. Those surfaces are where a labeled outdoor treatment can help, if the instructions allow them.

Using the fly and gnat bag

Fill the pouch with water to the line, add the concentrate as the instructions say, plug in the sprayer, and apply only on the sites the instructions list, such as exterior walls, eaves and the area around trash bins.

If the instructions in the box and this guide ever disagree, follow the instructions in the box.

When a visit makes more sense

If flies keep appearing indoors and you cannot find the source, something may have died in a wall or crawl space. A local company can find it. Our partner request form is free and is not an order.

Background reading: Housefly on Wikipedia.

Questions about flies and gnats

Why do I have gnats in my houseplants?

Fungus gnats breed in wet potting soil. Let the soil dry between waterings and the problem usually fades.

Will spraying indoors stop fruit flies?

No. Remove the fruit, spills and drain film they breed in. A vinegar trap helps with the adults.

Why are there flies on my windows in the fall?

Cluster flies look for a warm place to spend winter. Seal gaps before fall.

Do I have to subscribe?

No. Choose a one-time order or a refill plan on the product page. Plans can be canceled online.

Done for you

Need it done for you?

Rather not spray it yourself? Find a local pest pro near you and get a quote. It takes a minute and it is not a product order.