Can coffee later in the day make it harder to fall asleep that night?

What FDA, NIH, and CDC say about caffeine, afternoon coffee, and sleep, including why sensitivity differs from person to person.

For many people, yes. Caffeine is a stimulant, and official U.S. health pages say it can interfere with sleep. A cup of coffee in the late afternoon can make it harder to fall asleep at night. That said, people vary widely in how sensitive they are to caffeine and how quickly their bodies clear it.

The short answer

The NHLBI describes caffeine effects lasting “up to 8 hours,” so late-afternoon coffee can affect nighttime sleep. Eight hours is not a guaranteed clearance time or a universal safe gap before bed. The CDC advises avoiding caffeine in the afternoon or evening. The FDA says that for most adults, 400 milligrams of caffeine a day is an amount not generally associated with negative effects, but too much caffeine can cause insomnia or other sleep problems. That is not a sleep-safe threshold: some adults notice unwanted effects below 400 milligrams, and “too much” is not the same for everyone. [1, 3, 4]

How caffeine can get in the way of sleep

Caffeine is found in coffee, tea, caffeinated soda, and chocolate. It can also be in energy drinks, some energy or protein bars, ice cream, chewing gum, dietary supplements, and some over-the-counter medicines.

According to NHLBI, caffeine can interrupt the body’s natural pressure to sleep by blocking adenosine, a compound that builds up in the brain while you are awake and helps signal a shift toward sleep. NHLBI also lists caffeine, along with nicotine, as a stimulant that can interfere with sleep.

That is a biological explanation, not a guarantee that every evening coffee will keep you awake. Some people feel little effect. Others feel jittery or notice sleep changes after a smaller amount.

Why “later in the day” matters

Timing matters because caffeine does not leave the body immediately. NHLBI states that the effects of caffeine can last up to 8 hours. This is general sleep-habit guidance, not a hard maximum for how long caffeine can affect an individual. Coffee in the late afternoon may still affect you when you want to fall asleep. [1, 4]

The CDC’s sleep-habit list includes avoiding caffeine in the afternoon or evening. The two agencies do not give one identical cutoff time that fits every person. A practical reading is: the later you have caffeine, the more likely it is to overlap with bedtime, and some people need a longer gap than others.

If you work at night, the same idea applies in reverse. NHLBI’s tips for shift workers include limiting caffeine use to the first part of the shift, so it is less likely to linger when you are trying to sleep during the day.

How much caffeine is in common drinks?

The FDA has cited 400 milligrams a day for most adults as an amount not generally associated with negative effects. The FDA describes that as about two to three 12-fluid-ounce cups of coffee, but cup counts are imprecise because caffeine content varies so much. There is wide variation in sensitivity and in how fast people eliminate caffeine.

Examples from an FDA table, for 12-fluid-ounce drinks, include (the table is adapted from a 2015 exposure study, not a current survey of every brand):

  • Caffeinated soft drink: 23 to 83 milligrams
  • Green tea: 37 milligrams
  • Black tea: 71 milligrams
  • Regular brewed, non-specialty coffee: 113 to 247 milligrams
  • Energy drink: 41 to 246 milligrams

Amounts vary by product and by container size. Restaurant drinks are not required to list caffeine. “Decaffeinated” does not mean caffeine-free. FDA says decaf coffee typically has 2 to 15 milligrams in an 8-fluid-ounce cup.

If you add up coffee, tea, soda, chocolate, and any energy drink, the day’s total can be higher than you expect. Too much caffeine can cause increased heart rate, palpitations, high blood pressure, insomnia or sleep disruptions, anxiety, jitters, upset stomach, nausea, and headache. If you have these symptoms, the FDA suggests talking with a health care professional about your caffeine intake.

Practical steps if sleep is the concern

These steps follow official guidance without turning it into a strict personal prescription:

  • Notice the time of your last caffeinated drink, not only how many cups you had.
  • Consider moving caffeine earlier in the day, especially if you have trouble falling asleep.
  • Count hidden sources, including tea, soda, chocolate, energy drinks, and some medicines or supplements.
  • If you usually have caffeine every day and want to cut back, the FDA says it is best to do so gradually. Withdrawal is not considered dangerous, but it can be unpleasant.

Do not stop or change a prescribed medicine on the basis of this page.

Pregnancy, medicines, and other exceptions

This page is for adults in the United States who wonder whether afternoon or evening caffeine is affecting sleep. It is not written for children or teens, and it does not set a caffeine limit for pregnancy or breastfeeding. The FDA recommends talking with a health care provider about caffeine if you are pregnant, trying to become pregnant, or breastfeeding, or if you have a condition or take a medicine that may increase sensitivity.

This page also does not recommend caffeine supplements or highly concentrated caffeine products. The FDA warns that those products can be dangerous.

When to talk with a doctor

Talk with a doctor if sleep problems continue, if you have symptoms of too much caffeine, or if you are unsure how caffeine fits with a health condition or medicine. If you regularly have trouble sleeping, a clinician can help look at the wider picture, not only coffee.

Sources

  1. National Heart, Lung, and Blood Institute. Sleep Deprivation and Deficiency — Healthy Sleep Habits. https://www.nhlbi.nih.gov/health/sleep-deprivation/healthy-sleep-habits. Last updated March 24, 2022. Accessed November 20, 2026.
  2. National Heart, Lung, and Blood Institute. How Sleep Works — Your Sleep/Wake Cycle. https://www.nhlbi.nih.gov/health/sleep/sleep-wake-cycle. Last updated March 24, 2022. Accessed November 20, 2026.
  3. Centers for Disease Control and Prevention. About Sleep. https://www.cdc.gov/sleep/about/index.html. Date not visible in retrieved page text. Accessed November 20, 2026.
  4. U.S. Food and Drug Administration. Spilling the Beans: How Much Caffeine is Too Much? https://www.fda.gov/consumers/consumer-updates/spilling-beans-how-much-caffeine-too-much. Date not visible in retrieved page text. Accessed November 20, 2026.

How this page was prepared: AI-assisted drafting and separate AI-assisted source checks; not clinically reviewed. This note describes the production method. It does not replace the sources listed above.