A popular way to get rid of gnats using vinegar involves a small empty bottle. Fill the bottle with vinegar, almost to the top. Put the cap on securely, and poke a few holes in the cap. Gnats are attracted to the vinegar, and will climb in. Once they climb in, they won’t be able to get back out. If the gnats are in more than one spot in the house, fill up several bottles and place them where they are collecting in groups. Let these bottles sit for a few hours, then simply throw them out with the trash. Repeat the process if needed.