What time should you stop drinking coffee?
For one regular cup of coffee, about 100 mg of caffeine, stop roughly 9 hours before bed. With a 10 p.m. bedtime, that means a last cup around 1 p.m. A 2023 review of 24 studies worked out that a cup this size should be finished at least 8.8 hours before bed to avoid losing sleep, which is where the familiar 8-hour rule comes from.1
Dose matters as much as timing. The same review put a 217 mg pre-workout drink at 13.2 hours before bed.1 And in a 2025 trial in healthy young men, 100 mg had no measurable effect on sleep even 4 hours before bed, while 400 mg disrupted sleep whenever it was taken within 12 hours of bedtime.2 So a small cup gives you some leeway; a large one does not.
Caffeine cutoff calculator and chart
Prefer a chart? Find your usual bedtime, then read across to your drink. The cautious column is the one to start with; the bare-minimum column is the latest that one small cup has been tested without a measurable effect, in a small group of young men.
| Bedtime | One small cup (about 100 mg), cautious: 9 hours | One small cup, bare minimum: 4 hours | Big dose (200 mg or more): 13 hours |
|---|---|---|---|
| 9 p.m. | 12 noon | 5 p.m. | 8 a.m. |
| 10 p.m. | 1 p.m. | 6 p.m. | 9 a.m. |
| 10:30 p.m. | 1:30 p.m. | 6:30 p.m. | 9:30 a.m. |
| 11 p.m. | 2 p.m. | 7 p.m. | 10 a.m. |
| Midnight | 3 p.m. | 8 p.m. | 11 a.m. |


Counts as a small cup (about 100 mg or less)
- An 8 oz cup of regular brewed coffee
- A single shot of espresso, or a small latte or cappuccino made with one
- A cup of black or green tea
- A can of caffeinated soda
- An 8 oz energy drink
Counts as a big dose (200 mg or more)
- A large coffee-shop coffee or cold brew
- A double or triple shot of espresso
- A 16 oz energy drink or one labeled with 200 mg or more
- Pre-workout drinks and caffeine pills
- Two or more small cups close together
How much caffeine is in your drink?
A regular 8-ounce cup of brewed coffee has about 96 mg of caffeine, a single espresso about 64 mg, and a cup of black tea about 48 mg.4 Coffee-shop sizes are often 12 to 20 ounces, and a 12-ounce brewed coffee alone can range from 113 to 247 mg, so the cup size matters more than the type.3

| Drink | Serving | Typical caffeine |
|---|---|---|
| Brewed coffee | 8 oz (240 ml) | About 96 mg |
| Brewed coffee | 12 oz (355 ml) | 113 to 247 mg |
| Espresso | 1 shot (1 oz / 30 ml) | About 64 mg |
| Black tea | 8 oz (240 ml) | About 48 mg |
| Green tea | 8 oz (240 ml) | About 29 mg |
| Caffeinated soda | 12 oz (355 ml) | 23 to 83 mg |
| Energy drink | 12 oz (355 ml) | 41 to 246 mg |
| Decaf coffee | 8 oz (240 ml) | 2 to 15 mg |
Brewed coffee, espresso and tea figures are averages from USDA FoodData Central;4 the ranges for 12-ounce drinks and decaf are from the FDA.3 Brands vary widely, so check the label on energy drinks and pre-workout, which list caffeine in milligrams. Chocolate, matcha and some pain relievers contain caffeine too.
How long does caffeine stay in your body?
In most adults, half of the caffeine you drink is cleared in about 3 to 7 hours. That number is the half-life: after one half-life, half of a cup is still in your system, and after two, a quarter is. A 2 p.m. coffee can leave a noticeable amount in your body at a 10 p.m. bedtime.5
Some people clear caffeine more slowly
- Pregnancy: the half-life rises to about 10 hours by mid-pregnancy and up to 18 hours near the end.5
- The contraceptive pill: oral contraceptives make caffeine last noticeably longer.5
- Liver disease: can slow clearance a great deal.
- Smoking does the opposite: it almost doubles the speed at which caffeine is broken down.5
Genes and some medicines also play a part. You cannot feel your own half-life, so if you fall into one of these groups, or your nights are restless, start with an earlier cutoff than the chart suggests. A pharmacist can tell you whether a medicine you take affects caffeine.
What does late caffeine do to your sleep?
Across 24 studies, caffeine cut total sleep by about 45 minutes on average. People took about 9 minutes longer to fall asleep, spent about 12 more minutes awake during the night and got less deep sleep.1 Many people never notice this, because they still fall asleep; the sleep is just shorter and lighter.

