Gnats breed in standing water, so the first step is to get rid of any sources of standing water around your home.
Gnats are also attracted to food spills, so be sure to clean up any spills immediately.
Gnats can get into your home through small cracks and crevices. Seal up any cracks or holes around windows, doors, and foundations.
There are a variety of insect traps available that can help to catch gnats.Use a fan. A fan can help to keep gnats away from you.
Essential oils like peppermint, eucalyptus, and lemongrass can help to repel gnats.
Mint is a natural insect repellent. Plant some mint around your home to help keep gnats away
There are a variety of gnat sprays available that can help to kill gnats.Call a pest control professional.
Gnats are most active at dusk and dawn
If you have pets, keep their food and water bowls clean and covered.