Yellow Gnats: Types, ID, and How to Get Rid of Them

Several types of small flies get called “yellow gnats,” and identifying which one you’re dealing with determines whether it’s a harmless nuisance, a plant pest, or something that bites. The most common culprits are eye gnats (tiny flies with yellow-orange legs), yellow flies (a painful biting species), fungus gnats hovering around houseplants, and small plant pests like whiteflies or winged aphids that can look like yellow gnats at first glance.

Eye Gnats: The Persistent Face Flies

Eye gnats are among the most commonly encountered small flies that fit the “yellow gnat” description. They’re tiny, just 1/16 to 1/8 inch long, with shiny black or gray bodies and distinctive yellow to orange-brown legs. They’re most common in the southwestern United States, northern Mexico, and tropical or subtropical regions, with Liohippelates collusor being the most abundant species in California.

What makes eye gnats unmistakable is their behavior. Female eye gnats persistently fly toward your eyes, nose, mouth, and any open wounds. Brushing them away does almost nothing because they circle right back. They’re attracted to sweat, skin oils, pus, and blood, which they soak up with sponge-like mouthparts. They don’t bite or break skin, but females have small curved spurs on their hind legs that scrape your skin to increase the flow of secretions. Males don’t feed on people at all, so you’ll rarely notice them.

The real concern with eye gnats is disease transmission. Because they feed around eyes and open wounds, they can carry and spread bacteria between people and animals. They’ve been linked to the spread of organisms that cause conjunctivitis (pink eye) and other infections. If you’re in an area with heavy eye gnat activity and develop eye irritation or infection, that connection is worth mentioning to your doctor.

Yellow Flies: A Painful Biter

If the “yellow gnat” you encountered left you with a sharp, painful bite, you’re likely dealing with a yellow fly. These are significantly larger than true gnats, about 3/8 inch long, and predominantly yellow with black forelegs and clear wings marked by a brown patch at the tip. Their eyes are a striking blue-green with purple bands when alive, though you probably won’t notice that detail in the moment.

Yellow flies are among the most aggressive biting flies in areas where they occur, primarily the southeastern United States. Only females bite. Their flight is nearly silent, so the first sign of their presence is often the sharp pain of the bite itself. Bites frequently produce large, itchy swellings that can persist for days. Unlike eye gnats, yellow flies are true biters that tear skin to access blood. Males stick to pollen and nectar and leave people alone.

There’s no specific treatment beyond basic wound care: clean the bite, apply a cold compress to reduce swelling, and use over-the-counter anti-itch products if needed. The swellings look alarming but resolve on their own in most cases.

Fungus Gnats Around Houseplants

If you’re seeing tiny flies hovering around potted plants or damp soil indoors, fungus gnats are the most likely explanation. These are dark, delicate flies that look similar to tiny mosquitoes, with noticeably long antennae. They belong primarily to the Bradysia and Orfelia species groups. While not typically yellow themselves, they’re often lumped into “yellow gnat” searches because of how commonly they show up on yellow sticky traps near plants.

Fungus gnats lay their eggs in moist soil rich in organic matter. The larvae feed on fungi, decaying material, and sometimes plant roots in the soil. The adults are mostly just annoying, flying weakly around your plants and toward light sources. The real damage, when it happens, comes from the larvae feeding on roots underground, which can stunt or damage young or delicate plants.

The most effective control starts with watering habits. Letting the top inch or two of soil dry out between waterings makes the growing medium inhospitable for eggs and larvae. Repotting with fresh, well-draining soil helps in heavy infestations.

Plant Pests That Look Like Yellow Gnats

Whiteflies, winged aphids, and thrips can all appear as tiny yellow or pale flying insects on and around plants, leading to confusion with gnats. Whiteflies are not true flies at all but are related to aphids and scale insects. They’re about 1/16 inch long, moth-like in shape, and usually gray-white, though some species have a yellowish tint. Both whiteflies and aphids feed by piercing plant tissue and sucking sap, which causes leaf yellowing, wilting, and stunted growth. They also secrete honeydew, a sticky residue that promotes black sooty mold on leaves.

If you’re seeing tiny flying insects clustered on the undersides of leaves rather than hovering around soil, you’re more likely dealing with whiteflies or winged aphids than fungus gnats. A quick test: shake the plant gently. Whiteflies scatter in a cloud when disturbed, while fungus gnats tend to hover near the soil surface.

Using Yellow Sticky Traps

Yellow sticky traps are useful for identifying and monitoring nearly all of these pests. The yellow color attracts a wide range of flying insects, including fungus gnats, whiteflies, thrips, aphids, and other small flies. For indoor plants, place traps so the bottom edge sits level with the top of the plant canopy. For fungus gnats specifically, orienting the trap horizontally (facing the soil) can improve catches since these flies tend to hover near and emerge from the growing medium. For a broader range of pests, vertical orientation works better.

One important caveat: sticky traps capture airborne adults, but in many species the immature stages feeding in soil or on plant tissue cause the most actual damage. Traps work well as a detection tool, helping you figure out what you’re dealing with and how severe the problem is, but they rarely solve an infestation on their own. Always pair traps with direct inspection of your plants for signs of damage, larvae, or eggs.

For larger spaces like greenhouses, the general recommendation is at least one trap per 1,000 square feet, with additional traps placed near doors, vents, and any crops particularly vulnerable to pest damage. Traps should be at least 3 by 5 inches to be effective.

Telling Them Apart

A quick identification guide based on what you’re noticing:

  • Flies targeting your face and eyes, won’t leave you alone: Eye gnats. Tiny, with yellow-orange legs and dark bodies. Don’t bite but can spread bacteria.
  • Sharp, painful bite followed by a large itchy welt: Yellow fly. About 3/8 inch, mostly yellow body, found in the southeastern U.S.
  • Tiny dark flies hovering around potted plant soil: Fungus gnats. Long antennae, weak fliers, drawn to moist organic soil.
  • Tiny pale insects clustered on plant leaves, scatter when disturbed: Whiteflies or winged aphids. Check leaf undersides for colonies and sticky honeydew residue.

Reducing Indoor Infestations

For fungus gnats and whiteflies indoors, prevention centers on moisture and sanitation. Overwatered houseplants are the single biggest driver of fungus gnat problems. Allowing soil to dry between waterings, using pots with drainage holes, and removing decaying plant material from the soil surface all reduce breeding opportunities.

If you use an indoor insecticide spray, most products targeting small flies contain pyrethrins or pyrethroids. These work by disrupting nerve function in insects. Follow label instructions carefully, particularly regarding how long to stay out of the treated area. Getting these products on your skin can cause temporary numbness, tingling, or burning that lasts a few hours. Larger exposures can cause dizziness, headache, and nausea. Some people have allergic reactions to pyrethrin-based products, so start with a small application if you’ve never used them before. Keep all pesticides in their original containers and out of reach of children.

For outdoor eye gnat problems, personal repellents offer some relief, though the flies’ persistence makes them harder to deter than mosquitoes. Wearing sunglasses provides a physical barrier that reduces their access to your eyes. Since eye gnats breed in loose, cultivated soil rich in organic matter, reducing areas of bare, moist soil near your home can lower local populations over time.