Skip to content
Swat & Snap
Fruit Flies & Gnats

How to keep flies away from food outside

You cannot clear the flies from a yard before lunch. What you can do is make the table unattractive and unreachable, and pull the flies that are already around to somewhere else.

By Ryder M.Published Updated

A picnic laid out on a blanket in a grassy park
Quick answer
Three things work, in this order. Cover the food — mesh food tents, lidded containers, and nothing left open between servings — because a fly that cannot land on it cannot contaminate it. Put a fan on the table, because house flies are weak fliers and avoid moving air, and a cheap clip fan is the most effective single purchase here. And hang a bait trap 30 feet or more away, downwind, before you eat, so the flies in the yard have somewhere better to be than your table. What does not work is a bait trap near the table, which draws flies toward you, or a bug zapper, which catches almost nothing you care about. Clear the bin, the dog waste and the fallen fruit first: a yard with a breeding site will have flies no matter what you put on the table.
Disclosure

Swat & Snap earns a commission from qualifying purchases made through the links on this page, at no extra cost to you. It does not change which products we pick — see how we pick and our affiliate disclosure.

Why flies find your table in minutes

House flies locate food by smell and they are fast about it. Warm food releases far more volatile compounds than cold food, which is why the flies arrive the moment the lid comes off the barbecue rather than while you are setting the table.

They are also a genuine hygiene problem rather than just a nuisance. House flies feed and breed on manure, rubbish and decaying material, they carry pathogens on their legs and mouthparts, and they regurgitate onto food to dissolve it before feeding. The sensible goal outdoors is therefore not "fewer flies in the yard" — that is a season-long project — it is no flies landing on the food.

That reframing is what makes the problem solvable in an afternoon.

What actually works

1. Physical covers. The highest-value, lowest-cost measure. Mesh food tents over every open dish, lidded containers for anything you are not serving right now, and food brought out as it is eaten rather than laid out an hour ahead. A fly that cannot land on the potato salad has not contaminated the potato salad, regardless of how many are in the yard.

2. Moving air. Flies are weak fliers and will not hold position in a breeze. A clip-on or pedestal fan aimed across the table is startlingly effective, and it costs less than most dedicated fly products. Ceiling fans on a covered patio do the same job. This is the trick caterers use and it deserves to be better known.

3. A bait trap, hung far away and early. This is the one product that genuinely reduces the number of flies in the vicinity, and it only works if you get the placement right. A disposable bait bag with a water-activated lure is extremely effective at pulling house flies in — the RESCUE! bags state a capacity of up to 20,000 flies — and the smell of the lure is the mechanism. Hang it 30 feet or more from the table, downwind, ideally the morning before or at least a couple of hours ahead so it is working by the time you eat.

4. Removing the breeding site. The flies at your table came from somewhere within a few hundred feet. The bin, dog waste on the lawn, a compost heap with cooked food in it, fallen fruit under a tree, or a neighbor's uncovered rubbish. How to get rid of house flies covers the source work properly.

5. A racket for the stragglers. No trap deals with the single fly circling the table. A shielded electrified racket does, instantly, and it is the only honest answer for that specific problem.

What to look for

Covers sized for your dishes. Collapsible mesh food tents are cheap and they are the first thing to buy. Measure the serving bowls you actually use.

A fan you will bother to set up. Battery or clip-on beats "the one in the garage" that needs an extension lead, because the version you deploy every time is the one that works.

A bait trap with real capacity, and a clear understanding that it goes far away. Disposable bags are right for this: high capacity, nothing to refill, and you bin the whole thing. Do not buy a decorative trap for a patio table — that is the opposite of the correct placement.

A light trap only for a covered, enclosed space. A screened porch or an outdoor kitchen with walls can use a plug-in light trap over a glue card. In genuinely open air it is competing with the sky and does very little.

A racket with multi-layer mesh. The outer layers keep a finger — or a child's finger — away from the live mesh. That is the one specification worth paying for in this category.

