Skip to content

How Much Caffeine Is Safe, and When to Stop for Sleep

· 5 min read · By Taohidul Islam

For most healthy adults, the U.S. Food and Drug Administration (FDA) says up to 400 mg of caffeine a day - roughly two to three 12-ounce cups of brewed coffee - is not generally linked to harmful effects. Timing matters as much as the total: in a controlled sleep study, a large dose taken even six hours before bed cut total sleep by about an hour, so many people sleep better with an early-afternoon cutoff.

What does 400 mg of caffeine look like?

Caffeine content varies a lot by drink, brand and brewing method, which makes it easy to go over without noticing. The FDA gives these typical ranges:

DrinkTypical caffeine
Brewed coffee, 12 fl oz113-247 mg
Black tea, 12 fl ozabout 71 mg
Green tea, 12 fl ozabout 37 mg
Caffeinated soft drink, 12 fl oz23-83 mg
Energy drink, 16 fl oz54-328 mg
Decaf coffee, 8 fl oz2-15 mg

Two things stand out. One large coffee-shop coffee can use up a big share of the daily figure on its own, and decaf is not caffeine-free. Chocolate, some pain relievers and pre-workout products also contain caffeine, so check labels.

The FDA also warns about pure or highly concentrated powdered and liquid caffeine. A tiny amount of these products can be a dangerous dose, and they have been linked to serious harm. Avoid them.

Who should have less caffeine?

The 400 mg figure is for healthy adults. Several groups should aim lower or ask a clinician first:

  • Pregnant or breastfeeding people, and those trying to conceive. The NHS advises no more than 200 mg a day during pregnancy. The FDA suggests asking your health care provider whether you should limit caffeine.
  • Children and teens. They are more sensitive to caffeine, and medical experts advise against energy drinks for them. Caffeinated drinks should be avoided for children under 2.
  • People with certain health conditions. MedlinePlus lists sleep problems such as insomnia, anxiety, migraines or chronic headaches, reflux or ulcers, heart rhythm problems and high blood pressure.
  • People taking certain medicines or supplements. Some stimulants, antibiotics, asthma medicines and heart medicines interact with caffeine. Ask your doctor or pharmacist.

Sensitivity also differs between healthy adults. Some people feel jittery or sleep badly on far less than 400 mg, and that is a good reason to set a lower personal limit.

How does caffeine affect sleep?

During the day, a chemical called adenosine builds up in the brain and creates sleep pressure. Caffeine blocks adenosine from acting, which is why it makes you feel more alert. It does not remove the need for sleep - it masks it until the caffeine wears off.

Caffeine peaks in the blood within about an hour, and its effects can last four to six hours. Your body clears it gradually, and how fast varies widely from person to person, so some is still circulating long after you stop feeling it. That leftover caffeine can make it harder to fall asleep and make sleep lighter, even when you do not notice it.

The clearest evidence on timing comes from a 2013 study in the Journal of Clinical Sleep Medicine. Healthy adults took 400 mg of caffeine at bedtime, 3 hours before or 6 hours before. In all three conditions, measured total sleep fell by more than an hour compared with a placebo. The authors concluded that people should avoid substantial caffeine for at least 6 hours before bed.

A practical rule: have your last caffeinated drink at least 6 hours before bedtime, and earlier if you are sensitive or the drink is a strong one. For a 10:30 pm bedtime, that means finishing by about 4:30 pm at the latest - many people do better stopping between noon and 2 pm.

Watch for a loop, too. Poor sleep makes you tired, so you reach for more caffeine later in the day, which then disturbs the next night. If that sounds familiar, moving your cutoff earlier often helps more than cutting caffeine out entirely. Our guide to why sleep matters for health covers what that lost sleep costs.

Signs you may be having too much

  • Feeling jittery, restless or anxious
  • Trouble falling asleep or staying asleep
  • A fast heartbeat or a pounding feeling in your chest
  • Upset stomach or heartburn
  • Headaches
  • Needing more caffeine to get the same effect

Get medical help right away if you have chest pain, a very fast or irregular heartbeat, fainting, confusion or a seizure after consuming caffeine, especially from energy drinks or concentrated products.

How to cut back without the headaches

Stopping suddenly can bring on withdrawal: headaches, drowsiness, irritability, nausea and trouble concentrating. These usually ease within a couple of days, but tapering helps you avoid them.

  1. Count what you have now. Write down every caffeinated drink for a few days, including tea, soda and energy drinks.
  2. Reduce in small steps. Drop one drink, or switch one to a smaller size, every few days.
  3. Mix in decaf. Blending regular and decaf keeps the routine while lowering the amount.
  4. Move the last cup earlier before you worry about the total.
  5. Replace the afternoon habit. A short walk, a glass of water or an herbal tea can fill the same slot.

Tracking caffeine with FitRest

FitRest includes a caffeine log on iPhone and Apple Watch. You set a daily limit, log drinks as you have them, and see how close you are to your limit. Entries are saved to Apple Health, and you can turn on caffeine reminders and add a Caffeine widget or watch complication to see your total at a glance. Having your sleep in the same app makes it easier to notice whether late coffee lines up with worse nights. See all the logs on the health logs page.

Sources

FitRest is a wellness app, not a medical device. It does not diagnose, treat or prevent any condition. Talk to a qualified health professional about any health concern.

Keep reading