If tiny flies are swarming your lawn or backyard, especially after watering or rain, you’re likely dealing with fungus gnats, also called lawn gnats. These small insects breed in moist soil and organic debris, and they multiply fast: a single female lays more than 100 eggs in her first week, and a full generation develops in as little as 3 weeks in warm, moist conditions.
Getting rid of gnats outside starts with cutting off their breeding grounds. Overly wet soil is the number one cause — stop overwatering and clean up decaying debris, and populations drop fast. From there, natural predators, neem oil, and targeted insecticides clear what remains.
If figuring out soil drainage and pest management sounds like too much work for a weekend, Lawn Love connects you with experienced local pros who can tackle the problem for you.
Key Takeaways
| Key Takeaways |
|---|
| • Lawn gnats breed in moist soil, so reducing overwatering is the single most effective fix. • One generation can develop in as little as 3 weeks in warm weather. • “Grass flies” is a common name for eye gnats that also swarm over lawns, while “lawn gnats” usually refers to fungus gnats breeding in damp soil. • Most infestations decline within a few weeks of consistent soil and debris management. |
Lawn gnat control methods at a glance
| Method | What it targets | Effectiveness | Safety notes |
|---|---|---|---|
| Reduce overwatering | Larvae (breeding) | High | No chemicals |
| Clean up organic debris | Larvae (food source) | High | No chemicals |
| Yellow sticky traps | Adults | Moderate | Safe for all |
| Neem oil spray | Adults and larvae | Moderate | Avoid fish ponds |
| Bt israelensis (Bti) | Larvae only | High | Safe for pollinators |
| Pyrethrin spray | Adults and larvae | High | Toxic to bees and fish; apply carefully |
| Beneficial nematodes | Larvae only | High | Safe for all; slow to work |
| Outdoor fans | Adults | Low | No chemicals; temporary |
Remove breeding sites

As long as you have rich, moist soil for the tiny insects to lay their eggs, lawn gnats won’t want to leave. One of the most effective ways to reduce gnat populations in your yard is to eliminate their breeding sites. Here’s how:
- Reduce watering: Overwatered turfgrass and landscape plants create breeding grounds. Allow the top inch of soil to dry out between waterings and only water when necessary.
Pro tip: Taylor Olberding, franchise owner at Heroes Lawn Care in Charleston, SC, advises using a simple trick to check your soil. “To check if your soil is too wet, don’t rely on the surface alone. Use a long screwdriver to test how deep the moisture goes. If it slides easily into the top 6 inches of soil, you’re likely overwatering.”
- Clean up organic debris: Fallen leaves, grass clippings, and other organic debris create moisture on your lawn and serve as a food source for fungus gnat larvae.
Pro tip: Olberding says that excess thatch is a major culprit once it builds up beyond half an inch. “At that point, it starts holding moisture like a sponge, creating a breeding ground for grass flies. You can check this by cutting a small section of turf and measuring the layer between the green blades and the soil,” he says.
- Dispose of infested potted plants: Dispose of severely infested or failing potted plants if other controls do not work, but in lawns and established beds, focus on fixing moisture and drainage rather than removing the plants.
- Fix drainage issues: Improve the drainage of your landscape and prevent water from pooling.
Pro tip: “For long-term prevention, the most effective step is core aeration in early spring,” Olberding says. “It breaks up compacted soil.”
- Avoid over-fertilization: Excessive plant growth creates excess organic debris for gnats to feed on. Always use fertilizers as directed.
- Mulch carefully: Mulch has many landscape benefits. However, it also produces a layer of moisture for gnats to hide.
Pro tip: “Certain types of mulch can also make the problem worse. Unfinished wood chips and heavy bark mulch tend to retain excess moisture and organic matter, which creates ideal conditions for fungus gnats to thrive,” Olberding says. “Alternatives like pine straw or cedar mulch allow better airflow and drier conditions.”
- Consider raised beds: Raised garden beds reduce moisture accumulation, creating a less attractive environment for gnats and other landscape pests.
- Manage standing water: Gnats love to swarm puddles, pools, birdbaths, and other sources of standing water. Maintain proper chemical levels in your pool and regularly replace the water in any water features to control the pests.
Natural gnat control
Natural control methods can be both eco-friendly and effective. There are several strategies to reduce gnats in your landscape, including:
Beneficial predators
Attract natural predators to your yard and let nature take its course. Not only does this create a balanced ecosystem, but it also reduces gnat populations. Gnat predators include:
- Bats
- Birds (Swallows, bluebirds, and chickadees)
- Hoverflies
- Ladybugs
- Ground Beetles
- Nematodes
Beneficial nematodes are highly effective against larvae, but execution is everything. Brandon Runyon, an entomologist at Swat Pest Management in Evansville, IN, points out common application errors.
“Either they do not mix enough of the nematodes, they do not apply to the soil, they don’t apply where the larvae are, or they apply past the shelf life of the nematodes,” Runyon says. “Also, understand that if you are seeing adults, it will still take time for the nematodes to work as they are attacking the larvae.”
Fragrant herbs
Plant fragrant herbs in your landscape for a small bonus. Their essential oils may help deter some flying insects when brushed or concentrated (bonus points for their culinary uses). Treat them as extra protection, not a primary lawn gnat control method.
Fragrant herbs include:
- Basil
- Catnip
- Chives
- Lavender
- Lemongrass
- Mint
- Rosemary
Pro tip: Many of these plants are better documented as mosquito, flea, and tick repellents than as targeted gnat controls, so always prioritize drying the soil and cleaning up organic debris.
Neem oil spray
A homemade neem oil spray deters adult gnats and disrupts their life cycle. Mix water, neem oil, and a few drops of dish soap in a spray bottle. Spray the solution on your affected plants. Be careful around water features, as neem oil is slightly toxic to fish.
Reduce artificial light
Artificial lighting affects gnat behavior, especially during the evening when you are enjoying your outdoor patio. Gnats are drawn to light sources. Replacing your standard white light bulbs with yellow or amber bug lights reduces gnat attraction.
Quick fixes for immediate relief