Not a zapper. An electrified grid over a patio catches mostly non-target insects, makes noise and drops debris near food. For mosquitoes the evidence against it is well established, and for house flies a bait trap outperforms it. Do bug zappers work has the testing.

At a glance

Quick picks

#ProductBest forMechanismPrice
1
RESCUE! Non-Toxic Disposable Fly Trap
Our pickRESCUE! Non-Toxic Disposable Fly TrapA hanging bag with a powerful bait. Effective, genuinely foul-smelling, and therefore a product you hang well away from the door you use.
Outdoor house fliesWater-activated attractant bag
$11.92$14.9920% offView on Amazon

Price as of October 17, 2026

2
The Executioner Fly Swatter Racket
The Executioner Fly Swatter RacketTriple-layer mesh, so your finger cannot reach the live layer. That is the one design difference worth paying for in this category.
A racket that lastsElectrified mesh, three layers
$30.99View on Amazon

Price as of October 17, 2026

3
Gardner FlyWeb Indoor Fly Light
Gardner FlyWeb Indoor Fly LightA plug-in UV light over a glue card. No zap, no smell, and it works on house flies that ignore a fruit fly lure.
Quiet indoor fly controlUV light + glue card

#ad — every price link goes to Amazon and Swat & Snap earns a commission on qualifying purchases. Prices are pulled live from the retailer; where one is not available the button reads “Check price on Amazon” rather than showing a stale number.

RESCUE! Non-Toxic Disposable Fly Trap
Our pick

RESCUE! Non-Toxic Disposable Fly Trap

RESCUE! · Outdoor house flies

A hanging bag with a powerful bait. Effective, genuinely foul-smelling, and therefore a product you hang well away from the door you use.

Specification
MechanismWater-activated attractant bag
CapacityManufacturer states up to 20,000 flies
Placement30+ feet from the house
DisposalWhole bag
Why it is here
  • Pulls flies away from a patio better than anything else at the price
  • Nothing to plug in, nothing to refill
What it will not do
  • The smell is the mechanism — hang it close and you have made things worse
  • Full bags are unpleasant to take down
$11.92$14.9920% offView on Amazon

Price as of October 17, 2026

The Executioner Fly Swatter Racket
Pick 2Pet-safe design

The Executioner Fly Swatter Racket

The Executioner · A racket that lasts

Triple-layer mesh, so your finger cannot reach the live layer. That is the one design difference worth paying for in this category.

Specification
MechanismElectrified mesh, three layers
Power2 × AA
SafetyOuter layers shield the live mesh
BuildRigid frame
Why it is here
  • Triple mesh is the reason to choose it — a child's finger cannot reach the charge
  • Frame survives being swung hard, unlike the bargain rackets
What it will not do
  • Several times the price of a single-layer racket
  • Still only ever kills what you aim at
$30.99View on Amazon

Price as of October 17, 2026

Gardner FlyWeb Indoor Fly Light
Pick 3Pet-safe design

Gardner FlyWeb Indoor Fly Light

Gardner · Quiet indoor fly control

A plug-in UV light over a glue card. No zap, no smell, and it works on house flies that ignore a fruit fly lure.

Specification
MechanismUV light + glue card
PowerMains plug-in
RefillGlue cards
NoiseSilent
Why it is here
  • Silent and debris-free, which a zapper indoors is not
  • Card hides the catch, so it is not a display of dead flies
What it will not do
  • Only pulls flies within a room, and only in low light
  • Glue cards need replacing more often than the box implies

The setup, in order

The day before, or that morning

  1. Hang the bait trap 30 feet or more from where you will eat, downwind, at about head height on a post or branch — not on the house wall and not by the door.
  2. Empty and wash the bin, including the lid rim, and move it away from the eating area.
  3. Clear dog waste from the lawn.
  4. Pick up fallen fruit.

An hour before

  1. Set the fan up and test it on the table.
  2. Lay out the mesh covers.
  3. Keep everything in the refrigerator until it is served.

While you are eating

  1. Serve from covered dishes, re-covering between servings.
  2. Keep raw meat covered and separate — this is food safety as much as fly control.
  3. Clear plates as you go rather than leaving them out.
  4. Keep the racket on the table.

