Skip to content
Gardener Help

Fungus Gnats (Sciarid Flies) in Houseplants — Where They Come From and How to Get Rid of Them

Watering an orchid over the sink — the water drains out of the potIllustrative photo
Photo: watering an orchid over the sink — the water drains out of the pot — illustration, does not show the problem described.

Fungus gnats (sciarid flies) are small, dark, mosquito-like flies that breed in the potting compost of houseplants and run over it or fly slowly around the pots.

  • The adults are a nuisance, but they do not bite and do not damage plants; the larvae live in damp compost and are unlikely to harm established plants.
  • They thrive where the compost stays wet, so the main remedy is to let it dry between waterings.
  • This is general information, not a diagnosis of your plant.

How to recognise fungus gnats

Adult fungus gnats are fragile flies, dark brown or black, that look like tiny mosquitoes, with long legs and long antennae.

  • Most are about 3–4 mm long; by other accounts they are commonly about 1.5 to 3 mm.
  • The wings are clear to light grey, and under a magnifying glass a Y-shaped vein shows near the wing tip.

They are weak fliers and usually stay close to the pots: they run over the compost or rest on it and on the leaves, and fly slowly around the plants. Because they are attracted to light, they also gather at windows and lamps, and people often notice them flying around their face and their computer screen.

The larvae live in the compost, usually in its top 5–8 cm (2 to 3 in), or by other accounts in the top 2.5–5 cm (1 to 2 in).

  • They are slender, legless, whitish and almost transparent, with a shiny black head, and up to about 6 mm long.
  • Where the compost is very wet and there are many of them, they can leave shiny slime trails on the surface, like the trails of small snails.

The easiest moment to notice the adults is when you water, because the water makes them move.

  • A slice of raw potato laid on the compost shows whether there are larvae: they come to feed on it within a few days, so turn the slice over and look at its underside.
  • If you have many plants, this also shows which pots are the main source.

How to tell them from other small flies

Several kinds of small flies turn up indoors, and fungus gnats are often mistaken for fruit flies. Each kind breeds in a different place, so look at where the flies gather.

Fruit flies (vinegar flies) are about 3 mm long, with a brown to black body and red or dark eyes.

  • They gather in the kitchen — on overripe fruit, around rubbish bins and around fermented liquids such as vinegar, beer and juice — and they hover and fly fast.
  • Vinegar traps catch fruit flies, but they do not work for monitoring fungus gnats.

Drain flies (moth flies) look like miniature moths 2–4 mm long: dark brown, with a hairy body and large oval wings held roof-like over it. They fly weakly, in short hops, and rest on walls in bathrooms and kitchens, near the drains they breed in.

Phorid flies (scuttle flies) are about 3 mm long and look like fruit flies, but have a humped back and, when disturbed, run quickly over surfaces instead of flying away. They are found around rubbish bags, clogged drains and decaying matter.

Whiteflies are white, not dark: very small white insects that sit on the underside of the leaves, not on the compost, and flutter up when you water or handle the plant.

In greenhouses there are also shore flies: they are more robust than fungus gnats, with short antennae, and they are associated with algae.

Where they come from and why they multiply

Fungus gnats also live outdoors, where they cause no damage. They get indoors through doors and windows, with infested pot plants — including plants that spent the summer outside — and sometimes with potting compost: they may arrive in bagged mix, and compost can become infested before use if it is not kept closed.

A female lays up to 200 eggs in cracks in the surface of moist compost:

  • The larvae hatch within a few days and feed mainly on fungi, algae and decaying plant matter, and sometimes on roots; then they pupate in the compost and the adults emerge.
  • An adult lives only about a week to ten days.

Sources differ on how long the whole cycle from egg to adult takes: about three to four weeks at room temperature according to some, about 17 days at around 24°C (75°F) according to others; the warmer it is, the faster they develop. Indoors they breed all year round and the generations overlap, so eggs, larvae, pupae and adults are present at the same time.

