The tiny black flies that rise from a pot when you water are usually fungus gnats. The adults are just a nuisance, but their larvae in the soil can damage the roots of seedlings and young plants. Here is how to tell what you have, how to get rid of gnats in houseplants step by step and how to keep them from coming back.
Step 1. Let the top 2–3 cm of soil dry out completely before watering. Larvae die in dry soil and females won't lay eggs there.
Step 2. Stick yellow sticky traps near the pots to catch adults and show whether numbers are falling.
Step 3. Top the pot with 1–1.5 cm of dry sand, fine grit or decorative gravel so there is nowhere to lay eggs.
Step 4. Water from below via the saucer and pour away what's left after 20–30 minutes.
Step 5. For heavy infestations, drench the soil with a biological product based on Bacillus thuringiensis israelensis or a systemic houseplant insecticide, following the label. Repeat after 7–10 days.
Step 6. Last resort: repot. Shake off the old soil, trim rotten roots and use fresh mix; see how to repot a houseplant.
Water only once the top layer is dry and never leave water in the saucer.
Use pots with drainage holes and a drainage layer at the bottom.
Keep new plants apart for 2 weeks; quarantine reveals gnats and other pests. See why houseplants get sick.
Don't feed plants tea leaves, coffee grounds or meat water; it's food for larvae.
Keep opened bags of potting mix sealed; suspect soil can be heated in the oven for 30 minutes at 80–90 °C.
Take extra care with moisture-loving plants like the peace lily.
Fungus gnats, fruit flies or whitefly: how to tell them apart
The right fix depends on what exactly is flying around the pot. Watch the insects for a few minutes:
Fungus gnats (sciarid flies) are dark, 2–4 mm, with long legs and antennae. They fly slowly, hide in the soil and rise when you water. The damage comes from the larvae: white, translucent "worms" with black heads in the top layer of soil.
Fruit flies (Drosophila) are reddish-brown with red eyes. They hover over fruit, bins and bouquets whose vase water has turned sour. They do not harm potted plants.
Whitefly looks like tiny white moths sitting on the underside of leaves and rising in a cloud when the plant is shaken. It is a leaf pest, so soil treatments will not help.
Springtails (Collembola) are white or grey, up to 2 mm, and jump rather than fly across the soil surface after watering. They also signal overwatering.
If drying out the soil and traps have not worked within 1–2 weeks, move on to dedicated products. Garden centres and pet shops with a plant section sell them.
Biological products based on Bacillus thuringiensis israelensis target gnat larvae specifically and are safe for plants. Drench the soil 2–3 times, 7–10 days apart.
Systemic insecticides for houseplants (for example, thiamethoxam-based) are diluted in water and poured into the soil; the plant takes them up and the larvae die. This is the most effective option for a heavy infestation.
Contact products and sprays kill adult gnats but not larvae, so they only work alongside a soil drench.
Yellow sticky traps do not cure the problem, but they show whether numbers are falling and catch females before they lay eggs.
Use chemicals strictly as the label says: wear gloves, work on a balcony or by an open window, and keep them away from children, cats and aquariums. Do not treat windowsill herbs you eat with insecticides; for those, stick to drying, sand and traps.
The flies hovering over cut flowers are usually fruit flies, not fungus gnats: they are drawn to fermenting water and fallen petals. No insecticide is needed.
Replace all the water and wash the vase with detergent.
Re-cut the stems and remove any leaves that sit below the waterline.
Add a sachet of cut-flower food to the fresh water; it slows bacterial growth.
Clear away nearby fruit and fallen petals, and set an apple-cider-vinegar trap.
After that, change the water every 1–2 days and the flies will disappear along with the smell.
No. They don't bite or carry disease; they are just annoying.
How do I get rid of gnats fast?
Let the soil dry, use yellow sticky traps and top-dress with sand; for heavy infestations drench with a biological product or insecticide.
Why do gnats appear in winter?
Plants drink less in winter but are often watered out of habit, so the soil stays wet.
Are the white jumping bugs gnats?
No, they are springtails: mostly harmless, but a sign of overwatering.
How long does it take to get rid of gnats?
A fungus gnat completes its life cycle in roughly 3–4 weeks in a warm flat. Keep drying, trapping and treating for at least a month, even after you stop seeing adults.
Are pot gnats dangerous to people or pets?
No. Fungus gnats do not bite or carry disease; they only harm the roots of young plants and seedlings.
Graduated from Taras Shevchenko National University of Kyiv, Institute of Biology and Medicine (2001). BSc in Biology, MSc in Horticulture. Writes about plants, works at a garden centre selecting and repotting plants, and contributes to plant reference guides.