Untreated urinary tract infections can last two weeks or longer. The condition may be more severe if the infection spreads to the kidneys.