CaffCut
Unlimited Free Usage

The Caffeine Sleep Calculator

Log every coffee, tea and energy drink. Watch your caffeine decay curve in real time. Get your personal caffeine cutoff — the exact time to stop so you fall asleep on schedule.

Multi-dose decay curve Night-shift mode Coffee-nap timer 7-day tolerance log

1 · Log your doses

Every cup stacks. Caffeine adds up in your body — that is the whole point of the curve below.

Today's doses

    No doses yet — add your morning coffee to wake the curve up.

    2 · Tune your body clock

    How fast YOU burn caffeine. Average is ~5 h; it ranges 2–12 h.

    Your cutoff is computed for this drink size.

    3 · Your caffeine decay curve

    Total in body Single dose decay Dose taken Cutoff line Sleep window

    Timeline runs 5 AM → next-day 5 AM. All figures are estimates — real metabolism varies.

    Your personal caffeine cutoff

    Stop by —

    Caffeine left at bedtime

    0 mg

    Per-dose impact at bedtime

      Coffee-nap timer

      Drink coffee, nap 20 minutes, wake as the caffeine kicks in. Set your alarm:

      20:00

      Press start right after your last sip.

      Plays an alarm when time is up. Keep volume on.

      4 · 7-day tolerance log

      Daily caffeine totals, saved in your browser. Rising intake is the earliest sign of tolerance.

      DateTotal mgvs 400 mg limitBar

      No days logged yet. Your last 7 days will appear here.

      The Complete Guide to Caffeine, Half-Life, and Sleep

      A practical, numbers-first guide from the makers of the CaffCut caffeine sleep calculator. All figures below are estimates — your body is not a spreadsheet.

      What is caffeine half-life, really?

      Caffeine half-life is the time it takes your body to clear half of the caffeine you consumed. For the average adult it sits around five hours, but the real range is wide: anywhere from about two hours to twelve. That spread is the reason a single number never tells the full story. A fast metabolizer can drink an espresso at 4 PM and sleep like a stone at 11 PM, while a slow metabolizer sipping the same drink at noon can still be staring at the ceiling at 2 AM. Genetics play the biggest role — variants in the CYP1A2 gene decide how quickly your liver breaks caffeine down — followed by age, pregnancy, oral contraceptives, smoking, certain medications, and liver health. This is exactly the problem a caffeine half life calculator is built to solve: instead of applying a one-size-fits-all rule like "no coffee after 2 PM," you plug in your own half-life, your own doses, and your own bedtime, and the math tells you what is actually still circulating in your blood when your head hits the pillow. The decay is exponential, which has a counter-intuitive consequence people consistently underestimate: after one half-life, 50 percent remains; after two, 25 percent; after three, 12.5 percent. That 200 mg cold brew at 3 PM still leaves roughly 50 mg in your system at 1 AM if your half-life is five hours. Most people feel "fine" long before the caffeine is gone, because the stimulating edge fades faster than the molecule itself.

      How a caffeine half life calculator actually works

      Under the hood, a caffeine half life calculator is just applied exponential decay. You log a dose — say 95 mg from a brewed coffee at 8 AM — and the tool computes the remaining amount at any later moment with the formula dose × 0.5^(hours elapsed ÷ half-life). The magic appears when you log multiple doses, because caffeine in your body is additive: the 8 AM coffee, the 11 AM espresso, and the 2 PM tea each decay on their own schedule, and the total stimulation you feel is the sum of all the surviving fractions. Mathematically this is called superposition, and it is why the third cup "hits different" — it is not just the third cup, it is the third cup riding on top of the decaying tails of the first two. A good caffeine sleep calculator draws this as a stacked decay curve so you can see the total line climb with every dose and glide down through the evening. It also inverts the problem: instead of asking "how much is left at bedtime," it asks "what is the latest I can drink this and still be under my personal threshold at lights-out." That inverted answer is your caffeine cutoff time, and it is different for a 63 mg espresso and a 300 mg pre-workout scoop. The tool on this page does both directions — forward simulation of your logged day, and backward planning of your cutoff — using the same half-life you set, so the two views always agree with each other.

      The multi-dose problem: why one cup's math is never enough

      Almost every caffeine article online models a single cup in isolation, which is not how anyone actually drinks coffee. Real days look like this: 95 mg at 7:30 AM, 63 mg at 10 AM, 50 mg of black tea at 1 PM, another 95 mg at 3:30 PM to survive the afternoon slump. With a five-hour half-life, here is what is really in your body at 11 PM: the morning coffee has decayed to about 12 mg, the espresso to roughly 10 mg, the tea to around 8 mg, and the afternoon coffee still contributes about 32 mg. The total — around 62 mg, or two-thirds of a fresh cup — is invisible to the single-cup calculators, yet it is entirely capable of delaying your sleep onset and, more sneakily, fragmenting your deep sleep without you noticing. Research consistently shows that caffeine does not just make it harder to fall asleep; it reduces sleep efficiency and deep-sleep time even in people who swear it does not affect them. The superposition curve on this page exists to make that hidden total visible. When you see the amber total line hovering at 60 mg at your bedtime marker, the decision to skip the 4 PM refill stops being about willpower and starts being about arithmetic. One more subtlety the curve reveals: dose timing matters more than dose count. Two coffees before noon often leave less caffeine at midnight than a single coffee at 5 PM. Front-loading your caffeine is the highest-leverage habit in this entire guide.

      Finding your personal caffeine cutoff time

      Your caffeine cutoff is the latest clock time you can consume a given dose and still drop below your personal bedtime threshold. The formula is bedtime minus half-life × log₂(dose ÷ threshold). With concrete numbers: a typical sleeper targeting at most 40 mg at bedtime, a five-hour half-life, and a 95 mg brewed coffee gets a cutoff about 6.2 hours before bed — roughly 4:45 PM for an 11 PM bedtime. Change any input and the answer moves honestly: a sensitive sleeper with a 15 mg threshold and a seven-hour half-life gets a cutoff more than 18 hours before bed, which is the math politely telling them that a full coffee is essentially a morning-only drink. A tolerant sleeper with an 80 mg threshold and a three-hour half-life can have that same coffee at 9 PM. Notice what this does to the folk wisdom of "no caffeine after noon" — for some bodies it is wildly over-cautious, for others it is not cautious enough. The reference-drink selector above lets you compute cutoffs for everything from a 35 mg green tea to a 300 mg pre-workout, because the cutoff is a property of the dose, not of caffeine in general. If you only remember one practice from this guide, make it this: pick your bedtime, pick your sensitivity, read your cutoff, and treat it like a train departure — miss it and you are walking home.

      Caffeine sensitivity: why your friend drinks espresso at 9 PM

      Caffeine sensitivity is not a character trait; it is mostly biochemistry. The CYP1A2 gene determines whether you are a fast or slow metabolizer, and the ADORA2A gene influences how strongly caffeine's adenosine-blocking effect registers in your brain — some people get wired, others just get less sleepy. Sensitivity also drifts over a lifetime: it generally decreases through young adulthood as tolerance builds, then the half-life lengthens again after about 65 as liver metabolism slows. Pregnancy is the dramatic case — caffeine half-life can roughly double or triple by the third trimester, which is why standard guidance suggests pregnant people cap intake around 200 mg per day and shift it earlier. Oral contraceptives roughly double the half-life too, a fact that surprises many. Smoking does the opposite, speeding clearance by up to half. None of this is visible in the mirror, which is why the sensitivity selector on this page exists: "sensitive," "typical," and "tolerant" map to bedtime thresholds of roughly 15, 40, and 80 mg. If you are unsure where you land, run the calculator as "typical" for a week and compare its predictions with a simple sleep diary — if you are tossing and turning on days the tool said you would be fine, you are more sensitive than average, and the tool will happily recalculate everything with the stricter threshold.

      When should I stop drinking coffee before bed?

      So, when should I stop drinking coffee before bed? The honest answer is a small table, not a slogan. For a standard 95 mg brewed coffee: a sensitive sleeper with a slow metabolism should treat it as a before-noon drink; a typical sleeper with an average five-hour half-life should stop around six to eight hours before bed; a tolerant fast metabolizer can often go as late as two to three hours before bed without measurable sleep damage. For a 200 mg energy drink, add roughly one more half-life to each of those answers. For a 35 mg green tea, subtract one. The pattern worth memorizing: every time you double the dose, the cutoff moves earlier by exactly one half-life. That is the real utility of asking "when should I stop drinking coffee before bed" as a calculation instead of a rule of thumb — the answer scales correctly with the drink in your hand. Two practical strategies fall out of the math. First, the front-load: get 70 to 80 percent of your daily caffeine before noon, when it costs you almost nothing at bedtime. Second, the swap-down: if you want something warm at 4 PM, make it tea at 35–50 mg instead of coffee at 95+ mg; the smaller dose buys you back an entire half-life of cutoff time. And if your schedule changes — travel, a late night out, daylight saving — just move the bedtime input and read the new cutoff; the arithmetic does not care about your routine, only your numbers.

      The coffee nap: a 20-minute trick with real science behind it

      The coffee nap sounds like a prank and works like a protocol: drink a coffee, immediately take a 20-minute nap, wake up as the caffeine reaches your brain. The timing is not mystical. Caffeine takes roughly 20 minutes to cross from your gut into meaningful blood levels, which is almost exactly the length of an ideal power nap — long enough to clear adenosine, the sleep-pressure chemical, from your receptors, but short enough to avoid dropping into deep slow-wave sleep, which is what causes grogginess. When you wake, the caffeine arrives at receptors that the nap just swept clean, and the combined effect in studies beats either coffee or napping alone on alertness and performance tasks. Execution details matter: drink it quickly (an espresso or small coffee, not a leisurely 40-minute latte), set a real alarm for 20 minutes — not 30, not "about 20" — and nap somewhere you can actually fall asleep fast, even if it is just a parked car with the seat back. Do not attempt a coffee nap within six hours of bedtime unless you enjoy irony. The timer on this page is built for exactly this ritual: one tap, a 20-minute countdown, and an alarm at the moment the caffeine kicks in. If you consistently cannot fall asleep within the window, skip the nap part and just take the coffee — forcing it creates more stress than the nap relieves.

      Caffeine tolerance: reading your 7-day log honestly

      Tolerance is caffeine's quiet tax. Drink 300 mg every day and within a week or two your brain grows extra adenosine receptors to compensate, which means the same dose produces less alertness — and, worse, skipping it produces withdrawal: headache, fog, irritability, the classic "I can't function before coffee" morning. The earliest warning sign is not any symptom at all; it is the number creeping up. Monday was 190 mg, Thursday is 285 mg, and you cannot quite say why. That is why this page keeps a 7-day tolerance log in your browser: it turns a vague feeling into a slope. A flat line under 200 mg a day is a sustainable habit. A rising line, or a flat line above 400 mg — the commonly cited daily ceiling for healthy adults — is the log telling you tolerance has arrived. The fix is refreshingly mechanical: taper by about 25 percent every few days rather than quitting cold turkey, hold the lower dose for one to two weeks, and sensitivity largely returns. Many people discover during a taper that their "need" for the 3 PM coffee was really withdrawal from the morning's dose wearing off — which the decay curve on this page will show you plainly, as the total line sagging through the afternoon. Log honestly, including the sneaky sources: pre-workout, chocolate, "just a green tea," headache pills. The log only works if it sees everything.

      Night shifts: the same math on a rotated clock

      Night-shift workers get the worst of both worlds: they need caffeine the most and their sleep is the most fragile. The good news is that none of the math changes — only the clock rotates. Flip on night-shift mode above, set your real sleep window (say 8 AM to 4 PM), and every calculation on the page re-anchors: the cutoff is computed backward from 8 AM, the sleep window shades across the chart, and the decay curve keeps running through your "night." The strategy shifts in two ways. First, front-load relative to your wake time, not the sun: if you wake at 4 PM, your "morning coffee" belongs at 4–5 PM, and your cutoff lands in the small hours. Second, use caffeine as a shift-work tool with an off-ramp: a dose in the first half of the shift for alertness, then nothing in the last three to four hours before your sleep window, even if the shift is dragging — that late dose is the one that turns an 8 AM bedtime into a 10 AM bedtime. Strategic napping pairs well here: a coffee nap before the shift starts beats a large energy drink at 3 AM for both alertness and next-day sleep. One caution the research is clear about: rotating shifts make consistent cutoffs harder, so anchor the calculator to your actual sleep window each week rather than an idealized one. The tool does not judge your schedule; it just does the arithmetic for the schedule you have.

      Estimating your own half-life without a lab

      You cannot measure your true caffeine half-life without blood draws, but you can triangulate it well enough for planning. Start with the population average of five hours, then adjust with the estimator on this page: add time after 65, add a lot for pregnancy, add for oral contraceptives, subtract for smoking. Then calibrate against experience with a simple two-week experiment. Week one: keep your last caffeine dose at least eight hours before bed and note your sleep quality. Week two: move the last dose one hour later every two days. The point where your sleep starts degrading — harder to fall asleep, more night wakings — marks where your personal curve crosses your threshold, and you can work backward to your effective half-life. Most people land between four and six hours and never need to think about it again. A few discover they are genuine outliers — the three-hour metabolizers who can have dinner espresso, or the nine-hour carriers who must treat coffee as a breakfast-only beverage. Both are normal; the whole point of a personal calculator is that "normal" covers a four-fold range. Whatever number you settle on, revisit it if your life changes: new medication, pregnancy, quitting smoking, or simply turning 65 can all move your half-life enough to invalidate an old cutoff. The estimator is a starting guess, clearly labeled as such — treat it as a hypothesis and let your sleep confirm or deny it.

      Health disclaimer

      CaffCut is an educational planning tool, not medical advice, and every number it shows is an estimate. Real caffeine metabolism varies with genetics, liver function, medication, and health conditions that no web form can capture. The 400 mg per day figure commonly cited for healthy adults is a general guideline, not a personal prescription; pregnant people are generally advised to stay near or below 200 mg per day, and anyone with heart conditions, anxiety disorders, sleep disorders, or who takes medication should talk to a doctor or pharmacist about caffeine rather than trusting a calculator. If you experience a racing heart, severe anxiety, tremors, or chest discomfort after caffeine, stop and seek medical advice promptly. Nothing on this page diagnoses, treats, or prevents any condition. Use the cutoff times and curves as a starting point for your own experiments, keep notes on how you actually sleep, and let a professional weigh in where health is at stake. Estimates inform; they do not prescribe.

      Frequently asked questions

      How long does caffeine stay in your system?+

      Caffeine's half-life averages about five hours, but the real range is roughly two to twelve hours depending on genetics, age, pregnancy, contraceptives, smoking, and medication. After one half-life 50% remains, after two about 25%, and traces can linger for over a day in slow metabolizers. A 200 mg dose at 3 PM still leaves around 50 mg in your body at 1 AM with an average half-life — which is why the decay curve above matters more than how awake you feel. All figures are estimates; treat them as planning guides, not measurements.

      When should I stop drinking coffee before bed?+

      It depends on the dose, your half-life, and your sensitivity — which is exactly what the cutoff calculator above computes. As a rough guide: a typical sleeper with a five-hour half-life should stop a standard 95 mg brewed coffee about six to eight hours before bed; sensitive sleepers may need to stop ten or more hours before, while tolerant fast metabolizers can often go as late as two to three hours. Doubling the dose pushes the cutoff earlier by one full half-life. Enter your bedtime above for your personal answer.

      What is a coffee nap, and does it actually work?+

      A coffee nap means drinking coffee and immediately napping for 20 minutes. Caffeine takes about 20 minutes to reach your brain — the same length as an ideal power nap — so you wake just as it kicks in, at receptors the nap has cleared of adenosine. Studies find the combination beats coffee or napping alone for alertness. Use the timer above, drink the coffee quickly, and do not try it within six hours of bedtime. If you cannot fall asleep fast, just take the coffee without the nap.

      Does building caffeine tolerance change how it affects my sleep?+

      Yes. Regular high intake grows extra adenosine receptors, so the same dose feels weaker — but the sleep disruption often persists even when the buzz fades, because tolerance to alertness develops faster than tolerance to sleep effects. The earliest sign is dose creep: needing more for the same effect. The 7-day log above tracks your daily totals and flags an upward trend. Tapering by about 25% every few days usually restores sensitivity within one to two weeks.

      How does night-shift mode change my caffeine cutoff?+

      The math does not change — only the clock rotates. Enable night-shift mode, enter your real sleep window (for example 8 AM to 4 PM), and the cutoff is computed backward from your sleep start instead of a nighttime bedtime. Front-load caffeine relative to your wake time, and avoid doses in the last three to four hours before your sleep window. All figures remain estimates; shift workers should re-check whenever their rotation changes.

      Is CaffCut medical advice?+

      No. CaffCut is an educational planning tool. Every half-life, decay curve, and cutoff time is an estimate based on population averages, not a measurement of your body. It does not diagnose, treat, or prevent any condition. If you are pregnant, have a heart condition, an anxiety or sleep disorder, or take medication, talk to a doctor or pharmacist about caffeine instead of relying on a calculator.