Coffee and the nightcap

The two things you drink to get through the day and wind down at night are the same two things quietly taking your sleep apart — and you can’t feel either one doing it.

Tell it what you actually drank. It’ll tell you what that does to tonight, and exactly when to stop.

Free · No sign-up · Real glasses in, plain times out

When does today’s coffee clear?

Add the coffees, teas and energy drinks you had today. It models how much is still in your blood at bedtime, and the last safe time for one more.

    Still circulating at bedtime
    mg

    Add a drink to see where you stand.

    Last caffeine today should be by
    Caffeine in your system across the day
    Caffeine level Sleep-safe line Bedtime

    Caffeine doesn’t give you energy

    It hides the fact that you’re tired. All day, a molecule called adenosine builds up in your brain — the body’s sleep-pressure gauge. The longer you’re awake, the more of it accumulates and the heavier your eyes feel. Caffeine works by jamming into the same receptors adenosine uses, so the gauge stops reading. The tiredness is still there. You just stop feeling it.

    The problem is timing. Caffeine has a half-life of roughly five hours in an average adult, so five hours after a coffee, half of it is still in your bloodstream, and a quarter is still there ten hours later. A standard 12oz cup at 4pm leaves a meaningful amount working past midnight — enough to keep the adenosine gauge partly jammed while you’re trying to sleep.

    You can fall asleep with caffeine in your system and still lose sleep to it. It quietly trims the deepest, most restorative stage — the part that decides how you feel tomorrow.

    Even when caffeine doesn’t stop you dropping off, it suppresses slow-wave sleep, the deep stage where physical recovery happens. In controlled studies, a dose taken a full six hours before bed still measurably cut total sleep time. How fast you clear it is partly genetic too — fast metabolisers can have an espresso after dinner and feel nothing, while slow metabolisers hold onto it far longer.

    How much is actually in it

    DrinkTypical US sizeCaffeine
    Brewed / drip coffee12 oz≈ 145 mg
    Espresso1 oz shot≈ 65 mg
    Latte / cappuccino2 shots≈ 130 mg
    Cold brew16 oz≈ 205 mg
    Large coffeehouse drip16 oz≈ 310 mg
    Black tea8 oz≈ 47 mg
    Green tea / matcha8 oz≈ 30–65 mg
    Energy drink8–16 oz≈ 80–160 mg
    Pre-workout1 scoop≈ 150–300 mg
    Cola12 oz≈ 35 mg

    What to do tonight

    • Treat bedtime as fixed, then count back. For most people the last caffeine of the day should land 8 to 10 hours before bed; six hours is the floor, not the target.
    • If you’re a slow metaboliser or sleep lightly, move the cutoff to lunchtime.
    • Watch the hidden sources — pre-workout, “decaf” that isn’t quite, dark chocolate, some painkillers. They count.
    • Don’t fix a bad night with a bigger morning coffee. That deepens the adenosine debt and pushes the cycle into tomorrow night.

    How a nightcap splits your night

    Add tonight’s drinks in real glasses — a bottle of beer, a restaurant pour of wine, a cocktail. It converts them to standard drinks and tells you when to stop.

      Standard drinks tonight

      Add a drink to see how it splits your night.

      To be dry about 2h before bed, last drink by
      What your night looks like
      BedtimeMorning

      It knocks you out, then takes the back half as payment

      Alcohol is a sedative. It quietens the nervous system, which is why a drink or two makes you feel like you’re falling asleep faster. The catch is what happens after you’re asleep.

      As your body metabolises the alcohol over the next few hours, the sedation lifts and the system rebounds. Your brain pushes back toward alertness, your heart rate rises, and the sleep you get in the back half of the night turns shallow and broken — more awakenings, lighter stages, the 3am stare at the ceiling.

      Alcohol front-loads your sleep and steals from the back. You drop off quickly, then lose much of the REM and deep sleep in the hours that actually leave you restored.

      It also relaxes the muscles around your airway, suppresses REM sleep, and acts as a diuretic. That’s the real reason for the middle-of-the-night bathroom trip. You can sleep eight hours after drinking and still wake up foggy and flat.

      What counts as one drink

      DrinkReal-world sizeStandard drinks
      Regular beer (5%)12 oz bottle1.0
      Craft IPA (7%)16 oz can≈ 1.9
      Wine (12%)5 oz pour1.0
      Wine, restaurant pour (13%)8 oz≈ 1.7
      Spirit (40%)1.5 oz shot1.0
      Cocktail (2 shots)≈ 2.0
      Hard seltzer (5%)12 oz1.0

      What to do tonight

      • Stop early enough that you’re back to baseline well before bed — aim for your last drink to clear about two hours before you sleep.
      • Front-load the night, not the end of it. A drink with dinner does far less damage than one right before bed.
      • Match alcohol with water through the evening to blunt the diuretic effect and the wake-ups.
      • If you’re drinking to fall asleep, that’s the signal worth paying attention to.

      Two lines to draw before bed

      Caffeine

      Set your cutoff

      Count back from bedtime and draw a hard line on your last coffee, earlier than feels necessary.

      Alcohol

      Finish early

      Get your last drink in with enough runway to clear before bed, and keep water alongside it.

      Built for recovery, not sedation

      The reason people reach for a nightcap is that they want something to switch them off. Moongreens does the opposite of knocking you out — it’s a melatonin-free night drink that supports the systems caffeine and alcohol disrupt, so the sleep you get is the kind you actually recover from.

      It leans on named clinical forms rather than a sedative hit, and on 5-HTP to support your own melatonin pathway rather than dosing the hormone itself. Made in the USA.

      KSM-66® Ashwagandha Magnesium Bisglycinate Chelate (Albion®) L-Theanine L-Glycine 5-HTP from Griffonia seed

      90 nights, money-back. Thirty nights isn’t long enough to judge a recovery formula, so you get three months to feel the difference in how you wake up.

      This calculator is for general guidance and isn’t medical advice. Caffeine and alcohol affect everyone differently; if you’re pregnant, take medication, or have a health condition, talk to your doctor before making changes. These statements have not been evaluated by the FDA. This product is not intended to diagnose, treat, cure, or prevent any disease.

      Now you know what to cut. See what's already on the tab.

      Cutting the right things tonight helps. But if you’ve been running short for a while, you’re carrying a balance — and you can’t feel it the way you’d expect. Find out what you owe.

      Next →

      Sleep debt & naps

      Log your week, see how much you’re carrying, and find the nap length that actually helps without wrecking tonight.

      Want to set the schedule you’re protecting? ← Bedtime & wake time