While the risk factors for UTI vary with age, the most common risk factors before menopause are sexual intercourse and use of spermicides