How to Get Rid of Gnats in the House and in Houseplants
Tiny black flies around your houseplants are usually fungus gnats. Where they come from, whether they bite, and how to get rid of gnats for good.
By the Urgent Pest Control team
· 6 min read

The short answer
To get rid of gnats, find what they are breeding in. Indoors it is usually damp houseplant compost, where fungus gnat larvae live. Water less and let the compost dry, repot badly affected plants into fresh compost, and catch the adults on yellow sticky traps. The RHS says the life cycle takes about a month in summer.
- Most gnats indoors are fungus gnats (sciarid flies), which the RHS says are 3–4mm long and breed in damp potting compost.
- The RHS says adult fungus gnats do not damage plants, and established plants are unlikely to be harmed by the larvae.
- Eggs are laid in the surface of the compost and the life cycle can take about a month in summer, according to the RHS.
- Letting compost dry out, repotting and yellow sticky traps are the main controls; nematodes are a biological option.
- Gnats around sinks, drains or the fruit bowl are usually drain flies or fruit flies, which need a different fix.
On this page
To get rid of gnats, find what they are breeding in and deal with that, not just the flies in the air. Indoors the usual culprits are fungus gnats living in damp houseplant compost: water less, let the compost dry out, repot badly affected plants and hang yellow sticky traps to catch the adults. If the flies are coming from a drain, a bin or somewhere you cannot find, our fly control service traces the source in homes and businesses across Nottinghamshire, Derbyshire, Leicestershire and Lincolnshire.
Most people can clear fungus gnats without a pest controller. This guide explains what they are, how to tell them from other small flies, and what works.
What are gnats?
"Gnat" is an everyday word for small flies, not a single species. The Wellcome Sanger Institute describes it as "a loose descriptive term for small, swarming flies rather than a single scientific family", and calls fungus gnats a common kind: small black flies that can quickly overrun houseplants.
Fungus gnats are also called sciarid flies. According to the Royal Horticultural Society (RHS), they belong to the family Sciaridae, with over 250 species in Britain. The adults are dark greyish-brown flies, mostly 3–4mm long, that run over the surface of pots and seed trays or fly slowly around plants. The larvae are slender, whitish maggots up to 6mm long with black heads, living in the compost.
Which small fly have you got?
Where you see the flies tells you most of what you need to know. Fungus gnats stay close to plant pots; other small flies gather around fruit, bins or plugholes. This is the quick check we use before deciding where to look.
| Where you see them | Most likely | What to do |
|---|---|---|
| Walking on compost or flying slowly around houseplants and seed trays | Fungus gnats | Dry the compost, repot, sticky traps (this guide) |
| Hovering around the fruit bowl, recycling, bottles or the kitchen bin | Fruit flies | See how to get rid of fruit flies |
| Resting on walls near sinks, showers and plugholes | Drain flies | See our guide to drain flies |
| Sluggish larger flies at upstairs windows in autumn and winter | Cluster flies | See our guide to cluster flies |
| Clouds of tiny flies outdoors, with itchy bites | Midges | An outdoor insect, not a household infestation |
If you are not sure, a clear photo and our pest identifier will narrow it down.
Where do gnats in the house come from?
Almost always from damp compost. The RHS says fungus gnats are associated with damp composts, especially for houseplants and seed trays. Females lay their eggs in the surface layer of the potting compost, and in warm conditions the eggs hatch within a few days.
The larvae feed in the compost, pupate there and emerge as adults. The RHS says the whole life cycle can take about a month in summer, and that fungus gnats can breed all year in greenhouses and houses. That is why a problem that starts with one overwatered plant can spread to every pot on the windowsill.
In practice the flies usually arrive with a new plant or in a bag of compost, then build up when pots are kept constantly wet. Plants standing in saucers of water and seed trays under propagator lids are typical sources.
Are gnats harmful to people or plants?
Fungus gnats are a nuisance, not a hazard. The Sanger Institute describes them as causing "no harm to humans or plants". The RHS agrees that the adult flies do not damage plants, although they can be annoying indoors.
The larvae feed mainly on dead roots, decaying plant material and the fungal growth that goes with it, according to the RHS. Some species may feed on seedling roots and the base of soft cuttings, so seed trays and young plants are the ones at risk. Established plants that have been in place for two or three years are unlikely to be damaged.
Do gnats bite?
Fungus gnats are not the insects that bite you. The biting insects people call gnats are midges, which live and bite outdoors. The Sanger Institute says the UK has over 650 species of midge, of which about 150 bite, and that only the females bite because they need a blood meal to mature their eggs.
The NHS says midge bites are usually small and raised, in groups. If you are being bitten indoors, look for another cause rather than blaming the flies around your plants. Our guide to bed bug bites vs flea bites covers the two commonest ones.
How do you get rid of gnats in houseplants?
Dry out the compost, remove the larvae and catch the adults. All of the steps below come from the RHS's advice on fungus gnats.
- Water less. Constantly wet compost encourages breeding. The RHS says letting the compost dry can reduce numbers, as long as the plant's health is not affected. Empty saucers and cache pots so plants are not standing in water.
- Repot the worst plants. Repotting into new compost and throwing away the old removes the eggs and larvae that are in it. Use a potting compost formulated for houseplants.
- Hang yellow sticky traps. These reduce the number of adult flies. The RHS notes they also catch other insects, including useful predators, so use them indoors beside the affected pots rather than outside.
- Consider a biological control. The RHS lists a pathogenic nematode, Steinernema feltiae, predatory mites and a predatory rove beetle that can be added to potting compost, where they attack the eggs, larvae and pupae.
- Keep going for at least a month. Because the life cycle can take about a month in summer, new adults will keep appearing for a while. Leave the traps up until they stay clear.
Check every pot in the room, not only the one where you first noticed flies, and include seed trays, bags of opened compost and plants in other rooms.
How do you get rid of gnats in the kitchen or bathroom?
If there are no houseplants nearby, they are probably not fungus gnats. Small flies in kitchens and bathrooms are usually fruit flies or drain flies, and the fix is to find what they are breeding in.
When we are called to small flies in a home or a food business, the places we check first are:
- the fruit bowl, vegetable rack and anything forgotten at the back of a cupboard;
- the kitchen bin, food caddy and recycling, including the bottom of the bin itself;
- sink traps, plugholes, overflows and floor drains;
- under and behind appliances where spills collect;
- pot plants and herb pots on the kitchen windowsill.
Fly spray kills the adults you can see, but new ones keep emerging until the source has gone. Our guides to fruit flies and drain flies go through each in detail.
How do you stop gnats coming back?
Keep compost on the dry side and check new plants before they join the others. A short routine is enough for most homes:
- water houseplants when the top of the compost has dried, not on a fixed schedule;
- empty saucers and decorative outer pots after watering;
- keep a new plant apart for a couple of weeks and watch for flies before putting it with the others;
- close opened bags of compost and store them somewhere dry;
- keep a yellow sticky trap in the pots that have had gnats before, as an early warning;
- remove dead leaves and spent flowers from the surface of the compost.
When to call a professional
You rarely need pest control for fungus gnats in houseplants. Drying the compost, repotting and sticky traps deal with them, and it would not be honest to suggest a call-out for a problem you can solve yourself.
Call a professional if small flies keep appearing after you have dealt with the plants, if they seem to come from a drain, a wall or under the floor, or if they are in a kitchen, café or shop where flies around food matter. Urgent Pest Control finds and treats the breeding source rather than just the flies you can see, and we'll explain the likely cost before any work starts. For an idea of costs, see our pest control prices.
We cover Nottingham, Derby, Leicester, Lincoln and the surrounding counties, 7 days a week from 6am to 8pm. Book online or call 0330 822 7460.
Sources
Frequently Asked Questions
About the author
The Urgent Pest Control team
A family-run pest control company based in Southwell, treating homes and businesses across Nottinghamshire, Derbyshire, Leicestershire and Lincolnshire since 2020. Our guides are written from the jobs we do and checked against UK sources. More about us
Cite this guide: “How to Get Rid of Gnats in the House and in Houseplants”, Urgent Pest Control, 18 November 2026. https://urgentpestcontrol.uk/blog/how-to-get-rid-of-gnats


