Health experts advise avoiding coffee for 6 hours before bedtime, since the effects of caffeine can last hours. A 2015 study found caffeine can confuse your body’s internal clock, confusing the signals that tell you when to sleep. Night shift workers may find coffee during work hours disrupts their daytime sleep, another study found.
Decaf coffee has caffeine!