Gnats are generally not harmful to pets, but their presence can be annoying for animals and humans alike. Biting gnats, like sand flies, can potentially bite pets and cause discomfort.