How Long Does a Cup of Coffee Stay in Your System?

A standard cup of coffee contains about 96 mg of caffeine, and your body eliminates half of it in roughly 5 to 6 hours. That means if you drink a cup at noon, about 48 mg is still circulating at 5 or 6 p.m., and a quarter of the original dose lingers around midnight. Full clearance typically takes 10 to 12 hours, though it can stretch well beyond that depending on your genetics, medications, and overall health.

How Caffeine Moves Through Your Body

Caffeine is absorbed quickly. It starts working within 15 to 45 minutes of your first sip, and blood levels peak somewhere between 30 minutes and 2 hours later. That peak is when you feel the most alert, focused, or jittery.

The alertness happens because caffeine blocks a molecule in your brain called adenosine, which normally builds up throughout the day and makes you feel sleepy. Caffeine parks itself in the same receptors adenosine uses, preventing it from doing its job. You don’t actually have more energy. You just can’t feel the tiredness signal until the caffeine clears out and adenosine floods back in, which is why a “caffeine crash” can hit so suddenly.

The Half-Life Window

The half-life of caffeine, the time it takes your body to eliminate half the dose, ranges from 2 to 12 hours across the general population. For most healthy adults, it falls in the 4 to 6 hour range. That’s a wide spread, and it explains why your coworker can drink espresso after dinner and sleep fine while you’re staring at the ceiling after an afternoon latte.

Here’s what the math looks like for a typical 96 mg cup of brewed coffee with a 5-hour half-life:

  • 0 hours: 96 mg in your system
  • 5 hours: ~48 mg remaining
  • 10 hours: ~24 mg remaining
  • 15 hours: ~12 mg remaining
  • 20 hours: ~6 mg remaining

Even 24 mg, a quarter of your original cup, is enough caffeine to affect sensitive individuals. So while the noticeable buzz fades within a few hours, the compound is quietly active in your body much longer than most people realize.

Why Your Speed Varies: Genetics and Lifestyle

About 90% of caffeine is broken down by a single liver enzyme. The gene that controls this enzyme, CYP1A2, comes in two versions: fast and slow. If you inherited two copies of the fast version, you process caffeine roughly four times faster than someone with two slow copies. This is largely why caffeine tolerance feels so personal. It’s not just habit. It’s encoded in your DNA.

Several other factors shift your clearance speed in measurable ways:

  • Hormonal birth control: Oral contraceptives nearly double caffeine’s half-life, pushing it from the typical 3 to 5.5 hours up to around 10 hours. A morning coffee could still be at half strength by evening.
  • Pregnancy: Caffeine metabolism slows dramatically as pregnancy progresses. By the third trimester, the half-life reaches 9 to 11 hours, more than double the normal rate. The fetal liver also lacks the enzyme needed to break caffeine down, meaning the fetus is exposed for even longer.
  • Liver conditions: Since your liver handles nearly all caffeine processing, any impairment in liver function can extend clearance times significantly.

The Sleep Cutoff That Actually Works

This is the part most people are really searching for. A study highlighted by the American Academy of Sleep Medicine found that 400 mg of caffeine (roughly two to three cups of coffee) consumed six hours before bedtime still reduced total sleep by more than an hour. That reduction was measured objectively, not just self-reported, meaning participants lost sleep even when they didn’t feel like caffeine was affecting them.

The practical recommendation based on this research: avoid caffeine after about 5 p.m. if you go to bed between 10 and 11 p.m. If you’re a slow metabolizer, on birth control, or pregnant, you may need to push that cutoff even earlier, potentially to early afternoon.

Instant Coffee and Decaf Are Different

Not all cups are created equal. According to Mayo Clinic data, an 8-ounce cup of instant coffee contains about 62 mg of caffeine, roughly two-thirds of what brewed coffee delivers. Decaf isn’t zero either. It still contains about 2 mg per cup for instant decaf and around 1 mg for brewed decaf. Those small amounts won’t keep most people up, but if you’re extremely sensitive or drinking several cups, they can add up.

Brew method, bean origin, and steep time all influence the final number too, so the 96 mg average for brewed coffee is just that: an average. A large coffee-shop pour could easily contain 150 to 200 mg or more, which means the “one cup” you grabbed on the way to work may be doing the metabolic work of two.

How to Tell When It’s Worn Off

Most people notice caffeine’s stimulating effects for 2 to 5 hours after drinking, but the tail end of the dose continues to occupy adenosine receptors at lower levels for hours beyond that. You might not feel wired, but your body is still processing the compound. The subjective feeling of alertness fades well before your blood is actually clear.

If you’re trying to figure out whether your afternoon coffee is disrupting your sleep, the simplest test is to cut caffeine after noon for a week and track whether you fall asleep faster or wake up less often. For most adults with a normal half-life, noon gives your body roughly 10 hours of clearance before a typical bedtime, enough to drop levels to a point where sleep disruption is minimal.