Sleep Schedule Blog
When to Stop Drinking Coffee for Your Planned Bedtime
Caffeine fades in halvings, not on a schedule. Use half-life math to pick your coffee cutoff time for bedtime, with worked examples for common bedtimes.
When to Stop Drinking Coffee Before Bed
You picked your bedtime with 90-minute cycle math. Five cycles before a 6:30 AM alarm puts lights-out around 10:30 PM, with a short buffer to fall asleep. The plan is clean. What it cannot settle is the 3 PM coffee: caffeine does not wear off on a schedule, and how fast it fades varies from person to person.
Deciding when to stop drinking coffee before bed is the same kind of problem as picking the bedtime itself. You work backward from a fixed point and let the arithmetic settle it. Sleep Schedule does that backward math for wake-up times and bedtimes; this article applies it to caffeine. You get the half-life math, worked cutoffs for common bedtimes, and fallbacks for the days when the math lands mid-workday. This is planning, not sleep medicine: no universal rules, no sleep shaming, just numbers you can run once.
Caffeine half-life and sleep: the math behind your 3 PM coffee
A half-life is the time your body takes to metabolize and eliminate half of a dose. It is not the time until coffee "wears off." Caffeine never switches off on a schedule; it halves, then halves again, leaving progressively smaller amounts in circulation. What differs between people is how long each halving takes. The Sleep Foundation notes that caffeine's half-life ranges from roughly 2 to 12 hours across individuals, because many personal factors change how quickly caffeine is metabolized. Two people can drink the same cup at the same hour and arrive at bedtime with very different amounts still on board.

To see the arithmetic, take a 95 mg cup at 3 PM and assume a five-hour half-life. By 8 PM, about half of it, roughly 47 mg, is still circulating. By 1 AM, about a quarter remains, near 24 mg. An 11 PM bedtime falls between those halvings, with roughly a third of the dose still active under that assumption. Move the assumption toward the slower end of the range and the residue grows; move it toward the faster end and it shrinks. Either way, the pattern is why a cycle-aligned bedtime and an afternoon coffee can quietly conflict.
Work backward: when to stop drinking coffee before bed
The method mirrors the bedtime calculation. Instead of subtracting 90-minute cycles from a wake-up time, you subtract half-life windows from a planned bedtime, and each window cuts the remaining caffeine in half.
- Fix your planned bedtime first, ideally from cycle math rather than habit. If you are torn between anchoring the night at your wake-up time or your bedtime, there is a short guide on choosing which to set first.
- Pick a half-life assumption. You probably do not know yours, and it can sit anywhere in that 2 to 12 hour range. The examples here use five and six hours; both fall inside the range, and six is the more cautious of the two.
- Subtract the windows. One window back, half the dose remains. A second window leaves roughly a quarter, near 24 mg for a standard cup.
- Set the cutoff by how much residue you will accept at lights-out. Two full windows, ten to twelve hours back at these assumptions, is the safer target for a full-strength cup.
Planned bedtime | Last full-strength coffee, two windows back | One window back (about half the dose left) |
|---|---|---|
10:30 PM | between 10:30 AM and 12:30 PM | 4:30 PM |
11:45 PM | between 11:45 AM and 1:45 PM | 5:45 PM |
9:30 to 10:30 PM (5 AM flight wake-up) | before noon at the latest | mid to late afternoon |
The flight row deserves a note. Working backward from a 5 AM alarm through 90-minute cycles suggests lights-out around 9:30 to 10:30 PM. Two half-life windows from that range ends at or before noon, which rules out afternoon coffee entirely: at these assumptions, a 2 PM cup would still sit somewhere between a quarter and a half of its original strength at lights-out.
The symmetry is the point. The planner computes your bedtime from 90-minute cycles; you compute the cutoff by halving caffeine back from that bedtime. In both cases the timing math does the deciding.
Your coffee cutoff time for bedtime is not universal
A 2 to 12 hour half-life range means two people with identical bedtimes can hold cutoffs hours apart, and both be right. Fast metabolizers clear a cup in a few hours. Slow metabolizers can still be carrying meaningful caffeine well into the evening.
Biology moves the number. The speed of your CYP1A2 enzyme, the main caffeine-metabolizing pathway, and the sensitivity of your adenosine receptors both shift how hard and how long a dose hits. Life factors move it too: pregnancy, smoking status, oral contraceptives, liver function, and habitual tolerance all change your effective half-life.
Because the inputs are personal, the practical response is calibration, not a lab test. Start from the conservative cutoff, a six-hour half-life with two windows for full-strength coffee, then note how you sleep and how you feel the next morning. Adjust the cutoff earlier or later in small steps until a pattern settles. Your cutoff is personal data you generate from one running experiment, not a number anyone can hand you.
Cycle drift: leftover caffeine breaks the latency assumption
Every bedtime calculation hides an assumption: how long it takes you to fall asleep once lights go out. Cycle-based planning builds in a typical 10 to 15 minute sleep latency buffer before cycle one begins, the same assumption behind why your bedtime math should include time to fall asleep.

