Most people pee within 5-45 minutes of drinking a caffeinated beverage. Because caffeine is a diuretic, it increases your urge to pee, even if your urine volume doesn't increase. For this reason, you should avoid drinking caffeinated drinks, like coffee, tea, and energy drinks, before bed.