While you work on longer-term control, these reduce adult gnats fast:
- Yellow sticky traps: Adhesive traps attract and capture adult gnats. Place them near your plants or areas where you have noticed gnat activity.
- DIY vinegar trap: Create a homemade trap with apple cider vinegar and liquid dish soap. Fill a jar with apple cider vinegar and add a couple of drops of dish soap. Cover the jar with plastic wrap and poke holes in the top for gnats to enter. The vinegar lures the gnats while the dish soap traps them in the liquid solution.
- Citronella candles and incense: These products can make a seating area less attractive to some flying insects, especially mosquitoes, but their effect on lawn gnats is limited. Use them only for a bit of comfort around patios, not as a main gnat control method.
- Outdoor fans: Install outdoor fans on your patio or deck to create a breeze. Gnats are weak fliers and have difficulty in strong currents.
Apply pesticides
Chemical treatments are an effective solution for persistent gnat infestations. They offer rapid relief, targeting and eliminating gnats in various stages of their life cycle.
Bt israelensis (Bti)
Bacillus thuringiensis israelensis targets larvae specifically and is safe for plants, pollinators, and pets. Apply every 3-7 days during active infestations.
Pyrethrin sprays or granules
Pyrethrin is effective against both adults and larvae. Pyrethrins break down quickly (around 13 hours on soil surfaces), but are highly toxic to bees and fish.
Apply only to infested areas, avoid flowering plants, and never spray near water. Dilute as directed, target moist plant beds and soil rather than your whole lawn, and apply in the evening when bee activity is lowest.
FAQs
Fungus gnats are most active in lower-light conditions, especially in the evening around damp soil. Eye gnats (grass flies) tend to swarm during daylight hours, particularly in warm afternoon conditions. Both are more active during spring and summer and after rainfall or watering.
Lawn gnats are a catch-all term people use for small swarms of flies. In practice, that usually means fungus gnats in damp soil and eye gnats or grass flies hovering over grass. They behave similarly for homeowners, but are different insects.
No. While they appear similar, fruit flies and drain flies are not gnats. Runyon explains the visual differences:
“Fungus gnats are dark and slender and found near plants, as the larvae live in moist soil. Fruit flies are tan or brownish and a bit on the stout side. They are often found near food and drains. Mosquitoes are larger than fungus gnats and have a long proboscis.”
Get help with your outdoor gnat infestation
Sometimes, gnat control requires a complete landscape overhaul, which can be overwhelming. If you need your yard’s drainage assessed or aren’t sure which landscape plants will deter insects, let Lawn Love connect you with an experienced local pro to help eliminate active gnats and other insects in your yard.
Main Image: A fungus gnat in the wild. Photo Credit: zhang yongxin / Adobe Stock




