When to Stop Drinking Coffee for Better Sleep

A mug of black coffee in warm afternoon sunlight with a bedroom in the background

The simple rule is this: stop drinking coffee about 8 to 10 hours before bed if you are sensitive to caffeine, and at least 6 hours before bed if you are not — so for a 10 p.m. bedtime, that means a cutoff between noon and 4 p.m., depending on your sensitivity. That window comes straight from caffeine's half-life, and it is the reason a 3 p.m. latte can still be keeping you awake at midnight. Work out your personal cutoff in seconds with our caffeine cutoff calculator, then use the tables below to fine-tune it.

The short answer: your last coffee should be 6 to 10 hours before bed.

Caffeine's half-life is roughly 5 to 6 hours, which means half of the caffeine from your last cup is still in your system 5 to 6 hours later, and a quarter is still there after 10 to 12 hours. If you sleep at 10 p.m., a 2 p.m. coffee leaves a meaningful amount of caffeine circulating at bedtime. Sensitive sleepers should aim for a noon to 2 p.m. cutoff; most other people should stop by 4 p.m. Check your own timing with our caffeine cutoff calculator.

Find My Caffeine Cutoff

How caffeine's half-life actually works

Caffeine's half-life of about 5 to 6 hours means that if you drink 200 milligrams (mg) of caffeine — roughly the amount in a 12-fluid-ounce (355-milliliter) brewed coffee — about 100 mg remains in your bloodstream 5 to 6 hours later, and about 50 mg remains after 10 to 12 hours. That is why "I only had one coffee" is not a defense if that coffee was at 4 p.m. and your bedtime is 10 p.m.: half of it is still active when your head hits the pillow.

It also explains why caffeine feels different at different times of day. Caffeine works mainly by blocking adenosine, the chemical that builds up in your brain during waking hours and makes you feel sleepy. In the morning, blocking adenosine feels like energy and focus. In the evening, blocking it feels like lying awake at 11:30 p.m. staring at the ceiling, even though you feel tired. Your body is tired; your brain just cannot hear the signal.

One more number matters for context. The U.S. Food and Drug Administration (FDA) cites 400 mg of caffeine per day as an amount not generally associated with dangerous negative effects in healthy adults — roughly four 8-fluid-ounce (237-milliliter) cups of brewed coffee. That is a general safety reference, not a sleep recommendation. You can stay under 400 mg for the whole day and still wreck your sleep if most of it lands in the afternoon. Total amount matters, but timing matters just as much.

The cutoff math: work back from your bedtime

To find your cutoff, start with your bedtime and subtract your buffer: 10 hours for sensitive sleepers, 8 hours for average sleepers, and 6 hours as the absolute minimum for people who genuinely tolerate caffeine well. A 10 p.m. bedtime therefore gives a noon cutoff for sensitive sleepers, a 2 p.m. cutoff for average sleepers, and a 4 p.m. cutoff for tolerant sleepers. A midnight bedtime shifts those to 2 p.m., 4 p.m., and 6 p.m. respectively.

Use the table below as your starting point, then adjust based on how you actually sleep. If you fall asleep within 20 minutes most nights and wake up refreshed, your current cutoff is probably fine. If you regularly take more than 30 minutes to fall asleep, wake up during the night, or feel groggy despite 7 to 8 hours in bed, move your cutoff two hours earlier for two weeks and compare. The U.S. Centers for Disease Control and Prevention (CDC) recommends 7 or more hours of sleep per night for adults, and protecting that window is worth more than any afternoon pick-me-up.

Your bedtimeSensitive sleeper cutoffAverage sleeper cutoffTolerant sleeper cutoff
9 p.m.11 a.m.1 p.m.3 p.m.
10 p.m.12 p.m.2 p.m.4 p.m.
11 p.m.1 p.m.3 p.m.5 p.m.
12 a.m.2 p.m.4 p.m.6 p.m.

Notice what the table implies for shift workers and late sleepers: a later bedtime genuinely allows a later cutoff, because the math is about the gap, not the clock time. A nurse who sleeps at 9 a.m. after a night shift should apply the same 6-to-10-hour buffer before her daytime sleep. What does not work is keeping a daytime cutoff while sleeping at night — or worse, drinking coffee to stay awake through an evening shift and then expecting to sleep at midnight.

Why sensitivity varies so much from person to person

Some people drink espresso after dinner and sleep like babies, while others feel wired from a single morning latte — and both are telling the truth. Caffeine sensitivity varies widely because of genetics, liver metabolism, age, medication, and tolerance. People who metabolize caffeine slowly, often due to variation in the CYP1A2 liver enzyme, clear it far more slowly than average, so the standard 5-to-6-hour half-life can stretch considerably longer for them. Certain medications, including some antidepressants and antibiotics, can also slow caffeine clearance.

Smoking speeds caffeine clearance, while pregnancy slows it dramatically — caffeine half-life can roughly double or triple during pregnancy, which is one reason health authorities advise pregnant women to limit caffeine to about 200 mg per day. Age matters too: older adults often become more sensitive to caffeine's sleep effects even if their daytime tolerance feels unchanged. And tolerance itself is a moving target: daily coffee drinkers develop partial tolerance to the alertness effects, but research suggests tolerance does not fully protect sleep, which is why a lifelong coffee drinker can still be kept awake by a late cup.

The honest test is not how jittery coffee makes you feel — it is how you sleep. Jitteriness fades with tolerance much faster than sleep disruption does. If you suspect you are sensitive, the most useful experiment costs nothing: move your cutoff to noon for two weeks, keep everything else the same, and track how long it takes you to fall asleep and how refreshed you feel. Our caffeine cutoff calculator lets you test different bedtimes and sensitivity levels side by side.

