Indoor plant care guides
Tiny black flies in your plant soil: what fungus gnats are and how to get rid of them
By Grovia · Updated:

Quick answer
If you see tiny dark flies hovering over the pot or scurrying across the soil, it is almost certainly fungus gnats (sciarids). They show up when the soil stays wet for too long. The adults do not harm the plant; the larvae live in the top few centimetres of the potting mix. Let the top layer dry out between waterings, put out yellow sticky traps for the adults and, if they persist, use beneficial nematodes against the larvae.
Diagnosis chart
- Tiny dark flies hovering slowly over the pot.
- Whitish larvae with black heads in the top few centimetres of the potting mix.
- Soil surface dark and wet several days after watering.
- Water collected in the saucer.
- Yellow sticky trap: it catches the adults and shows you whether numbers are going down.
Grovia illustration. Each number matches a line in the key.
What to look for and what to do
- What you see
- Dark flies 3–4 mm long that rise when you water or move the pot
- What to check
- Do they fly slowly near the soil or run across it?
- Next step
- It’s fungus gnats: let the top layer dry out before you water again.
- What you see
- Tiny white worms with black heads in the soil
- What to check
- Lay a slice of raw potato on the soil and lift it after 2–3 days
- Next step
- If larvae turn up underneath, treat the potting mix as well as trapping the adults.
- What you see
- Flies around fruit or the kitchen bin, not around the pots
- What to check
- Are they tan, with red eyes and a rounder body?
- Next step
- Those are fruit flies: remove ripe fruit and empty the bin; your plants are not the source.
Why they appear
Potting mix that stays wet all the time
- What it looks like
- The top layer never gets a chance to dry and the gnats rise right after watering.
- How to tell
- Push a finger 2–3 cm into the soil: if it is still damp days after watering, you are watering too soon.
- What to do
- Let the top layer dry between waterings and water by what the soil needs, not by the calendar.
Water in the saucer or poor drainage
- What it looks like
- Water sits in the saucer or cache pot and the bottom of the root ball is soaking.
- How to tell
- The pot feels very heavy even though the surface looks dry.
- What to do
- Empty the saucer after 15–20 minutes and use pots with drainage holes.
Old potting mix or mix rich in organic matter
- What it looks like
- Soil with lots of peat or compost, compacted, holding water for weeks.
- How to tell
- The gnats show up mostly in one or two particular pots.
- What to do
- Repot into fresh houseplant mix and throw the old one away.
New plants or potting mix that already had them
- What it looks like
- They start right after you buy a plant or open a bag of potting mix.
- How to tell
- The first pot affected is the new arrival.
- What to do
- Check new plants before putting them next to the others and keep potting mix sealed.
How to get rid of them, step by step
- Stop watering until the top 2–3 cm of potting mix has dried out, without letting the plant wilt.
- Empty the saucer or cache pot and check that the pot's drainage holes are not blocked.
- Push one or two yellow sticky traps into the soil beside the pot to catch the adults and count how many are left.
- Do the potato test: a raw slice on the soil for 2–3 days tells you whether there are larvae.
- If there are lots of larvae, water with beneficial nematodes (Steinernema feltiae) or a product based on Bacillus thuringiensis israelensis, following the label.
- If the potting mix is old or waterlogged, repot into fresh, airy mix and throw the old one away.
- Keep up the traps and careful watering for at least a month: that is how long the generations already in the soil take to die out.
How to recognise fungus gnats
Adults are 3–4 mm long, dark grey or black, with long legs and antennae: they look like tiny mosquitoes. They fly weakly and slowly, and you will often see them running over the soil surface or resting on the rim of the pot.
The larvae grow up to 6 mm, are whitish and almost see-through, with a shiny black head. They live in the top layer of the potting mix and feed mostly on organic matter and dead roots. On established plants they do no harm; on seedlings and freshly rooted cuttings they can eat roots and the base of the stems.
Reference: RHS · Fungus gnats (sciarid flies)
Fungus gnats or fruit flies?
Fruit flies are tan, with red eyes and a rounder body, and they gather in the kitchen, near ripe fruit or the bin. Fungus gnats are dark and slender and keep coming back to the pots. If a little cloud of flies lifts out of the soil when you water, there is no doubt.
How to keep them from coming back
The key is to stop the soil surface from being wet all the time: that way females have nowhere to lay eggs and the larvae do not survive.
- Water when the soil asks for it, not by the calendar, and empty the saucer or cache pot after 15–20 minutes.
- Use potting mix made for houseplants and pots with drainage holes; a mix that never dries out is their favourite place.
- Keep opened potting mix in a sealed bag and check new plants before putting them next to the others.
- In winter, when the plant uses less water, space out your waterings even more.
Reference: RHS · Fungus gnats (sciarid flies)
How to tell if you are overwateringPlants where they show up most
Species in the Grovia library that like their potting mix always slightly moist: if they get overwatered, these are the first to fill up with gnats. Next to each one, how often to check the soil according to Grovia's watering model.
- Fishbone prayer plant
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
- Nerve plant
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
- Painted prayer plant
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
- Peace lily
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
- Boston fern
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
- Orbifolia calathea
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
- Prayer plant
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
- Delta maidenhair fern
Check the potting mix: every 3–5 days in summer · every 7–9 days in winter
What to record to track progress
- The date of each watering and whether the top layer was dry.
- How many gnats are on the sticky trap each week.
- The result of the potato test before and after treatment.
Common questions
How do I get rid of fungus gnats in my plants?
Combine three things: let the top few centimetres of soil dry out between waterings, put out yellow sticky traps to catch the adults and, if there are lots of larvae, water with beneficial nematodes (Steinernema feltiae) or a product based on Bacillus thuringiensis israelensis. With a life cycle of about 2–4 weeks, keep it up for a month.
Are fungus gnats bad for my plant?
The adults do not harm the plant and they do not bite people or pets. The larvae only damage seedlings, cuttings or very weak plants; on a healthy plant they are a nuisance, but they tell you the potting mix stays wet for too long.
Do matches, cinnamon or hydrogen peroxide work?
They are very popular home remedies, but the sources we consulted do not recommend them and there is no solid evidence that they work. What does work is letting the top layer dry out, yellow traps and nematodes.
Do I need to change the soil?
Not always. If the infestation is big or the potting mix is old and compacted, repotting into fresh mix and throwing the old one away wipes out lots of larvae in one go. Use the chance to check that the pot drains well.
Why do I get gnats in winter?
Indoors they breed all year round. In winter the potting mix takes longer to dry and it is easy to overwater, so that is when you notice them most.
Sources and editorial approach
Prepared by Grovia using the linked references and our own recording and follow-up framework. General guidance for indoor plants; it does not replace a specialist assessment or confirm a disease.
Keep investigating
Overwatered plant: how to tell and what to do
Assess a houseplant in persistently wet soil: drainage, trapped water and root condition. Practical next steps for suspected overwatering.
Read guideRoot rot: how to tell and rescue your plant step by step
Soft stem base, bad-smelling soil and a drooping plant in wet potting mix: how to check the roots, cut off the rot and repot without repeating the mistake.
Read guideWhite fluffy bugs on your plant: what mealybugs are and how to get rid of them
White cottony blobs where leaves meet the stem and sticky leaves? It’s mealybugs. Learn how to spot them, get rid of them step by step and keep them away.
Read guideSpecies profiles related to this guide
Browse all 390 species in the library →Turn advice into a care routine
Find your plants, open their profiles and organize care tasks in Grovia’s garden and calendar.




