Health & wellness

Caffeine, Sleep Debt and Your Afternoon Coffee

7 min read · Updated September 26, 2026 · by the SolveCalcPro editorial team

Caffeine, Sleep Debt and Your Afternoon Coffee – feature image
Health information, not medical advice. This article is educational and general. Speak to a doctor or registered dietitian about your own health. See our disclaimer.
Key takeaways
  • 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.:

Caffeine from one 12-oz coffee (about 180 mg) over the hours that follow0 mg50 mg100 mg150 mg200 mg0h3h6h9h12hHours after the coffee3-hour half-life5-hour half-life7-hour half-life
Half-life of 5 hours (typical) versus 3 hours (fast metaboliser) and 7 hours (slow). Each line starts at about 180 mg when the coffee is finished.

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.

Hours slept vs an 8-hour need over one weekNight 16 hNight 26 hNight 37 hNight 48 hNight 55 hNight 69 hNight 76 h
Seven nights: five fell short, two met or beat the target. The shortfall adds up to a debt of nine hours.

The sleep debt calculator tallies this and the caffeine calculator shows how much is left at your bedtime.

How much sleep is enough?

Age groupCDC 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

  1. Set a caffeine cut-off 8–10 hours before bed; light sleepers may need more.
  2. When tired in the afternoon, try a walk, daylight, water or a short nap (under 30 minutes) before more coffee.
  3. Add 30–60 minutes of sleep per night rather than relying on weekend lie-ins.
  4. Check labels on energy drinks, pre-workout powders and some medicines.
  5. 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

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.