What matters most is moisture:

  • The females are strongly attracted to moist compost, particularly to mixes with a lot of peat, and compost that has aged and broken down holds more water.
  • This is also why the gnats are most noticeable in late autumn and winter: with shorter days and cooler temperatures the plants grow more slowly and use less water, and if you go on watering as before, the compost stays moist.
  • Houseplants that spent the summer outdoors are often colonised there, and once they are brought into the warmth indoors the gnats may multiply.

Do they harm the plant

The adults do not damage plants and do not bite people; they are just a nuisance.

The larvae feed mainly on fungi and decaying plant material and are unlikely to damage established plants.

  • In large numbers, though, they can feed on root hairs and roots, slow the plant’s growth or bore into the base of soft cuttings; this is most damaging to seedlings, cuttings and young plants.
  • In homes such damage is rare.
  • Sources differ on how far this goes: some say established plants are not harmed, others report serious root damage and even plant death in houseplants where very many larvae lived in moist compost rich in organic matter.

Even so, if a houseplant is wilting, the cause is much more often something else: too much or too little water, root rot, or compost that drains poorly or is waterlogged. Overwatering and poor drainage can lead to root rot and also encourage fungus gnats — so when there are many gnats, check how wet the compost stays.

What to do first

  1. Let the surface of the compost dry between waterings — this is the most important step. Wait until the top 2.5 cm (1 in) is dry, or by other advice the top 2.5–5 cm (1 to 2 in), as long as the plant does not wilt. Eggs and larvae survive less well in dry compost, and it is less attractive to egg-laying females.
  2. Do not leave the pot standing in water and make sure it drains well. In the colder, darker part of the year water less often, because the plants use less water.
  3. If the plant tolerates it, water from below: the roots get moisture while the surface of the compost stays dry.
  4. Clear dead leaves, flowers and stems from the surface of the compost — the larvae feed on decaying plant matter. You can throw out a heavily infested plant, and do not move infested pots next to healthy plants.
  5. Put yellow sticky traps by the pots — on the edge of the pot or under the leaves. They show how many gnats there are and catch some of the adults, but do not rely on traps alone: the gnat spends most of its life as a larva and pupa in the compost.
  6. Repot a plant whose compost is old, broken down and stays wet: wash the old compost off the roots and use fresh potting compost and a clean pot. Do not reuse the old compost for pot plants — it holds the eggs and larvae.
  7. Use fresh potting compost made for houseplants, never soil from the garden, and close bags tightly once you have opened them.
  8. Do not move an infested plant next to clean ones. Check every new plant before you bring it home and keep it apart from the others for one to two weeks.
  9. Be patient: it can take three to four weeks to get the gnats in check. A badly infested plant can also be thrown away.

Biological control of the larvae

If drier compost is not enough, the larvae can be controlled with living organisms that are added to the compost. Use them as their label says.

Beneficial nematodes (Steinernema feltiae) are microscopic roundworms that enter the larvae and kill them within a few days.

  • They are applied to the compost with water.
  • They need moist compost, and temperature affects how well they work; they are live and perishable and have to be applied as soon as they arrive.

The bacterium Bacillus thuringiensis subsp. israelensis (Bti), also applied with water, is toxic only to the larvae of some flies — for example mosquitoes, black flies and fungus gnats — and does not affect the eggs, pupae or adults.

  • It does not persist in the compost, so repeat applications are commonly needed.
  • It is a different subspecies from the one used against caterpillars, which is not effective against fly larvae.

Predatory soil mites (Stratiolaelaps, also called Hypoaspis) feed on the larvae too, but according to some sources they probably do not perform well in single houseplants.

These organisms are essentially non-toxic to people:

  • On insecticides the sources differ: according to some they are rarely warranted against fungus gnats in the home; according to others they may be necessary if the gnats persist several weeks after watering has been adjusted.
  • If you do use one, make sure it is labelled for houseplants and follow its label.

Home remedies — what the sources say

Potato slices are a good way to find the larvae, and according to some sources they can also lure larvae away from the roots: after a few days the slices are taken out, thrown away and replaced with fresh ones. By themselves they will not rid you of fungus gnats, and they do not repel them.

Cinnamon will not rid you of fungus gnats.

