Health & wellness
Caffeine, Sleep Debt and Your Afternoon Coffee
7 min read · Updated September 26, 2026 · by the SolveCalcPro editorial team

- The FDA cites 400 mg a day as a general limit for healthy adults; individuals vary widely.
- Caffeine’s half-life of roughly 5 hours means a 4 p.m. coffee is still active at bedtime.
- Short sleep and caffeine feed each other: debt drives caffeine use, and caffeine worsens sleep.
- Move the last coffee earlier and add 30–60 minutes of sleep before reaching for more.
The afternoon coffee is a cultural institution — and a classic trap. You slept six hours, you are dragging at 2 p.m., you reach for coffee, and that coffee helps decide how well you sleep tonight. This article puts numbers on the cycle: how long caffeine lasts, what it does to the sleep you owe and what to do about it. It is general information, not medical advice.
What the FDA says about daily caffeine
The U.S. FDA cites 400 milligrams a day — about two to three 12-ounce cups of brewed coffee — as an amount not generally associated with negative effects in healthy adults, while noting that sensitivity varies. Per 12-ounce serving, it lists roughly 113–247 mg for brewed coffee, 71 mg for black tea, 37 mg for green tea, 23–83 mg for caffeinated soft drinks and 41–246 mg for energy drinks. Anyone pregnant, trying to become pregnant or breastfeeding should ask their health care provider about limits.
How long does caffeine last?
Caffeine’s half-life is commonly cited as 3–7 hours, with about 5 as typical. After one half-life half of it remains, after two a quarter. For one coffee of about 180 mg, finished at 8 a.m.:
By 10 p.m. (14 hours later) a typical 5-hour half-life leaves about 26 mg; a slow metaboliser with a 7-hour half-life still has about 45 mg. A coffee at 4 p.m. leaves far more at bedtime: about 78 mg for the typical case.
The sleep-debt loop
Say you need 8 hours and slept 6, 6, 7, 8, 5, 9 and 6 over a week — a debt of 9 hours. Short nights make you sleepier the next day, so you drink more caffeine, which can delay sleep onset and reduce deep sleep, creating the next short night.
The sleep debt calculator tallies this and the caffeine calculator shows how much is left at your bedtime.
How much sleep is enough?
| Age group | CDC recommended sleep |
|---|---|
| School age (6–12) | 9–12 hours |
| Teen (13–17) | 8–10 hours |
| Adult (18–60) | 7 or more hours |
| Adult (61–64) | 7–9 hours |
| Adult (65+) | 7–8 hours |
Your own need within the range is what counts: if you wake unaided, alert and stay that way, you are probably close.
Practical changes
- Set a caffeine cut-off 8–10 hours before bed; light sleepers may need more.
- When tired in the afternoon, try a walk, daylight, water or a short nap (under 30 minutes) before more coffee.
- Add 30–60 minutes of sleep per night rather than relying on weekend lie-ins.
- Check labels on energy drinks, pre-workout powders and some medicines.
- If you are always exhausted despite adequate sleep, talk to a doctor.
Frequently asked questions
How much caffeine is too much?
The FDA cites 400 mg a day as an amount not generally associated with negative effects in healthy adults; sensitivity varies.
How long does caffeine stay in your body?
Its half-life is about 5 hours on average, ranging roughly from 3 to 7 hours.
Can I catch up on sleep on weekends?
Partly, but irregular sleep timing has costs, and one long night does not fully reverse a week of short ones.
What time should I stop drinking coffee?
Many people sleep better with a cut-off 8–10 hours before bed.
Sources and further reading
- U.S. FDA — Spilling the beans: how much caffeine is too much?
- CDC — About sleep (recommended hours by age)
- NIH NHLBI — Sleep deprivation and deficiency
- NHS — How to get to sleep
Try the tools
Learn the method
Keep reading
Written and reviewed by the SolveCalcPro editorial team. Found an error? Tell us. See our editorial policy.