There is no single coffee cutoff that works for everyone. Caffeine amount, timing and personal sensitivity all matter. If an afternoon coffee seems to follow you into bedtime, start by recording what you actually drink rather than following a stranger’s exact schedule.
Why an afternoon coffee can affect bedtime
NHLBI notes that caffeine’s effects can last up to eight hours. That makes late-day caffeine relevant even when you no longer feel a noticeable boost. This is a general guide, not a countdown that predicts exactly when caffeine will stop affecting you. Source: NHLBI healthy sleep habits.
Count milligrams, not just cups
The FDA cites 400 milligrams a day as an amount not generally associated with negative effects for most adults. It is not a target, a guarantee of good sleep or a limit suitable for everyone. Coffee strength and serving size vary; tea, energy drinks, some supplements and medicines can add caffeine too. Decaf still contains some caffeine. People who are pregnant, breastfeeding, trying to conceive, or concerned about medicines or a health condition should discuss limits with a health professional. Source: FDA caffeine guidance.
A practical way to review your routine
- Write down the time and size of each drink, including refills.
- Copy the caffeine amount from the label or manufacturer’s information when available. Write “unknown” when it is not.
- Record your intended bedtime and roughly when you fell asleep.
- Look for the late drink you could most easily move earlier or replace.
If you decide to reduce regular caffeine use, the FDA advises doing so gradually. Avoid changing several sleep habits at once if your aim is to understand which change seems useful.
A worked example
Imagine two drinks whose labels list 90 mg and 120 mg per bottle. Together they provide 210 mg, before any other sources. If the second label instead means 120 mg per serving and the bottle contains two servings, finishing it changes that total to 330 mg. These are invented arithmetic examples, not measurements of particular brands.
For a café drink with no published amount, do not enter zero. Ask the café or keep it marked unknown. That is more honest than turning a guess into a precise-looking daily total.
What if changing coffee does not help?
A log can reveal a pattern, but cannot diagnose the cause of poor sleep. Persistent sleep problems deserve a conversation with a clinician. Bring the record, including other medicines and supplements, so the discussion starts with your actual routine.
A caffeine record with room for unknowns
Use the amount printed for the serving you actually consume. When the amount is unavailable, write “unknown”; a partial total is more useful than a falsely precise one.
| Time | Label information | Amount consumed | Caffeine counted |
|---|---|---|---|
| 8 a.m. | 90 mg per bottle | 1 bottle | 90 mg |
| 2 p.m. | 120 mg per serving; 2 servings per bottle | 1 full bottle | 240 mg |
| Other drinks or sources | Not recorded | Unknown | Unknown |
| Known subtotal | 90 + 240 | Excludes unknown sources | 330 mg |
The 330 mg subtotal does not mean the day is suitable for your sleep or circumstances. The FDA’s 400 mg reference for most adults is not a personalized target, and the unknown row could change the total.
| What to record | Your note |
|---|---|
| Drink, food, supplement or medicine | ________ |
| Time and amount consumed | ________ |
| Caffeine per labeled serving | ________ or unknown |
| Number of servings consumed | ________ |
| Intended bedtime and estimated sleep onset | ________ |
| Other changes that day | ________ |
Make one comparison at a time
Compare a few ordinary days before and after a manageable change, such as moving one late drink earlier. Keep other changes in the notes so you do not attribute every better or worse night to coffee. If reducing habitual caffeine intake, do it gradually, as the FDA advises.
Do not change prescribed medicines to run this exercise. Ask a clinician or pharmacist about caffeine in medicines and supplements, especially if you have a medical condition, are pregnant or breastfeeding, or experience persistent sleep problems.
Should I enter decaf as zero?
No. Decaf can still contain caffeine. Use available product information or keep the amount unknown. Our sleep diary guide can help keep the wider routine in view.
Related reading
- How Much Sleep Do Adults Need? Planning a Realistic Sleep Window
- Sleep Diary Template: What to Record and How to Use It
- Explore all wellness guides
Prepared for Tranquilla Wellness with AI assistance. Sources checked September 13, 2026. General education; no independent clinical review is claimed. Read our editorial standards.
Featured photo: samira sadeqi / Unsplash.