Funny thing is caffeine does not affect me that way. I could drink a pot or chug a Mt. Dew before bed and I would sleep great. However if I drink to much caffeine I get ocular migraines. So I have to watch how much I drink in a day. Typically I only have my coffee in the morning and thats it.. Tonight was an exception.