Fungus gnats are tiny, dark, long-legged flies, about 3 mm long, that hover around houseplants and breed in damp potting soil. The adults are harmless, but the larvae can damage roots. To get rid of fungus gnats, let the top of the soil dry out, clear debris from the pots and trap the adults.

Fungus gnat, a small dark fly with long legs and antennae, resting on a piece of wood
A fungus gnat. It looks like a tiny, slender mosquito. Photo: AfroBrazilian, CC BY-SA 3.0, via Wikimedia Commons (resized).

What do fungus gnats look like?

Fungus gnats (Bradysia and related genera) are small, delicate, grey to black flies, about 3 mm long, and up to 6 mm by some counts. They have long legs and antennae, and they look like a tiny mosquito. The wings are clear and carry a Y-shaped vein, which is one way to tell them from fruit flies. They are weak flyers, and they are drawn to light, including grow lights and computer screens.

Size comparison: Fungus gnat beside a Canadian dimeA Fungus gnat is about 3 mm long. A Canadian dime is 18 mm across.Canadian dime, 18 mmFungus gnat, about 3 mm
Size guide: Fungus gnat compared with a Canadian dime (illustration; the body shape is simplified).
Fungus gnat with iridescent clear wings and long legs on a rough wooden surface
The clear, iridescent wings of a fungus gnat. Photo: AfroBrazilian, CC BY-SA 3.0, via Wikimedia Commons (resized).

The larvae are easier to recognise. They are around 6 mm long, legless and pale, with a glossy black head.

Fungus gnat vs fruit fly vs drain fly

Fungus gnats live around plants. Fruit flies live around food. Drain flies live around drains. If you see the flies around a houseplant, especially near soil, they are almost certainly fungus gnats.

Fungus gnat vs fruit fly vs drain fly: which small fly do you have?
Fungus gnatFruit flyDrain fly (moth fly)
What it looks likeAbout 3 mm, black to dark, with long legs and antennae and clear wings with a Y-shaped veinBrown to yellowish, about 2 to 3 mm, with red eyes and clear wingsAbout 3 mm, dark and fuzzy, with hairy wings held like a roof over the body
Where it breedsDamp potting soil and other moist growing mediaRipe or rotting fruit, spilled sweet liquids, compost and other moist, fermenting matterThe slimy film inside sink, shower and floor drains, and other wet organic matter
Where you see itAround houseplants, seed trays and worm bins, and at windows and lightsKitchens, around fruit bowls, bins and compostBathrooms, kitchens and basements, near drains
How it fliesWeak and drawn to lightA strong flier that hovers over foodA weak flyer with short hopping flights; rests on walls
First stepLet the top of the soil dry out and clear debris from the potRemove ripe fruit and food waste, empty bins daily and set a trapScrub the film out of the drain and fix slow drains

Fungus gnat biology and life cycle

The adults are only the visible end of the cycle. Almost everything that matters happens in the top few millimetres of the soil, where the larvae feed and where the eggs are laid.

Fungus gnat life cycle

1

Eggs in damp soil

A female lays up to about 200 eggs in the crevices of moist potting soil or worm-bin bedding.

2

Larvae in the top of the soil

The larvae reach roughly 6 mm. Each has a glossy black head on a pale, see-through body with no legs. They stay in the top few millimetres of the soil, leave silvery trails, and feed on fungi, algae and rotting plant matter.

3

Pupae

In about two to three weeks the larvae pupate in the soil.

4

Adults

New adults appear at about four weeks. They no longer eat, but they fly, mate and lay more eggs. That is the cycle you see as a cloud of gnats around your plants.

Fungus gnat specimen beside a 500 micrometre scale bar showing its small size
A fungus gnat specimen beside a scale bar. It is very small. Photo: Oivind Gammelmo, BioFokus, CC BY-SA 4.0, via Wikimedia Commons (resized).

Where fungus gnats come from

They are almost always introduced in potting soil or compost. A bag of soil, a new plant or a bin of worm compost can bring them home. Once there, they thrive wherever the top layer stays wet: overwatered houseplants, seedling trays under grow lights, pots with poor drainage and worm bins. Fallen leaves and old fruit on the soil surface give them food.

Why fungus gnats are in your house

Something is staying damp. Fungus gnats need moist growing media, so the real answer is usually overwatering. They also like organic debris on the soil surface, and the light from windows and grow lamps draws the adults to gather around plants and windows.

