Question: how long to avoid coffee before bed?
Answer: According to research, you should avoid consuming caffeine from around 2pm, or at least seven hours before bed, as it can otherwise negatively affect your sleep.