On average, the effects of coffee last from 4 to 6 hours. In fact, half of the caffeine could be gone from your system within that timeframe. Also, please note that the effects of caffeine peak within 30 to 60 minutes of consumption (6), so it is therefore recommended to adjust your coffee drinking schedule according to your normal bedtime.