Gnats zero in on you by following the carbon dioxide you exhale, the lactic acid and ammonia in your sweat, and your body heat. Stopping them means disrupting those signals, creating physical barriers, or driving them away with repellents. The good news is that gnats are extremely weak fliers, so even simple strategies like a fan can make a dramatic difference.
Why Gnats Target You Specifically
Gnats and their close relatives (midges, no-see-ums, black flies) locate humans using a layered detection system. From as far as 50 to 100 feet away, they sense the carbon dioxide plume you release with every breath. Larger people exhale more CO2, which can make them easier targets. As they get closer, they pick up skin odors, especially lactic acid, ammonia, and the byproducts of bacteria naturally living on your skin. Finally, they use body heat to make their landing approach.
This means anything that increases your CO2 output, body temperature, or sweating makes you more attractive. Exercise is the perfect storm: heavier breathing, elevated body heat, and fresh sweat all at once. People who naturally run warmer or sweat more heavily tend to draw more gnats even at rest. Understanding these triggers is the foundation for every prevention strategy below.
Use a Fan to Create a No-Fly Zone
This is the single easiest outdoor fix. Gnats struggle to fly in wind speeds above 1 to 2 miles per hour, which is barely enough for you to feel on your skin. A standard oscillating fan produces airflow of 5 to 10 mph, more than enough to keep gnats from reaching you. Position the fan so you’re sitting directly in its airflow. The moving air does double duty: it physically blocks weak-flying insects and disperses the CO2, body heat, and odor signals they use to track you.
The limitation is range. Step outside the cone of moving air and you lose the protection entirely. For a patio or deck, a large box fan or pedestal fan aimed at seating height works well. For a broader area, two fans angled to overlap their coverage zones will close the gaps.
Choose the Right Repellent
If you need to move around, a topical repellent is your best option. Three active ingredients have strong evidence against gnats and biting midges specifically:
- DEET works well on biting midges, no-see-ums, and black flies in addition to mosquitoes. Products up to 30 percent concentration are recommended. Higher concentrations don’t repel better; they just last longer before you need to reapply.
- Picaridin is effective against mosquitoes, biting midges, no-see-ums, and chiggers. It feels less oily than DEET and doesn’t damage plastics or synthetic fabrics.
- Oil of lemon eucalyptus (OLE) is the strongest plant-based option. Its active compound has shown comparable activity and duration to DEET in several studies, and it is effective against some biting midges. Commercial products typically contain 30 percent OLE with about 20 percent of the active compound. It does need more frequent reapplication than DEET, especially after the first hour or two.
Apply repellent to exposed skin and, if the label allows, lightly to clothing. Reapply after swimming or heavy sweating. For non-biting gnats that are simply annoying rather than harmful, even a light application of any of these products will discourage them from hovering near your face and arms.
Reduce What Attracts Them
You can’t stop breathing, but you can lower the other signals gnats follow. Shower before spending time outdoors if you’ve been exercising. Fresh sweat is initially odorless to humans, but gnats detect the lactic acid and ammonia in it immediately. Skin bacteria also break sweat down into additional odors that act as homing beacons, so clean skin produces fewer attractant signals overall.
Wear light-colored, loose-fitting clothing that covers your arms and legs. Dark colors absorb heat and make you a more visible thermal target. Tightly woven fabrics work best because tiny gnats, particularly no-see-ums, can slip through loose mesh. If you’re in an area with aggressive biting midges, tuck pants into socks and sleeves into gloves to eliminate entry points.
Avoid scented lotions, perfumes, and hair products when you’ll be outdoors in gnat-heavy conditions. Floral and fruity fragrances can draw certain species closer. Unscented sunscreen applied before your repellent is fine.
Time Your Outdoor Activities
Most gnats and biting midges are most active during dawn and dusk, when humidity is higher and wind tends to die down. Midday, especially on breezy days, is typically the lowest-risk window. If you have flexibility in when you garden, exercise outside, or eat on the patio, shifting your schedule by even an hour can cut gnat encounters significantly.
Humid, still evenings after rain are peak gnat conditions. Gnats breed in moist environments: standing water, waterlogged soil, shallow ponds, and even clogged gutters. If your yard has any of these, you’re essentially living next to a nursery. Emptying standing water, fixing drainage issues, and letting soil dry between waterings reduces local gnat populations over time.
Deal With Indoor Gnats at the Source
The gnats circling your face indoors are almost certainly fungus gnats, and they’re coming from overwatered houseplants. These tiny flies breed in moist potting soil where fungi and organic matter give larvae something to feed on. They don’t bite, but they’re attracted to the CO2 you exhale, which is why they hover around your face.
The fix is straightforward: let the top inch or two of soil in your pots dry out completely between waterings. This kills larvae and makes the soil inhospitable for egg-laying. For a faster solution, cover the soil surface with a half-inch layer of coarse sand or decorative gravel, which prevents adult gnats from reaching the soil to lay eggs. Sticky yellow traps placed near plant pots catch adults already in the air and help you gauge whether the population is declining.
If gnats are coming from drains rather than plants, they’re likely drain flies. A thorough cleaning of the organic buildup inside the drain, using a stiff brush and drain cleaner, eliminates their breeding site. Simply running water won’t do it because the slimy film inside the pipe is where the eggs are.
Outdoor Traps and Perimeter Strategies
Apple cider vinegar traps work for fruit flies and some gnat species. Fill a small jar with apple cider vinegar, add a drop of dish soap to break the surface tension, and set it near where you sit. Gnats are drawn to the fermentation scent and drown when they land. These traps reduce numbers but won’t eliminate a large outdoor population on their own.
For patios and porches, fine-mesh screening (smaller than standard window screen) blocks even no-see-ums. Standard screen mesh has openings large enough for the smallest biting midges to pass through, so look for products specifically marketed as “no-see-um mesh” if biting gnats are the issue.
Citronella candles and torches provide only marginal protection. They work by masking your CO2 and odor signals with smoke, but the effect drops off sharply beyond a foot or two from the flame. They’re better than nothing in a small, enclosed patio space, but far less reliable than a fan or repellent.