What Can I Spray to Keep Flies Away at Home?

You have several effective options for spraying flies away, ranging from EPA-registered repellents like DEET and picaridin to homemade essential oil sprays and quick-knockdown aerosols. The best choice depends on whether you’re protecting your skin, clearing a room, or treating an outdoor area.

EPA-Registered Repellent Sprays

Four active ingredients are registered with the EPA specifically for repelling flies and other biting insects: DEET, picaridin, IR3535, and oil of lemon eucalyptus. These are the same ingredients found in mosquito repellents, and they work on flies too. The CDC recommends DEET concentrations of 20% or higher for reliable protection, though anything above 50% doesn’t add extra benefit. Products with less than 10% of any active ingredient typically protect for only one to two hours.

For children, the American Academy of Pediatrics recommends capping DEET concentration at 30%. Picaridin is a popular alternative that feels less greasy on skin and doesn’t damage plastics or synthetic fabrics the way DEET can. Oil of lemon eucalyptus offers a plant-derived option with EPA registration, though it generally needs more frequent reapplication than DEET or picaridin at the same concentration.

Essential Oil Sprays You Can Make at Home

If you’d rather skip synthetic chemicals, several essential oils have a strong track record of deterring flies. The most commonly effective ones include:

  • Lavender oil: its strong sweet-tart scent overwhelms flies’ senses.
  • Lemongrass oil: contains a compound called citral that flies actively avoid.
  • Eucalyptus oil: its sharp, fresh scent deters most flying insects.
  • Peppermint oil: the intense cooling aroma irritates flies on contact.
  • Tea tree oil: disrupts flies’ ability to navigate toward food sources.
  • Basil oil: contains estragole, a naturally occurring insect repellent.

To make a spray, mix 10 to 15 drops of one or more of these oils into a cup of water with a small squirt of dish soap (which helps the oil blend with the water). Pour into a spray bottle and apply to doorframes, windowsills, countertops, or directly into the air around patios and seating areas. These sprays won’t last as long as commercial repellents. Expect to reapply every 30 to 60 minutes outdoors, or every few hours in a still indoor space.

One honest caveat: rigorous scientific testing on essential oils and house flies specifically is limited. Much of what we know comes from studies on mosquitoes and fruit flies, plus generations of practical use. Results can vary depending on the oil’s quality and concentration.

Quick-Knockdown Indoor Sprays

When flies are already inside and you want them dead rather than deterred, pyrethrin-based aerosol sprays are the standard tool. Pyrethrins are derived from chrysanthemum flowers and work by overstimulating the fly’s nervous system, causing rapid paralysis and death. Most commercial “fly killer” sprays at the hardware store use pyrethrins or synthetic versions called pyrethroids.

These sprays give a fast kill but provide almost no lasting protection once the mist settles. They’re best used as a targeted response, not a long-term repellent. For the best results, close windows and doors before misting, then ventilate the room thoroughly before spending time in it. People who use foggers (bug bombs) are especially at risk of exposure if they re-enter the room too soon or skip the ventilation step.

The Vinegar and Dish Soap Method

A simple DIY spray that works well for gnats and small flies uses ingredients you already have: combine one cup of water with a tablespoon of vinegar, a tablespoon of baking soda, and a few drops of dish soap in a spray bottle. Spray it around plants, bathroom drains, kitchen counters, and garbage cans where small flies congregate. This works more as a contact deterrent than a long-range repellent, so spray it directly in problem areas.

For a passive approach, you can also set out a trap: pour a few tablespoons of apple cider vinegar into a bowl, add a drop or two of dish soap and a tablespoon of sugar. The vinegar and sugar lure flies in, and the dish soap breaks the surface tension of the liquid so they sink and drown. This pairs well with a repellent spray, one driving flies away from where you are and the trap catching them elsewhere.

Treating Your Yard or Outdoor Space

Outdoor barrier sprays sold for yards typically use pyrethrins or pyrethroids and are applied to vegetation, fences, and shaded areas where flies rest. Like indoor sprays, they offer a quick knockdown but limited residual protection. Sunlight and heat break down pyrethrins relatively fast, and heavy rain (enough to form puddles) washes the treatment away. Light rain generally won’t require reapplication, but a downpour means you’ll need to spray again once things dry.

For longer-lasting outdoor protection, some people combine barrier sprays with repellent strategies: burning citronella candles, setting up fans (flies are weak fliers and can’t handle even moderate wind), and keeping food covered. No single spray eliminates flies from a yard permanently. Consistency and layering methods together gets the best results.

Pet Safety, Especially for Cats

If you have cats, be very careful with permethrin-based products. Cats lack one of the key enzymes needed to break down permethrin, making them far more sensitive to it than dogs or humans. High-concentration permethrin products (45% or above, typically sold for dogs) can cause tremors, seizures, and even death in cats. Some cats are so sensitive that casual contact with a recently treated dog is enough to trigger symptoms.

If you use a low-concentration permethrin spray (around 1%) on clothing or outdoor gear, let it dry completely before your cat has access to it. At that point, exposure risk drops significantly. But if you notice skin irritation, restlessness, twitching, or tremors in your cat after any potential permethrin exposure, get to a vet immediately.

Essential oils also pose risks for cats and, to a lesser extent, dogs. Tea tree oil is particularly toxic to cats even in small amounts. If you’re making DIY sprays and have pets, stick to lavender or lemongrass in low concentrations, and avoid spraying surfaces your pets lick or sleep on.