Afterwards

  1. Nothing left outside overnight, including crumbs on the table, the grill grease tray and the dog bowl.
  2. Rinse the recycling before it goes in the bin, since unrinsed cans and bottles are a dependable fly and fruit fly source.

Food safety, since you are outside

Worth stating because this is the part that actually matters:

  • Two hours is the limit for perishable food left out at normal temperatures, and about one hour above 90°F. Flies are the visible problem; bacterial growth is the real one.
  • Cold food stays on ice, not in the shade.
  • Hot food stays covered and hot, not resting under a tea towel.
  • If a fly has been walking on it for any length of time, the cautious call is to bin that dish rather than reason about it.

What to skip

  • A bait trap on or near the table. The single most common mistake. The lure pulls flies toward it, so anything within a few feet of where you are eating makes the problem worse.
  • Bug zappers. Noisy, indiscriminate, and poor at the species you care about. Debris near food is also an obvious issue.
  • Citronella candles and tiki torches as fly control. They are marginal even for mosquitoes, where Thermacell vs citronella candles covers the comparison, and they do very little for house flies.
  • Bags of water with pennies in them. A persistent folk remedy with no credible support.
  • Spraying insecticide near food. Wrong product, wrong place.
  • Thermacell and similar repellers for flies. Metofluthrin repellers create a zone that genuinely works on mosquitoes, which is a different insect with different behavior — do not expect them to clear house flies off a table.
  • Fruit fly lure traps. A different insect. If what is landing on your fruit plate is tiny and slow rather than a house fly, see best fruit fly traps and gnats outside.

The short version

Cover every dish, put a fan on the table, and hang a high-capacity bait trap thirty feet away and downwind a few hours before you eat. Clear the bin, the dog waste and the fallen fruit, because that is where the flies came from. Keep a racket on the table for the one that gets through. And do not hang a bait trap anywhere near where you are sitting — that is the mistake that turns a good product into a worse afternoon.

Questions

Frequently asked

How do you keep flies away from food outside?
Cover every dish with mesh food tents or lids, aim a fan across the table because flies cannot hold position in moving air, and hang a high-capacity bait trap at least 30 feet away and downwind a few hours before you eat. Covers and airflow do more than any product you can put on the table.
Do fans keep flies away?
Yes, and better than most people expect. House flies are weak fliers and avoid moving air, so a clip-on or pedestal fan aimed across an outdoor table is one of the most effective and cheapest measures available. It is the standard trick at catered outdoor events.
Where should I hang a fly trap for a barbecue?
At least 30 feet from where people are eating, downwind, at around head height on a post or branch. Bait traps work by smelling strongly of decomposition and drawing flies in, so hanging one near the table concentrates flies exactly where you do not want them.
Do bug zappers keep flies away from a patio?
Not usefully. An electrified grid catches mostly harmless non-target insects, it is noisy, and it drops insect debris — which is a poor combination near food. A bait trap hung well away from the table outperforms it on house flies, and covers plus a fan outperform both.
How long can food sit outside before it is unsafe?
Two hours at normal temperatures, and about one hour above 90°F, for anything perishable. Flies are the visible concern but bacterial growth is the real one, so keep cold food on ice, hot food covered and hot, and clear plates as you go.
Do citronella candles keep flies away?
Barely. Citronella is marginal even against mosquitoes in open air, and house flies are less responsive to it. Spend the money on mesh covers and a fan instead, and use a bait trap sited well away from the table if you want to reduce the number of flies in the area.
Sources
Next step

More on fruit flies & gnats

Tiny flies in the kitchen are almost never one problem. Identify which of the three you have, then treat the source — the trap alone never finishes it.

Not sure yet? Read how we pick.

About the author

Ryder M.

Ryder M. is the hands-on owner behind Magoo Media Group. He writes Swat & Snap because he got tired of pest-control advice that was either a sales pitch or a scare story.

How we pick · Editorial policy · About Swat & Snap

Read next