The duration of a yeast infection can vary depending on the severity and treatment. In most cases, it takes about one to two weeks for the infection to clear up with proper treatment.