Free tool · No email needed

Find your caffeine cutoff

Estimate when to have your last caffeinated drink and see how much caffeine may still be active when you go to bed.

An educational planning estimate. This is not medical advice and it cannot guarantee how you will sleep.

Bedtimes after midnight are handled correctly.

How does caffeine usually affect you?

Using a 5-hour half-life. Individual half-life varies widely, so treat this as a starting point rather than a measurement.

What you had

Caffeine content varies by brand, preparation, serving size and roast. These are typical averages — edit any figure, and check the product label when you can.

Suggested last-caffeine window

1:00 PM – 3:00 PM

Based on your 11:00 PM bedtime, what you have entered and your selected sensitivity, this window may leave less caffeine active near bedtime. Your actual response may differ.

Bedtime
11:00 PM
Total caffeine today
96 mg
Estimated at bedtime
32 mg
Last caffeine to bed
8 hours
  • Your last caffeine is 8 hours before bed, which is already outside the suggested window.
Estimated caffeine through the day
Each drink, and how much is estimated to remain at bedtime
DrinkTimeCaffeineAt bedtime
Brewed coffee 3:00 PM 96 mg 32 mg

Your next step

Your Day Shapes Your Night

Caffeine, evening meals, hydration and alcohol — observing your own patterns without restrictive eating.

Build a more sleep-friendly caffeine routine $19.00

Not ready for that? Start with a free sleep guide .

About this calculator

Caffeine leaves the body gradually rather than all at once. This tool estimates how much of what you drink today may still be active at bedtime, and suggests a window for finishing your last caffeinated drink. It is a planning estimate, not medical advice, and it cannot tell you how you personally respond.

Important context
  • Individual response to caffeine varies a great deal, and half-life differs from person to person.
  • Pregnancy, breastfeeding, medications and health conditions can all change what amount is appropriate.
  • If you are pregnant or breastfeeding, speak to a healthcare professional. 200 mg per day is a commonly used reference.
  • This calculator is designed for adults.
  • Children and teenagers should talk about caffeine with a parent, guardian or healthcare professional.
  • Energy drinks are not recommended for children and teenagers.
  • Symptoms such as palpitations, tremor or severe anxiety are worth discussing with a healthcare professional.
  • If you are cutting down from heavy habitual use, reducing gradually is usually more manageable than stopping abruptly.
How the estimate is calculated

Each drink is treated as a single dose that decays exponentially: half remains after one half-life, a quarter after two, and so on. Remaining caffeine is calculated as dose × 0.5 ^ (hours elapsed ÷ half-life), and the amounts from every drink are added together at your bedtime. The suggested window comes from your total intake and selected sensitivity, then is presented as a two-hour range rather than a single minute, because the underlying evidence does not support that level of precision.

References

Last reviewed 2026-08-05.

Common questions

When should I stop drinking coffee before bed?

There is no single correct time. A common starting point is to finish caffeine somewhere between six and twelve hours before bed, depending on how much you have had and how sensitive you are. This tool suggests a window based on those two things, and the most useful next step is to try it for a week and notice what changes.

How long does caffeine stay in your system?

Caffeine has a half-life of roughly five hours in most adults, meaning about half of a dose remains after five hours and about a quarter after ten. The range across individuals is wide — genetics, medication, smoking and pregnancy all affect it — so treat any single number as an estimate.

Does caffeine still affect sleep if I fall asleep fine?

It can. Research has found that caffeine taken even six hours before bed can reduce total sleep time and lighten sleep, in people who did not notice a problem falling asleep. Falling asleep easily is not by itself evidence that caffeine is not affecting your night.

Is decaf caffeine-free?

No. Decaf coffee typically contains a small amount — around 2 mg per cup, compared with roughly 96 mg for regular brewed coffee. For most people that is negligible near bedtime, which is why it is included here as its own preset.

How accurate is this calculator?

It is a planning estimate, not a measurement. It uses average caffeine figures for typical servings and an average half-life for the sensitivity you select. Actual caffeine content varies by brand, preparation and serving size, and your personal metabolism may differ substantially from the model.

Educational information only: SleepOriginal provides general educational information and is not a substitute for medical advice, diagnosis, or treatment. Persistent sleep difficulty, loud snoring or breathing pauses, severe daytime sleepiness, or symptoms affecting safety should be discussed with a qualified healthcare professional.