Vinegar traps are for fruit flies; they do not work for monitoring fungus gnats.

On covering the compost with sand the sources differ: some recommend a layer of coarse sand or fine gravel about 1.3–2.5 cm (½ to 1 in) thick, which helps keep the surface drier and less attractive for egg-laying; others report that in studies a layer of sand only a few millimetres thick did not prevent the females from laying eggs.

The simple solution remains the same: reduce the excess moisture in the compost.

Possible Causes

  • Fungus gnats — small, dark, mosquito-like flies on and around the compost; larvae with a black head in damp compost
  • Fruit flies — brown to black, in the kitchen around overripe fruit, rubbish and fermented liquids
  • Drain flies (moth flies) — hairy and moth-like, on walls near drains
  • Phorid flies (scuttle flies) — humpbacked, run instead of flying away; around rubbish and clogged drains
  • Whiteflies — white, under the leaves; they flutter up when the plant is handled

What to Check

  • Where the flies gather: on the compost and around the pots, under the leaves, around fruit and rubbish, or near drains
  • How wet the compost stays: is its surface dry before you water again
  • Does the pot stand in water, and does it drain well
  • Larvae: a slice of raw potato on the compost, turned over after a few days
  • How many adults a yellow sticky trap catches, and next to which pot
  • Is the compost old and broken down; are there dead leaves, rotting roots or bulbs
  • Are there seedlings or cuttings nearby — they are damaged the most

Small flies indoors are easily confused: fungus gnats are often mistaken for fruit flies, and each kind of fly breeds in a different place. A close photo of the fly and of the place where it sits helps to tell them apart.

Common Questions

Are the little black flies in my plant pots harmful?

The adults do not bite people and do not damage plants; they are a nuisance. The larvae live in the compost and are unlikely to damage established plants, but in large numbers they can damage roots and slow growth, most of all in seedlings, cuttings and young plants.

Why are there more fungus gnats in autumn and winter?

With shorter days and cooler temperatures houseplants grow more slowly and use less water. If you water as before, the compost stays moist, and moist compost attracts the egg-laying females. Plants that spent the summer outdoors often bring gnats in with them as well.

Do I have to throw away the compost or repot the plant?

Not always: first let the surface of the compost dry between waterings. Repotting helps when the compost is old, broken down and stays wet — wash the old compost off the roots, use fresh potting compost and a clean pot, and do not reuse the old compost for pot plants.

Do yellow sticky traps get rid of fungus gnats?

They catch adults and show how many there are. On whether that reduces the gnats the sources differ: according to some, traps only help to detect the adults; according to others, catching the females may mean fewer larvae in the next generation. Do not rely on traps alone; they also catch other small insects, including useful ones.

Do cinnamon, vinegar traps or sand work against fungus gnats?

Cinnamon will not rid you of fungus gnats, and vinegar traps work for fruit flies, not for fungus gnats. On sand the sources differ: some recommend a layer of coarse sand or fine gravel about 1.3–2.5 cm (½ to 1 in) thick to keep the surface drier, others report that in studies a layer only a few millimetres thick did not prevent egg-laying. The simple solution is to reduce the excess moisture in the compost.

Do fungus gnats come from the bag of potting compost?

It is possible: fungus gnats may arrive in bagged potting mix, and compost can become infested before use if it is not kept closed. Do not use opened bags that have stood outdoors for indoor plants, and close bags tightly once you have opened them.

The flies around my houseplant are white, not black — what are they?

Probably whiteflies: very small white insects that sit on the underside of the leaves and flutter up when you water or handle the plant. Fungus gnats are dark and stay on and around the compost.

Sources

This guide was checked against the public references below. It is general background, not a diagnosis of a specific plant.

Last reviewed:

How we check our content

Was this helpful?

Want a real answer for your plant?

The causes above are a starting point. They are not a diagnosis and don’t replace looking at your own plant. Analyses open soon: register now and your free analyses will be waiting when we launch.

Related Topics

We use cookies the site needs to work. With your consent we also count visits (no tracking cookie). We don't use marketing cookies at the moment.