Gnats in houseplants are annoying. Known as fungus gnats, they are actually small flies, about 1/8-inch long, that are drawn to moist potting soil and decaying plant material at the base of houseplants. While they look similar to mosquitoes, they don't bite. Gnats in houseplants typically result when potting soil contains too much moisture.