Heres how to deal with those annoying little pests.
Gnat is a general term for a key in of small fly, says Matt Bertone.
Theyre a diverse group, but people refer to a lot of the little flies as gnats.

Credit:Getty Images / Marc Leupold
Gnats are tinyand theyre everywhereso you wont see them sneaking indoors.
You want to find the source of the issue, says Faith Oi, PhD.
You also may have purchased an infected plant.

Credit:Getty Images / Marc Leupold
These tiny flies are not harmful to people or pets, but they are annoying.
They feed on decaying matter in the potting soil, says Bertone.
Once established, the tiny flies continue to mate, lay eggs, and hatch indoors.

Credit:Getty Images
Drain flies will attempt to fly out and get stuck, says Oi.
Theyre often confused with fungus gnats, but they have different behaviors.
Keep them away for good by adding these tasks to your routine:
NC State Extension.Fungus Gnats Indoors.
Wisconsin Horticulture Division of Extension.Fungus Gnats and Shoreflies in Greenhouses.
NC State Extension.Drain Flies.
Clemson Cooperative Extension.Moth/Drain Flies.
NC State Extension.Phorid Flies.
Virginia Cooperative Extension.Phorid Flies.