Free Caffeine Log Template
Free Excel template · Updated for 2026 · No email, no signup
Coffee at 8 AM is not gone by bedtime — about a sixth of it is still working at 10:30 PM. This log tracks every caffeinated drink for a week, adds up each day, and works out how much caffeine is still in your blood when you go to bed. Type only in the yellow cells and the formulas do the rest.
Download the free template
caffeine-log-template.xlsx · 9 KB · Excel (.xlsx)
2 sheets: Instructions + Caffeine Log · 13 example drinks over 7 days you replace with your own · Reference table of typical mg per drink included · Works in Excel, Google Sheets & LibreOffice · Blue cells are formulas — type only in the yellow cells
The file downloads straight to your device. In Google Sheets: File → Import → Upload, then pick the file.
What the template includes
Two sheets. Instructions explains the color code (pale yellow = type here, pale blue = formula) and the steps. Caffeine Log is the tab you will live in:
- 13 example drinks over 7 days — November 2–8, 2026, from a large morning coffee to a late energy drink. Replace them with your own drinks.
- 8 columns — Date, Time, Drink, Caffeine (mg), Running total today, Bedtime, Mg left at bedtime and Cutoff flag. You type the first four and the bedtime; the other three are formulas.
- Live decay math — “Mg left at bedtime” applies the half-life formula to every drink, so an 8 AM coffee and a 4 PM energy drink are not treated the same.
- Cutoff flag — “OK” when the drink came before bedtime minus 8 hours, “Too late” when it came after. The flag is per drink, not per day.
- Daily totals block — total mg and total mg left at bedtime for each of the 7 days, so you can compare days at a glance.
- Reference table — typical caffeine per drink, from brewed coffee (95 mg) to decaf (2 mg), so you can log a drink even when the label says nothing.
- Filters and a frozen header — filter to the “Too late” rows and keep the header visible while you scroll.
- Print-ready — landscape layout, fit to one page wide.
How to use it, step by step
- Download and open the file. In Google Sheets, use File → Import → Upload and pick the .xlsx. The formulas work the same way.
- Log every caffeinated drink as you have it. Date, time, what it was and how many mg — in the yellow cells. Use the REFERENCE table at the bottom of the sheet when the label does not say.
- Set the bedtime for each day. Type the same bedtime on every drink row of that day; the decay math and the cutoff flag both use it.
- Read “Mg left at bedtime”. That is the caffeine still in your blood when you go to bed. Anything above about 50 mg is enough to lighten sleep and cut deep sleep.
- Watch the Cutoff flag. A “Too late” row means that drink came after bedtime minus 8 hours — the site's default cutoff.
- Compare days in the DAILY TOTALS block. Total mg and mg left at bedtime per day. The worst day, not the average day, is usually the one that explains a bad night.
- To add a drink, insert a row inside the log (above the DAILY TOTALS section) and copy the formulas from the row above.
Worked example: one Monday, worked through
The template ships with a filled-in example week, November 2–8, 2026. Here is Monday, worked through step by step:
Monday, November 2 — two drinks, bedtime 10:30 PM. A large brewed coffee, 200 mg, at 8:00 AM, and a coffee, 100 mg, at 2:00 PM. Total for the day: 300 mg.
What is left at bedtime: the 8:00 AM coffee has 14.5 hours to decay before 10:30 PM. With a 5.5-hour half-life that is 14.5 ÷ 5.5 = 2.64 half-lives, so 200 × 0.52.64 = 32.2 mg still in the blood. The 2:00 PM coffee has 8.5 hours: 8.5 ÷ 5.5 = 1.55 half-lives, so 100 × 0.51.55 = 34.3 mg. Together: 66.4 mg — about a third of a cup of coffee — still working at bedtime, even though the last drink was eight and a half hours earlier.
The cutoff: bedtime minus 8 hours is 2:30 PM, and the last drink came at 2:00 PM — inside the cutoff by 30 minutes, so the flag says “OK”. Thirty minutes later and it would have said “Too late”.
The worst day of the week was Friday: 327 mg in total (a large coffee, a black tea and an energy drink at 4:30 PM), with 73.9 mg left at the 11:30 PM bedtime, and the 4:30 PM energy drink flagged “Too late” — it came an hour past the 3:30 PM cutoff. The other six days stayed between 16.8 and 66.4 mg left at bedtime.
The formulas behind it
Every number is a live formula, not a typed value. Mg left at bedtime is mg × 0.5^(hours until bedtime ÷ 5.5) — the exponential half-life decay: after one half-life (5.5 hours) half the caffeine remains, after two half-lives a quarter, and so on. The hours are computed from the drink time and the bedtime with MOD(bedtime − drink time, 1) × 24, which handles bedtimes after midnight. Running total is SUMIF over the drinks of the same date, so it restarts every day. Cutoff flag is IF(drink time ≤ bedtime − 8 hours, "OK", "Too late"). The DAILY TOTALS block is SUMIF by date for total mg and for mg left at bedtime.
Where the numbers come from
The example week in the template is sample data, not a real person's drinks — thirteen made-up drinks across seven days, there so you can see the math work before you log your own. Replace every row with your drinks and the sheet recalculates.
The 5.5-hour half-life is the figure the site's own Caffeine Cutoff Calculator uses: about 5–6 hours in most adults, so half of a drink is still in your blood 5.5 hours later and a quarter can linger after 10–12 hours. It varies — fast metabolizers clear it in about 4 hours, slow ones take 8 or more, and some medications stretch it further — so treat the “mg left” number as an estimate for an average adult, and as a minimum if coffee after lunch keeps you up. The 8-hour cutoff is the calculator's default: 8–10 hours before bed, with 8 as the standard. The reference table values are typical published figures: brewed coffee about 95 mg per 8 oz, a single espresso shot about 63 mg, black tea about 47 mg, green tea about 28 mg, an energy drink about 80 mg, cola about 34 mg and decaf about 2 mg. Real products vary — the number on the label beats the table when you have it.
Reading your numbers
- Mg left at bedtime under 25 mg. Low. Your last drink cleared well before bed; caffeine is probably not your sleep problem.
- Mg left between 25 and 50 mg. A grey zone — roughly a quarter to a half cup still working. If you sleep fine, leave it; if nights feel light, move the last drink an hour earlier.
- Mg left above 50 mg. Enough to lighten sleep and shrink deep sleep. The fix is timing, not quitting: the same drinks, earlier in the day, leave far less behind.
- “Too late” flags most days. The cutoff is the habit to change. In the example week, only Friday flagged — one late energy drink — and that is exactly the kind of single-row pattern a log is for.
Key terms
- Half-life — the time for half the caffeine in your blood to clear: about 5.5 hours for most adults. After one half-life 50% remains, after two 25%, after three about 12%.
- Mg left at bedtime — the caffeine still in your blood when you go to bed, after decay. It is the number that matters for sleep, not the total you drank.
- Cutoff — the last safe time for caffeine: bedtime minus 8 hours by default. A drink after the cutoff is still measurably active at bedtime.
- Running total — the mg you have had so far today. It restarts every day and is the number to compare with the 400 mg a day the FDA cites as generally safe for healthy adults.
Common mistakes
- Forgetting tea, soda and chocolate. A black tea is 47 mg and a cola 34 mg — they count. Energy drinks are the usual surprise: one can is about 80 mg, and the big cans are two servings.
- Logging the label's “per serving” as the whole can. Check the servings per container; a 16 oz energy drink is often two servings of 80 mg, not one.
- Using a different bedtime on each row of the same day. The decay math and the flag both read the bedtime on that row. Keep it identical for every drink of one day.
- Judging by total mg alone. 300 mg spread across the morning leaves 66 mg at bedtime; the same 300 mg with the last drink at 4 PM leaves far more. Timing matters as much as the total.
- Adding rows below the DAILY TOTALS section. The SUMIF formulas cover the log rows above the totals. A drink added underneath is invisible until you extend the ranges.
Frequently asked questions
Yes. Download the .xlsx file — no email, no account, no signup. It works in Microsoft Excel, Google Sheets and LibreOffice, and the formulas are live: change a time or a dose and every total updates.
Yes. In Google Sheets use File → Import → Upload and pick the file. Formulas and results carry over; the layout may look very slightly different, but the math is identical.
The flag says “Too late” and the “mg left at bedtime” number shows the cost. One late drink is a bad night; a week of them is a habit. Move the last drink an hour earlier and watch the bedtime number fall — the decay is exponential, so one hour buys a lot.
The FDA cites 400 mg a day — about four cups of brewed coffee — as an amount generally safe for healthy adults. The log's running total lets you check your own days against that number, but timing matters too: 300 mg with the last drink at 4 PM can hurt sleep more than 400 mg finished by noon.
It is the caffeine still in your blood when you go to bed. Caffeine blocks the sleepiness signal, so a high number means lighter sleep, less deep sleep and more wake-ups. Above about 50 mg most people can feel the difference; below 25 mg it is usually negligible.
Yes — the 5.5 is inside the “Mg left at bedtime” formula: mg × 0.5^(hours ÷ 5.5). If coffee after lunch keeps you up, you are probably a slow metabolizer: change the 5.5 to 8 in the formula and the numbers will reflect your body. Fast metabolizers can try 4.
More free tools & templates
More downloads and calculators that pair with this one:
- Sleep Diary Template — log 14 nights and see your sleep efficiency for yourself.
- Caffeine Cutoff Calculator — your last safe cup for tonight, with a decay chart.
- Bedtime Calculator — the best times to fall asleep for your wake time.
- Sleep Efficiency Calculator — your efficiency from time in bed and time asleep, in seconds.
- Weekly Health Tracker Template — one week of weight, sleep, water, exercise and steps.