Avoid consuming coffee 6–8 hours before bedtime to protect sleep quality.

Limit coffee intake to 3–4 cups per day (about 400 mg of caffeine), including caffeine from other sources such as tea, soda, and energy drinks.