Pouring herbal tea in a calm evening kitchen as a caffeine-free bedtime swap

What afternoon coffee actually does to your sleep

Afternoon caffeine does not just delay sleep onset — it also reduces total sleep time and sleep quality, even when you do fall asleep. A well-known study by Drake and colleagues, published in the Journal of Clinical Sleep Medicine in 2013, gave participants 400 mg of caffeine at 0, 3, and 6 hours before bedtime and found that caffeine even 6 hours before bed significantly disturbed sleep. Participants took longer to fall asleep, slept for less time overall, and reported worse sleep quality, often without realizing how much the caffeine had affected them.

That last point is the trap. People routinely underestimate caffeine's effect on their own sleep because they fall asleep eventually and blame the grogginess on stress, age, or a bad mattress. But the study's objective sleep measurements showed disruption even when participants' subjective ratings were milder. If you regularly struggle to fall asleep or wake up unrefreshed, late caffeine is one of the first suspects to rule out — before supplements, sleep gadgets, or a new mattress.

Caffeine also hides in places people forget: black tea (roughly 40 to 70 mg per cup), green tea (roughly 25 to 45 mg), energy drinks (often 150 to 200 mg per can), dark chocolate (roughly 20 mg per ounce, or 28 grams), and some pain relievers and pre-workout supplements. A 4 p.m. energy drink plus an evening square of dark chocolate can easily equal another cup of coffee, so count your total afternoon caffeine, not just your coffee.

Decaf and swaps that actually satisfy a coffee habit

Decaf coffee is a genuine option, but it is not caffeine-free: a cup of decaf typically contains about 2 to 5 mg of caffeine, compared with roughly 95 mg in a regular 8-fluid-ounce (237-milliliter) cup. For most people, that small amount is negligible even in the evening, but very sensitive sleepers should still note it — three large decafs after dinner can add up to a meaningful dose.

The best swaps keep the ritual, not just the flavor. Herbal teas such as chamomile, peppermint, and rooibos are naturally caffeine-free and give you the warm-mug-in-hand habit without the stimulant. If you miss the coffee taste itself, try a half-caf blend in the early afternoon (half regular, half decaf) as a step-down, or switch to a smaller size rather than quitting cold turkey — caffeine withdrawal headaches are real and usually peak within a day or two of cutting back. Sparkling water with lemon, or a short walk outside in daylight, also handles the afternoon slump better than most people expect, because the slump is often about light, movement, and dehydration as much as caffeine.

Build your personal cutoff plan this week

Your personal cutoff plan has four steps, and it takes about two weeks to test properly. First, pick your bedtime honestly — the time you actually get into bed, not the time you wish you did. Second, choose your buffer from the table above based on your sensitivity, defaulting to 8 hours if you are unsure. Third, set a daily phone reminder at your cutoff time for the first week, because the habit of an afternoon coffee is automatic and will outrun your good intentions. Fourth, track two numbers each morning: how many minutes it took to fall asleep, and a simple 1-to-10 morning freshness score.

After two weeks, review the numbers before changing anything else. If sleep onset dropped and mornings improved, you have found a cutoff worth keeping. If nothing changed, late caffeine was probably not your main problem — look next at screen light in the last hour before bed, alcohol in the evening (which fragments sleep even when it helps you drift off), and inconsistent wake times. And if your job genuinely requires afternoon caffeine — night-shift nurses, truck drivers, new parents on call — use the smallest effective dose as early as you can, and protect your sleep window with blackout curtains and a cool, dark room. For US and UK readers juggling early starts, school runs, and gym sessions, the payoff is the same: a cutoff you respect during the week buys you the energy you were trying to borrow from that 4 p.m. coffee in the first place.

Caffeine Cutoff FAQs

Stop 6 to 10 hours before bed: at least 6 hours if you tolerate caffeine well, 8 hours for most people, and 10 hours if you are sensitive. For a 10 p.m. bedtime, that means a cutoff between noon and 4 p.m. depending on your sensitivity.

Caffeine's half-life is about 5 to 6 hours, so half of a 200 mg dose remains after 5 to 6 hours and about a quarter remains after 10 to 12 hours. Slow metabolizers, pregnant women, and people on certain medications clear it more slowly.

Yes. A 2013 study in the Journal of Clinical Sleep Medicine (Drake et al.) found that 400 mg of caffeine taken 6 hours before bedtime significantly disturbed sleep — longer time to fall asleep, less total sleep, and worse sleep quality — even when participants did not fully notice the effect.

The FDA cites 400 mg per day as an amount not generally associated with dangerous effects in healthy adults, roughly four 8-fluid-ounce cups of brewed coffee. That is a general safety reference, not a sleep recommendation — timing matters as much as total amount, and pregnant women are generally advised to limit intake to about 200 mg per day.

For most people, yes. Decaf typically contains only about 2 to 5 mg of caffeine per cup versus about 95 mg in regular coffee. Very sensitive sleepers should still count it, since several large decafs in an evening can add up.

Herbal teas such as chamomile, peppermint, and rooibos are naturally caffeine-free and keep the warm-drink ritual. A half-caf blend in the early afternoon works as a step-down, and a short walk outside or a glass of water often handles the afternoon slump better than another stimulant.

Find your personal caffeine cutoff

Our caffeine cutoff calculator works back from your bedtime and sensitivity to give you a cutoff time.

Find My Cutoff

Written by the Live Fitness Check editorial team · Reviewed against our calculator methodology · Last updated November 2026

Disclaimer: This guide is for educational purposes only and is not medical advice. Caffeine affects people differently, and certain conditions and medications change how it is processed. If you have a heart condition, anxiety, insomnia, or take medication that interacts with caffeine, talk to your doctor before changing your intake.