Residual caffeine inflates that latency. Instead of drifting off inside the planned buffer, you lie awake longer, and the first cycle starts late. Every 90-minute cycle after the delay shifts with it, which moves every subsequent wake-up estimate. The caffeine tax gets paid in shifted cycles, not just lost minutes. That is why the cutoff matters even on nights you do eventually fall asleep.
When the cutoff lands mid-workday: half-caf, tea, and timing swaps
The collision is predictable. The math says stop at midday, and the workday says the 2 PM slump is real and the 3 PM meeting runs long. Three fallbacks, offered as swaps rather than rules:

- Half-caf. Keep the ritual and the cup count while roughly halving the dose your bloodstream has to clear.
- Tea. Black or green tea delivers roughly 30 to 50 mg of caffeine against about 95 mg for a typical coffee, so a later cup leaves far less residue at bedtime.
- An earlier cup. When you cannot cut the dose, move the timing. An earlier cup gives your body one more half-life window before lights-out.
Shift work is the same problem rotated. Count backward from your planned sleep window, not from the clock; the subtraction works identically whether your bedtime is 10:30 PM or 8 AM after a night rotation. If your wake time moves from day to day, plan a week of sleep around those changing wake times and anchor the cutoff to each night's planned window rather than to a fixed hour.
The goal is a workable plan, not caffeine guilt.
Dose matters: a bigger cup leaves more behind
Half-life works on proportions, so the absolute amount left at bedtime depends on the size of the dose. A double leaves twice as much behind at every hour as a single. Two windows after a 95 mg coffee, about 24 mg remain; two windows after a 50 mg tea, about 12 mg. Same cutoff hour, materially different residue.
This is why half-caf works mechanically: it does not touch the habit, it cuts the dose the half-life clock has to clear. The practical takeaway is simple. You do not have to give up the ritual; shrink the last cup of the day.
Plan it once, don't track it
None of this requires logging. You compute a cutoff once, apply it, and adjust from next-morning notes. There is no caffeine diary to maintain, no streak to protect, no account to create.
That restraint is deliberate. Where data-harvesting sleep trackers treat every cup and every night as input, Sleep Schedule works entirely on your device, with no account and no ads, so your bedtime math never becomes someone's dataset. Not tracking is a feature here, not a limitation. The design symmetry carries through: cycles compute your bedtime, half-life computes your cutoff, and each does one clear job before getting out of the way. Everything in this article is a planning aid, never sleep tracking or medical advice.
Your caffeine and bedtime planning checklist for tonight
- Fix your bedtime from cycle math, or let the planner do the arithmetic.
- Start conservative: assume a six-hour half-life.
- Subtract the windows. One window back leaves about half the dose circulating at lights-out; two windows leave about a quarter.
- Set the cutoff, hold it for a week, and note next-morning sleep and alertness. Then adjust in small steps.
The anchor example to remember: a 10:30 PM bedtime means the last full-strength coffee lands between 10:30 AM and 12:30 PM. If that feels early, the swaps above bend the timing without breaking the math.
Plan your night with Sleep Schedule: fix the bedtime first, and the caffeine cutoff follows from it in one subtraction.