Caffeine

Caffeine is the most widely consumed psychoactive substance in the world, and people use it to feel less sleepy and to perform better [pmid:26899133]. In a meta-analysis of 31 trials, it modestly improved reaction time and accuracy on attention tasks in rested adults [pmid:40335666]. The main trade-off is sleep: caffeine taken within hours of bedtime can shorten and fragment it [pmid:36870101].

Caffeine is the most widely used psychoactive substance in the world. People take it to fight sleepiness and boost performance source. The research is strongest on attention and on sleep disruption.

What does caffeine do for focus and attention?

A 2025 meta-analysis pooled 31 placebo-controlled trials with 1,455 rested, healthy adults. Caffeine improved accuracy (g = 0.27) and reaction time (g = 0.28) source. Those are small effects.

Doses of 200 mg or more improved both outcomes more than lower doses did source. Reaction time kept improving as the dose rose. Accuracy improved only up to a point and then declined source. The effect did not depend on how much caffeine people normally consumed source.

In a pilot trial in male participants, caffeine improved sustained attention. Methylphenidate and modafinil were tested alongside it, and modafinil showed no significant effect on any test. The authors called the effects of all three stimulants domain-specific and low in magnitude source.

How much caffeine have studies used?

The doses vary by purpose.

Caffeine pills, powder, tablets, or coffee: does the form matter?

The studies here do not compare forms, so they cannot say whether a pill beats coffee. A review of caffeine and cognition in sport included trials that gave it as drinks, capsules, energy bars, or gum, each against an identical placebo source. These studies do not cover powders or tablets specifically. What matters in the research is the dose in milligrams and when you take it.

How long does it take to work?

In a trial of 27 healthy volunteers, 50 mg of caffeine improved subjective alertness at 60 minutes. It improved accuracy on an attention-switching task at 90 minutes source. Those were the time points tested, so they are not a precise onset.

When should you take caffeine?

Earlier is safer for sleep. In a home study, 400 mg of caffeine disturbed sleep when taken at bedtime, 3 hours before, or 6 hours before, compared with placebo source.

A 2025 crossover trial in 23 men tested 100 mg and 400 mg at 12, 8, and 4 hours before bed. The 100 mg dose had no significant effect on sleep, even 4 hours before bed source. The 400 mg dose delayed sleep onset and changed sleep architecture within 12 hours of bedtime. Within 8 hours, it also increased sleep fragmentation source.

You may not feel it. Perceived sleep quality dropped only when 400 mg was taken 4 hours before bed, even though objective changes appeared earlier source.

A meta-analysis suggested that to avoid losing total sleep time, coffee should be consumed at least 8.8 hours before bedtime. A standard pre-workout serving should be consumed at least 13.2 hours before source.

How does caffeine affect sleep?

A meta-analysis of 24 studies found caffeine cut total sleep time by 45 minutes and sleep efficiency by 7%. It added 9 minutes to the time needed to fall asleep and 12 minutes of waking after sleep onset. Deep sleep fell by 11.4 minutes source. Another meta-analysis of 22 trials with 956 adults found a smaller loss of total sleep time, 34.67 minutes source.

Sensitivity differs between people. Older adults may be more sensitive, and genes involved in adenosine signaling and caffeine metabolism contribute to individual differences source.

Daily use matters too. In 20 male caffeine consumers, 150 mg three times daily for 10 days delayed REM sleep. Participants reported more trouble with waking after sleep onset and felt more tired on waking than on placebo source.

Caffeine also changed recovery sleep after sleep deprivation. In 41 participants kept awake for 38 hours, 2.5 mg/kg given twice, with the last dose 6.5 hours before bed, cut recovery sleep by about 30 minutes source.

What do people stack caffeine with?

The most studied pairing is L-theanine, an amino acid found in tea.

What are the side effects of caffeine?

A review of 25 studies in athletes, with 421 participants, found every side effect measured was more common or larger with caffeine than with placebo. Fast heartbeat or palpitations and worse sleep onset were the most prevalent and largest source.

Side effects ranged from 6 to 34% at low doses (3.0 mg/kg or less). They ranged from 8 to 83% at high doses (6.1 mg/kg or more) source. Some effects were present at least 24 hours after intake source. The authors suggested about 3.0 mg/kg as the dose with the fewest side effects relative to its performance benefit source.

Does caffeine help exercise performance?

Results are mixed. Of eight studies in one review, three found clear ergogenic effects, four found partial effects, and one found none. The authors linked weaker results to doses that were too low and to high habitual caffeine intake source.

A review of caffeine and cognition during exercise found that low to moderate doses before or during exercise may improve self-reported energy, mood, and attention source.

Is caffeine used for anything else?

A Cochrane review of seven small crossover trials in 75 people with mild to moderate asthma found a modest lung function improvement. Forced expiratory volume in one second improved by about 5% for up to two hours source.

In a trial of 77 adults aged 18 to 60, a shampoo with caffeine and adenosine increased hair density compared with baseline. Hair diameter did not change significantly source.

For pregnancy, a review of 14 observational studies found the evidence insufficient to say whether prenatal caffeine causes neurobehavioral problems. The certainty of the evidence was very low source.

All pages about Caffeine

Guides

What the research says

Dose range with larger attention benefits200 mg or more mgPMID 40335666
Moderate dose range in performance studies3 to 6 mg/kgPMID 38666339
Caffeine in a serving of coffee used in one meta-analysis107 per 250 mL mgPMID 36870101
Average loss of total sleep time45 minutesPMID 36870101
Suggested cutoff before bedtime for coffee8.8 hoursPMID 36870101
Time points where 50 mg improved alertness and attention switching60 and 90 minutesPMID 18681988
Most common side effects in athletesFast heartbeat or palpitations and worse sleep onset PMID 35380245
Effect on attention accuracy and reaction timeg = 0.27 and 0.28 PMID 40335666

Frequently asked questions

Does 100 mg of caffeine hurt sleep?

In a crossover trial of 23 men, 100 mg had no significant effect on objective or subjective sleep, even when taken 4 hours before bed. A 400 mg dose did affect sleep [pmid:39377163].

Does regular caffeine use blunt its effect on attention?

In a meta-analysis of 31 trials, the attention benefit was not related to differences in habitual caffeine consumption [pmid:40335666].

Are older adults more sensitive to caffeine's effect on sleep?

A systematic review noted that older adults' sleep may be more sensitive than younger adults' sleep. It also found pronounced individual differences, partly tied to genes [pmid:26899133].

Can caffeine improve memory?

In a study of 48 healthy men, methylphenidate, modafinil, and caffeine together were linked to better performance on memory tasks compared with placebo [pmid:35670369]. A separate pilot trial found caffeine's positive effect on sustained attention, with effects that were domain-specific and low in magnitude [pmid:33201262].

Does caffeine help after a night without sleep?

In a 38-hour sleep deprivation trial of 41 participants, caffeine of 2.5 mg/kg given twice reduced recovery sleep by about 30 minutes and altered its quality [pmid:39458438].

Studies