UTIs can be painful, which can interfere with your ability to sleep. If your UTI pain is bothering you, talk to your provider about treatment options. Taking an over-the-counter pain-relieving medication like AZO, ibuprofen, or acetaminophen is one way to decrease inflammation and pain associated with a UTI. Your doctor might also recommend applying warmth to the painful area.