When should you stop drinking caffeine? The dose matters too
Coffee and pre-workout can affect sleep differently depending on dose and timing. What a controlled trial found, plus a practical way to review your routine.

What the research found
Taking 400 mg of caffeine four hours before bed reduced measured sleep by about 51 minutes compared with placebo. Even 12 hours beforehand, that dose delayed sustained sleep and reduced deep sleep. The 100 mg dose produced no statistically significant sleep changes at the tested times, which does not guarantee it is harmless for everyone. Read the original trial.
This explainer uses established research: the paper appeared online in October 2024 and in the April 2025 issue of SLEEP.
What did the researchers compare?
Twenty-three healthy adult men completed placebo and 100 mg or 400 mg caffeine conditions, taken 4, 8 or 12 hours before their usual bedtime. Each participant tried every condition. Their habitual morning caffeine was standardized separately, so these were additional test doses, not total daily intakes. Sleep was measured at home with a recording device and diaries.
The small, male-only sample and single-dose design limit application to women, teens, people with sleep disorders, or repeated drinks throughout a day.
Check milligrams, not just cups
For your own routine, the useful first question is: how much caffeine is actually in this serving? The FDA lists a wide range for coffee and energy drinks. A small cup and a large takeaway are not interchangeable. Check the product label or the retailer's information, including serving size.
Count all sources together, including coffee, tea and any caffeinated workout products. For example, a drink labelled 150 mg plus a supplement labelled 200 mg totals 350 mg. That is arithmetic for checking labels, not a recommended intake.
The FDA's often-quoted 400 mg per day figure concerns an amount not generally associated with negative effects for most adults. It is neither a target nor a promise of undisturbed sleep. Individual sensitivity, medications and health conditions matter.
Make one practical change, then observe
If you're an adult who already uses caffeine and wants to review the habit, try this simple record. It is a planning tool, not a diagnostic test or a protocol validated by this study.
- Write down the actual product and serving. Add the estimated caffeine amount and the time you consumed it. Mark unknown amounts as unknown instead of guessing.
- Include your intended bedtime. A 5 pm drink is six hours before an 11 pm bedtime. Seeing the interval can make a routine easier to assess than a rule such as 'no coffee after lunch.'
- Choose an earlier or lower-caffeine option. You could replace a late drink with water or a caffeine-free option you enjoy. Do not increase your intake to reproduce the experiment. If reducing a daily habit, the FDA recommends cutting back gradually.
- Keep brief morning notes. Record bedtime, estimated time to fall asleep, waking during the night and how rested you feel. Note unusual stress or schedule changes too. Treat patterns as clues, not proof that caffeine caused every bad night.
You do not need a new supplement or wearable to make this record. A notebook is enough.
A separate note for younger readers
Adult caffeine amounts are not targets for teenagers. The FDA notes that medical experts advise against energy drinks for children and teens. If you're 16 or 17, focus on regular meals, adequate sleep and enjoyable activity rather than borrowing an adult stimulant routine.
If you have persistent sleep problems, or questions about caffeine alongside medication, pregnancy or a health condition, discuss them with a qualified health professional.
Keep the food diary and sleep notes useful
If you already use MacroTracker to log food and drinks, use those entries as a reminder of what you consumed. Keep the caffeine amounts and sleep notes in a separate record unless you have verified them yourself; a calorie or macro total does not tell you a drink's caffeine content.
For another way to review an everyday routine, see our three-day meal review. The point of either exercise is to make a manageable decision from your actual habits.
Sources
AI-assisted article, checked against the linked sources. No clinical review is claimed. General education, not individual medical advice. Read our editorial standards and correction policy.