Coffee can take up to 8 hours to start affecting your body, it depends on each person. You can literally go to sleep after having your coffee and be wide awake four hours later.