How to Repel Flies and Mosquitoes: What Actually Works

The most reliable way to repel both flies and mosquitoes is to combine a proven skin-applied repellent with simple environmental controls like fans and eliminating standing water. No single strategy works perfectly on its own, but layering a few effective methods can dramatically reduce bites and buzzing, whether you’re on your patio, at a campsite, or trying to enjoy an open window.

Proven Repellent Ingredients and How Long They Last

The EPA registers a handful of active ingredients for skin-applied insect repellents, and the CDC considers all of them safe when used as directed, including for pregnant and breastfeeding women. The top options are DEET, picaridin, oil of lemon eucalyptus (OLE), IR3535, and 2-undecanone. Each works differently, but they share one trait: higher concentrations protect you longer, up to a ceiling.

DEET is the most studied repellent in existence. A product with 10% DEET gives about 2 hours of protection, while 30% DEET extends that to roughly 5 hours. Protection peaks around 50% concentration, so anything above that doesn’t add meaningful time. A 23.8% DEET formulation tested in a New England Journal of Medicine study provided just over 5 hours of complete mosquito protection, the longest of any product in the trial.

Picaridin is odorless, less greasy, and comparably effective. A 5% picaridin product protects for 3 to 4 hours against mosquitoes and ticks, while a 20% formulation lasts 8 to 12 hours. That makes high-concentration picaridin one of the longest-lasting options available.

Oil of lemon eucalyptus is the strongest plant-derived option that carries EPA registration. Products with 8% to 10% OLE protect for about 2 hours, while 30% to 40% formulations extend that to 6 hours. One important restriction: OLE should not be used on children under 3 years old due to the risk of allergic skin reactions. Also, “pure” oil of lemon eucalyptus (the essential oil sold in health stores) is not the same thing as the registered repellent. The unformulated essential oil hasn’t undergone validated safety or efficacy testing and isn’t EPA-registered.

Why Most Natural Oils Fall Short

Essential oils from citronella, peppermint, lemongrass, cedar, and geranium are marketed heavily as mosquito repellents. In controlled testing, the reality is sobering. The New England Journal of Medicine study found that most botanical repellents provided less than 20 minutes of complete protection, with some lasting as little as 3 minutes. A soybean-oil-based product performed best among the botanicals, protecting for about an hour and a half, still far short of DEET or picaridin.

Repellent-impregnated wristbands, a popular drugstore item, offered no measurable protection at all in that same study.

That said, some essential oils do have real repellent properties against flies specifically. Lemongrass oil has demonstrated effectiveness against house flies and stable flies in lab settings, and citronella oil, eucalyptus oil, and catnip oil have all shown the ability to reduce fly attraction and feeding. Catnip pellets spread in cattle feedlot areas achieved over 99% repellency of stable flies in one trial. So while essential oils aren’t reliable for all-day mosquito protection on your skin, they can be useful as part of a broader fly-control strategy around your home or yard.

How Repellents Actually Work

For years, scientists debated whether DEET blocks a mosquito’s ability to smell you or whether the insect can actually detect DEET and actively avoids it. Research published in the Proceedings of the National Academy of Sciences settled the question: mosquitoes smell DEET directly. They have dedicated smell receptors on their antennae that detect DEET in a dose-dependent way, meaning higher concentrations trigger a stronger avoidance response. Behavioral tests confirmed that both male and female mosquitoes avoid DEET-treated surfaces, and females land far less often near warm, attractive targets when DEET is present.

DEET also changes the chemical profile of the compounds your skin naturally releases, creating a “fixative” effect that further masks your attractiveness. The combination of direct detection and scent disruption is what makes it so effective across so many insect species.

Fans: A Surprisingly Effective Physical Barrier

A simple electric fan is one of the most underrated tools for keeping mosquitoes away outdoors. Research testing fan-generated wind at speeds from 0 to about 8 mph found a strong, consistent reduction in mosquito catches, following a logarithmic curve. Even moderate airflow cut mosquito numbers significantly.

The reason is not that mosquitoes can’t fly against the wind. Instead, moving air dilutes the carbon dioxide and body odors you emit, making it much harder for mosquitoes to locate you in the first place. The researchers specifically recommended fan-generated wind as a practical way to protect people and pets in backyard settings. A standard oscillating fan or a large box fan pointed at your seating area can make a noticeable difference during peak mosquito hours around dusk and dawn. Flies are similarly weak fliers and struggle to navigate consistent airflow to land on you or your food.

Reducing Flies and Mosquitoes Around Your Home

Repellents protect your skin, but reducing the insect population near your living space is equally important. Mosquitoes breed in standing water, and they need surprisingly little of it. A bottle cap’s worth of water can support mosquito larvae. Walk your property weekly and dump, drain, or cover anything that collects rainwater: plant saucers, clogged gutters, birdbaths, old tires, and tarps with pockets of water. Birdbaths and pet water dishes should be refreshed every few days.

Flies breed in decaying organic matter. Keep outdoor trash cans sealed with tight-fitting lids, clean up pet waste promptly, and move compost bins away from doors and windows. If you eat outside frequently, covering food and wiping surfaces immediately after meals removes the scent cues that draw flies from a distance.

Window and door screens in good repair remain one of the simplest and most effective barriers. Even a small tear can let dozens of mosquitoes inside on a warm evening. Patching screen holes takes minutes and eliminates a major entry point.

What Doesn’t Work

Ultrasonic pest repellent devices are widely sold with claims that high-frequency sound drives away mosquitoes, flies, and other insects. No published study has ever demonstrated that ultrasonic sound effectively repels any arthropod pest. Testing specifically for mosquitoes found no difference in the number attracted to hosts whether the ultrasonic device was on or off. The same lack of effect has been documented for cockroaches, fleas, and bed bugs. These devices are, by all available evidence, ineffective.

Citronella candles provide minimal protection. While citronella oil has some repellent properties, the amount of active compound released by a burning candle is too low and too localized to create a meaningful barrier, especially outdoors where air movement disperses the scent quickly. They might reduce bites slightly within a few inches of the flame, but they won’t protect a patio.

Choosing the Right Approach

Your best strategy depends on the situation. For a backyard dinner, setting up a fan pointed at your seating area, keeping food covered, and applying a 20% picaridin spray gives you long-lasting, low-hassle protection against both flies and mosquitoes. For hiking or camping in mosquito-heavy areas, a 25% to 30% DEET product offers reliable protection for the full outing. For a porch or deck you use daily, maintaining screens and eliminating standing water within your yard addresses the root cause rather than just the symptoms.

Several factors shorten any repellent’s effective life: sweating, swimming, high ambient temperature, and physically rubbing the product off during activity. Reapply after swimming or heavy sweating, and follow the product label for timing. When applying repellent to children, spray it on your own hands first and then rub it onto the child’s exposed skin, avoiding their hands and the area around their eyes and mouth.

Layering permethrin-treated clothing with a skin-applied repellent is the gold standard for high-exposure environments. Permethrin is applied to fabric (not skin) and remains effective through multiple washes, killing or repelling mosquitoes, ticks, and flies on contact with your clothing. Combined with a DEET or picaridin product on exposed skin, this two-layer approach covers nearly all your bases.