Skip to content
Insects in the Home

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

Technician in grey workwear and blue gloves changing the glue board in a wall-mounted electric fly killer in a tiled bakery kitchen
Technician in grey workwear and blue gloves changing the glue board in a wall-mounted electric fly killer in a tiled bakery kitchen.

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
  1. What are gnats?
  2. Which small fly have you got?
  3. Where do gnats in the house come from?
  4. Are gnats harmful to people or plants?
  5. Do gnats bite?
  6. How do you get rid of gnats in houseplants?
  7. How do you get rid of gnats in the kitchen or bathroom?
  8. How do you stop gnats coming back?
  9. When to call a professional

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 themMost likelyWhat to do
Walking on compost or flying slowly around houseplants and seed traysFungus gnatsDry the compost, repot, sticky traps (this guide)
Hovering around the fruit bowl, recycling, bottles or the kitchen binFruit fliesSee how to get rid of fruit flies
Resting on walls near sinks, showers and plugholesDrain fliesSee our guide to drain flies
Sluggish larger flies at upstairs windows in autumn and winterCluster fliesSee our guide to cluster flies
Clouds of tiny flies outdoors, with itchy bitesMidgesAn 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

Usually because something damp is letting them breed. Indoors the commonest source is houseplant or seed compost that stays wet, and the RHS says fungus gnats can breed all year round in houses. A new plant or a fresh bag of compost is often where they arrive from.

Fungus gnats, the ones around houseplants, are not biting insects. The Wellcome Sanger Institute describes them as causing no harm to humans. The insects that bite outdoors are midges: it says about 150 of the UK's 650 or so midge species bite, and only the females do.

Allow several weeks. The RHS says the life cycle can take about a month in summer, so adults keep emerging from the compost for a while after you start. Keep the compost on the dry side and leave sticky traps in place until you stop catching flies.

Not while the compost stays wet. The RHS says fungus gnats can breed all year in houses and greenhouses, so numbers carry on as long as the conditions suit them. They do drop quickly once the compost is allowed to dry between waterings.

Rarely for fungus gnats in houseplants, which you can deal with yourself. It is worth calling a professional if small flies keep appearing and you cannot find the source, if they are coming from a drain, or if they are in a kitchen or food business.

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

Want us to deal with it?

Get a clear price today

A local technician calls you back, usually within the hour during opening times. 7 days, 6am–8pm.

Request A Callback

Tell us what you've found and where.

Property address (required)

We only use your details to reply and arrange the work. See our privacy policy. Protected by reCAPTCHA: the Google Privacy Policy and Terms apply.

Call NowWhatsAppBook Online