The dose shows up clearly in the 2025 trial. A large 400 mg dose taken 4 hours before bed cut sleep by about 50 minutes, and taken 8 hours before bed it still broke sleep up with more time awake in the night.2 That trial was small and only included young men, but it points the same way as the review: the bigger the dose, the earlier it needs to be.
How much caffeine is too much in a day?
For most healthy adults, up to 400 mg a day, about two to three 12-ounce cups of coffee, is not generally linked to negative effects. People vary a lot in how sensitive they are, though, and sleep can suffer well below that amount if the caffeine comes late in the day.3
During pregnancy, the advice is no more than 200 mg a day, about two cups of coffee.6 Children and teens, and anyone with a heart condition, anxiety or a medicine that interacts with caffeine, should check with a healthcare provider about a safe amount.
How to move your cutoff earlier
If your last cup is currently mid-afternoon or later, do not stop cold. Move it back by about an hour every couple of days, so your body adjusts without a headache.
Days 1 and 2
Note when you have your last caffeinated drink, and how big it is. Make it no later than 4 p.m.
Days 3 and 4
Move it to 3 p.m. Swap any second afternoon cup for decaf or half-caf.
Days 5 to 7
Land on your time from the chart. Keep big drinks to the morning.


When the afternoon craving hits
A craving at 3 p.m. is usually the afternoon dip, not a caffeine need. Drink a glass of water, take a five-minute walk and get some daylight; the Afternoon Energy Reset lays out the full routine. Herbal tea or decaf keeps the ritual without the caffeine.
The cutoff is one piece of a good night. Pair it with a short evening routine, like the 10-minute nightly reset, and the wake time and wind-down steps in the Sleep Reset.
This guide is general wellness information, not medical advice. If you have ongoing trouble sleeping, are pregnant, or take medicine that may interact with caffeine, talk to a healthcare provider.
FAQ
How many hours before bed should I stop caffeine?
For a regular cup of coffee, about 9 hours is a cautious target. For bigger doses, such as a large coffee-shop coffee, an energy drink or pre-workout, about 13 hours. Some people sleep fine with less, and some need more, so use your own nights as the final test.
Is 2 p.m. too late for coffee?
It depends on your bedtime and your cup. With an 11 p.m. bedtime, one regular coffee at 2 p.m. fits the 9-hour guideline. With a 10 p.m. bedtime, aim for 1 p.m. instead, and for a large or extra-strong coffee, make it a morning drink.
Does decaf coffee have caffeine?
A little. Decaf usually has about 2 to 15 mg in an 8-ounce cup, compared with roughly 100 mg in regular brewed coffee. For most people that is small enough for the evening, but if you are very sensitive, notice how you sleep after it.
Can I build a tolerance so caffeine doesn't affect my sleep?
You may stop feeling the buzz, but that does not mean your sleep is unaffected. Studies measure lighter, shorter sleep after late caffeine even in people who drink it every day. Judging by how you feel at bedtime is not a reliable test.
Keep Going
-
Sleep & Recovery Sleep Reset: 7 Changes That Improve Sleep Hygiene Fast A caffeine cutoff is change 2 of the Sleep Reset, a 7-day plan with a wake time, wind-down and bedroom setup.
-
Focus & Calm Afternoon Energy Reset: Why You Crash After Lunch and How to Fix It The hardest time to skip caffeine is the post-lunch slump. The Afternoon Energy Reset gives you a 10-minute alternative.
