A gynecologist can diagnose the cause of vaginal odor through a physical examination and by reviewing your medical history. They may also perform tests such as a vaginal swab, a pH test, or a wet mount to identify the presence of infections like bacterial vaginosis, yeast infections, or STIs. Based on the results, your doctor can recommend appropriate treatment options.