Fungus gnats in the house: plants, worm bins and grow lights

Fungus gnats in the house tend to cluster around three things. Houseplants come first, especially any pot that stays wet. Seedling trays under grow lights come next, since the light attracts the adults and the trays are kept damp. The third is the worm bin, where food scraps and moist bedding suit the larvae. For a worm bin, freeze fruit and vegetable scraps before adding them, keep the scraps buried under bedding, use sticky tape on the lid, and swap out the top layer of wet bedding if larvae build up.

Signs of a fungus gnat infestation

Are fungus gnats harmful? Do fungus gnats bite?

Fungus gnats do not bite, and the adults are a harmless nuisance. They are the last stage of life and no longer eat. The larvae are the problem for plants: they can injure the roots of young plants and seedlings, which then look stunted and may drop their leaves. In severe cases a plant can die.

The larvae live in the top few millimetres of soil. Letting that layer dry out between waterings starves the eggs and larvae.

Common myths about fungus gnats

How to get rid of fungus gnats yourself

How AstraHive Pest Control gets rid of fungus gnats

Fungus gnats are a source problem, and the source is damp soil. We find where it is and help you cut the supply.

How an AstraHive fungus gnats treatment works

1

Inspect and find the source

We inspect houseplants, seedling trays, worm bins and any other damp organic matter to find where the gnats are breeding.

2

Dry out the source

We show you which pots, trays or bins are the source and how to change watering, drainage and debris so the larvae lose their habitat.

3

Treat inside only when needed

If a large number of fungus gnats are already flying through the house, we add an interior treatment, applied according to the label and kept away from plants and food.

4

Back it with a 90-day warranty

If fungus gnats come back within 90 days, we re-treat at no charge.

Our products are Health Canada approved and safe for kids and pets, and we apply every product according to its label. AstraHive is licensed by the Ontario Ministry of the Environment, Conservation and Parks. Ontario requires a ministry-approved certification course before it issues an exterminator licence, and that training is delivered through the University of Guelph, Ridgetown Campus.

Is overwatering the real cause?

Almost always. Fungus gnats do not appear in dry soil, so the most effective fix is also the cheapest: water less, let the top layer dry, make sure the pot drains freely, and empty saucers. Repotting into fresh, sterile potting mix with better drainage works when a plant has been badly affected, and you should not reuse potting soil from year to year because the eggs can carry over.

Fungus gnat control in Ontario: when to call an exterminator

Most fungus gnat problems end when the soil dries out. It is worth calling a licensed pest control company if gnats keep coming back after you have dealt with the plants, if they are in a large indoor garden or a food business, or if you are not sure whether the flies you see are fungus gnats, fruit flies or drain flies.

Why Choose AstraHive

Frequently Asked Questions

How do I get rid of fungus gnats?

Let the top 5 to 7 mm of the soil dry between waterings, improve drainage, remove debris from the soil surface and set yellow sticky traps. For a bad infestation, repot with fresh, well-draining potting soil, or use predatory mites, nematodes or diatomaceous earth.

Where do fungus gnats come from?

Usually from potting soil or compost brought into the house. They breed in damp soil, so overwatered plants, seedling trays and worm bins are the usual sources.

Do fungus gnats bite?

No. The adults are a harmless nuisance and do not feed. The larvae feed on fungi and decaying matter in the soil and can damage the roots of young plants.

Are fungus gnats harmful?

Not to people. To plants, the larvae can injure roots, leaving young plants stunted, with dropping leaves, and in severe cases dead.

What is the difference between fungus gnats and fruit flies?

Fungus gnats are darker and slimmer with long legs, and they hover around plants and soil. Fruit flies are tan with red eyes and hover around ripe or rotting food.

Do I need a fungus gnat exterminator?

Usually not. Drying the soil solves most problems. Call one if they keep returning, if the source is a large indoor garden or worm system, or if you are unsure what the flies are.

Sources

Areas We Serve

AstraHive Pest Control proudly serves 75+ communities across the following regions:

Don't see your city listed? Call us — we likely cover it.

Got a pest problem right now?

Call AstraHive for a free consultation. Licensed & insured, serving the GTA, Durham, York, Peel and Simcoe County.

Call 905-925-8427

5.0 Stars — 200+ Google Reviews  |  Licensed & Insured  |  Health Canada Approved