How long a yeast infection lasts depends on the severity of it. However, it can last up to two weeks.