Caffeine has a half-life of roughly 5-6 hours in most healthy adults, so half of what you drink is still active in your system that long after you finish the can - and a smaller amount lingers well beyond that. A 12-ounce can of regular cola has noticeably less caffeine than a cup of coffee, but it's still enough to disrupt sleep if you drink it too close to bedtime, especially if you're a slow caffeine metabolizer. The safest habit: stop caffeine at least 6 hours before you plan to sleep, more if you're sensitive.
I get asked some version of this question constantly: "I only had one Coke, why am I still wide awake at midnight?" I'm not a doctor - I'm someone who has spent years reading sleep research and, on plenty of nights, staring at the ceiling wondering exactly this. The honest answer is a bit more nuanced than a single number, so let's work through what actually happens when caffeine enters your body, how long it really keeps working, and where the hidden sources are that catch people off guard.
How much caffeine is actually in a can of cola?
A standard 12-ounce can of regular Coca-Cola contains a modest amount of caffeine compared to coffee - it's a genuinely lower dose, not a trivial one. For comparison, an 8-ounce cup of brewed coffee typically has around 95 mg of caffeine, while a can of cola sits well below that. The FDA considers up to 400 mg of caffeine a day safe for most healthy adults, but where it lands in your day matters as much as the total. It's not nothing, though - if you're sensitive to caffeine, or you're drinking it on top of tea, chocolate, or an afternoon coffee, it can be the dose that tips you into a restless night. The exact milligram count varies slightly by product and country formulation, so I'd rather point you to the manufacturer's own nutrition information than guess at a number here.
Why does caffeine keep me awake so much longer than I expect?
This is the part most people get wrong. Caffeine works by blocking adenosine, a chemical that builds up in your brain through the day and makes you feel sleepy. With adenosine blocked, you feel alert - but the caffeine doesn't just vanish once that initial buzz fades. It keeps circulating in your bloodstream for hours, at levels still high enough to interfere with falling asleep and with the depth of the sleep you do get.
The Sleep Foundation is direct about how long this can drag on: "Caffeine has a half-life of anywhere between 2 and 12 hours." Half-life means the time it takes your body to clear half of what you consumed - so if you drink a cola at 6pm and your personal half-life is 5 hours, you'll still have half that caffeine in your system at 11pm, and a smaller amount well past midnight. That 2-to-12-hour range is wide because caffeine metabolism varies enormously between people, which is exactly why "one can never bothers me" and "one can wrecks my whole night" can both be true, for different people.
How long before bed should I actually stop drinking caffeine?
Most sleep guidance lands on a similar answer: give caffeine plenty of runway before you try to sleep. The Sleep Foundation's own recommendation is blunt: "The generally recommended cut-off time for caffeine use is a minimum of eight hours before bedtime." That's a more conservative number than the "6 hours" figure you'll see repeated elsewhere, and it reflects how long caffeine's effects on sleep quality can linger even after you no longer feel "wired." If you're a slow metabolizer, pregnant, or simply sleep lightly, treating early-to-mid afternoon as your real caffeine cutoff - not late afternoon - is the safer habit.
If you're already dealing with a stretch of bad sleep for another reason, caffeine timing is one of the few things you can control immediately. It pairs well with sorting out sleep problems after surgery or building a wind-down routine if you're troubleshooting anxious nights where you can't stop worrying about not sleeping.
Hidden sources of caffeine you might be missing
Cola is rarely the only caffeine in someone's day, and the sources people forget are usually what push them over the edge:
- Tea - even black tea has a real amount of caffeine, and some "wellness" teas aren't as caffeine-free as their branding suggests.
- Chocolate - dark chocolate in particular contains meaningful caffeine; an evening dessert can add up.
- Energy drinks - typically dosed much higher than a can of cola, and often consumed later in the day than coffee is.
- Some over-the-counter medications - certain pain relievers and cold medicines add caffeine as a stimulant. Check the label if you're cutting back.
- Decaf coffee - "decaf" doesn't mean zero caffeine, just much less. It can still matter if you drink several cups.
Why does caffeine affect some people so much more than others?
Genetics play a real role here. Your liver breaks down caffeine using an enzyme called CYP1A2, and how fast or slow that enzyme works is largely inherited. Some people clear caffeine quickly and can have an espresso after dinner with no issue; others clear it slowly and feel the effects for most of the evening from a single afternoon coffee. Age, pregnancy, certain medications, liver function, and even smoking status all shift how long caffeine sticks around, too. If cola or coffee reliably wrecks your sleep even when you have it well before dinner, you are very likely a slow metabolizer - and the "stop 6 hours before bed" advice that works for other people may simply not apply to you.
If you love the ritual but not the wired feeling
You don't have to give up an evening drink, just the caffeine in it. Swapping your after-dinner cola or tea for something naturally caffeine-free is a simple, no-willpower way to protect your sleep without changing your whole routine.

Traditional Medicinals Nighty Night Tea
A calming, caffeine-free chamomile and passionflower blend - a gentle evening swap, not a sedative. Good for anyone who wants the wind-down ritual of a warm drink without any caffeine working against their sleep.
Want more caffeine-free evening options and the rest of the wind-down basics? See our Sleep Toolkit.
Frequently asked questions
Does one can of cola really keep you awake for hours?
It can, especially if you drink it in the evening or you're a slow caffeine metabolizer. Caffeine's half-life is typically 5-6 hours, so a meaningful amount is still active well after the can is gone - and for some people it lingers even longer.
Is diet cola any better for sleep than regular cola?
Diet versions can contain a similar or sometimes higher amount of caffeine than regular cola, depending on the product, so switching to diet isn't a reliable way to cut your evening caffeine. Check the manufacturer's nutrition information if it matters to you.
How long does caffeine actually stay in your system?
Roughly 5-6 hours for half of it to clear in an average adult, though the Sleep Foundation notes the real range is 2 to 12 hours depending on the person. Full clearance takes considerably longer than that.
What's a safe time to stop drinking caffeine before bed?
A minimum of 6 hours is a common rule of thumb, though the Sleep Foundation recommends at least 8 hours for better sleep quality. If you're sensitive to caffeine, earlier in the day is safer than "just before dinner."
Related reading
- Best magnesium for sleep
- What a sleep hangover is and how to beat it
- How to stop worrying about not sleeping
- The Sleep Toolkit
Sources & review: Caffeine content and timing guidance here is researched against the Sleep Foundation and the FDA. It is not medical advice. Individual caffeine sensitivity varies significantly - if caffeine is consistently disrupting your sleep, a doctor or pharmacist can help you look at your overall intake, including medications.
📥 Free: The Post-Surgery Sleep Recovery Kit
Our 2-page PDF - the safe sleep position for your surgery, how to set up your bed, a night-by-night recovery timeline, and the red flags worth calling your doctor about. We'll email you the download link.
By subscribing you agree to our Privacy Policy.
