How to get rid of flies in your house with a cucumber – 'flies abhor the chemicals'
The uses for this salad staple go beyond your evening meal


Flies are a nuisance at any time of year, but as the weather warms up you may be noticing their presence more and more around your home, particularly in your kitchen.
While commercial, chemical products are often lauded as the best way to banish them, did you know that you can actually get similarly effective results with a humble cucumber?
Here, our entomologist shares his tips on using this salad staple to deal with these common indoor pests, for an affordable, non-toxic, eco-friendly solution that's safe to use around food, pets, and children.
How to deter flies with cucumber
Questioning why you have so many flies in your house? Before you reach for strong sprays to keep flies out of the house, why not take a look inside your fridge vegetable drawer instead, says Tony King, founder of Pied Piper Pest Control, for a home remedy to get rid of flies.
'Flies abhor the natural chemicals in the skin of cucumbers,' he explains. 'Cucumber scents – particularly from the skin – contain chemicals such as trans-2-nonenal, which insects dislike.
'It is also believed that the very high water content and acidic nature might interfere with the sensory receptors of the flies.'
To use cucumber to get rid of cluster flies or to keep flies out of a garage, Tony recommends slicing cucumbers thinly and placing them where flies congregate, such as window sills, trash cans, or kitchen countertops, where getting rid of fruit flies can be particularly tricky.
You can use a mandolin for this, such as the bestselling PrepSolutions Mandolin Slicer available at Walmart, but your usual kitchen knife will, of course, work just as effectively, too.
'Some people also grate the cucumber and place it on a plate or small plate to emit a stronger scent,' adds Tony. 'Another method is to rub slices of cucumber on surfaces to leave a thin layer of the natural oils.
'Fresh cucumber should be used daily for best performance since the scent evaporates quickly.'
Is using cucumber an effective fly-deterrent?
While reasonably effective, this cucumber method is best used in conjunction with another option.
As Tony says, while this is an 'entertaining and innocuous' way to discourage flies, it's, importantly, not the most effective method when used alone.
'You might use it as an auxiliary option, especially if you'd rather use organic means of repellence, but my recommendation would be to couple it with more vigorous fly control strategies for bigger infestations,' he says.
'Products like TERRO Fruit Fly Traps available at Walmart or Aunt Fannie's FlyPunch Fruit Fly Trap available at Amazon can work very well to use indoors in the kitchen, and for something outside or more chronic indoor problems, I suggest something like the RESCUE! Outdoor Disposable Hanging Fly Trap available at Amazon. It's non-toxic, and uses attractants to lure flies away from your living space.'
You can also use fly repellent plants, sticky tape, or citronella candles, such as the bestselling Mainstays Citronella Scented Metal Bucket available at Walmart, as eco-friendly ways to bolster the deterrent effects of your cucumber.
What to shop
All prices were correct at the time of publication.
This plug-in flying insect trap is easy-to-use and reusable, with a continuous attraction to help catch flies 24/7, throughout the day and night.
With no aroma, these effective fly ribbons are safe to use in your kitchen and food prep areas, and catch over 100 flies per ribbon.
These highly rated citronella candles work to reduce the presence of mosquitoes and flies, and work just like a normal candle to add ambience to your space,
Meet our expert

Tony is the owner and manager of The Pied Piper, a leading pest control service with a legacy spanning over 25 years, and leads a highly-trained team of pest exterminators.
FAQs
Does vinegar attract or repel flies?
A mixture of equal parts vinegar and water, when left out in a dish, can work to repel flies. Apple cider vinegar is particularly effective. You can also try cleaning with vinegar to the same effect.
Are you aware of the mistakes to avoid when getting flies out of the house? For example, never ignore the root cause of your issue or infestation, and always avoid overusing chemical sprays.
Sign up to the Homes & Gardens newsletter
Design expertise in your inbox – from inspiring decorating ideas and beautiful celebrity homes to practical gardening advice and shopping round-ups.

Ottilie joined Homes & Gardens last year, after finishing a Master's in Magazine Journalism at City, University of London. With previous contributions in Livingetc and Motorsport Magazine, she produces content for the Solved section on the website, focusing on clever tips and tricks to keep your home beautiful, organized and clean. She also has a Master's degree in English Literature and History of Art from the University of Edinburgh, where she developed a love for inspiring interiors and architecture.
You must confirm your public display name before commenting
Please logout and then login again, you will then be prompted to enter your display name.
-
I wanted to organize my bookcase in a way that would start a debate among guests – Reese Witherspoon's bold shelves are my blueprint
Reese's bookshelves master this controversial design ideology – everyone I know has a strong opinion on whether I should follow her example
-
I just found the perfect mid-century-style chair – it's the most stylish piece I've seen by Martha Stewart (and miraculously under $330)
I fell in love with this accent chair even before I realized it carries Martha Stewart's name – it's the most unmissable deal on the internet right now
-
7 surprising things attracting pests to your home – and what to do right now to ward off summer infestations
A clean home might still attract pests if you make these mistakes
-
I'm a board-certified entomologist and this is the one rodent infestation control mistake I urge you to avoid at all costs – you'll regret it deeply
Don't put your health or home at risk
-
5 non-toxic mothball swaps that work – ditch chemicals and that horrible odor with these simple but effective alternatives
They'll protect your clothing and closets from moths without harsh chemicals
-
5 non-toxic pest control essentials proven to prevent pests humanely – and why avoiding harsh chemicals is a must to keep your family healthy
Natural pest repellents are more affordable, too
-
6 ways to prevent mold and damp in bedrooms – expert solutions to maintain a safe sleep environment
Don't sleep on these six tips, experts urge
-
6 hidden places pests love to harbor their young – pest control experts reveal how to stop colony growth in your home
You can stop pests breeding in your home
-
How to keep stink bugs out of the house – according to entomologists
Seal gaps, reduce plants, and use deterrents, pest experts recommend
-
How to get rid of pill bugs inside your house and banish them for good
Though harmless, you won't want a pill bug infestation inside, entomologists warn