The recovery time for a urinary tract infection varies depending on the severity of the infection and the individual's response to treatment. With proper treatment, most UTIs improve within a few days to a week.