Caffeine and Running: How to Use It to Boost Your Performance

Caffeine and Running: How to Use It to Boost Your Performance

Everything you need to know about caffeine as an ergogenic aid for runners: dosage, timing, sources, race-day protocol and how to manage tolerance.

Nutrition · Feb 22, 2026 · 13 min read

If you run regularly, you probably already have a relationship with caffeine. Maybe you grab a coffee before heading out for a morning run, or you have noticed that some energy gels come in a caffeinated version. What many runners do not realize is that caffeine is not just a stimulant for waking up: it is the legal ergogenic aid with the strongest scientific backing in endurance sport (World Athletics).

The research accumulated over decades is conclusive. Caffeine, at the right dose and at the right time, can improve your running performance by between 2% and 5%. Translated into real numbers: if your half marathon time is 1:45, a 3% improvement means running almost 3 minutes faster. In a 3:30 marathon, we are talking about more than 6 minutes. That is a huge difference for a substance you can buy at any supermarket.

However, caffeine is not magic. It works best when used strategically, with the correct dose, at the right moment and with an understanding of how your body reacts. In this guide we explain everything you need to know to turn caffeine into a real performance tool, not a source of jitters and stomach problems. If you are looking for a broader view of sports nutrition, check out our complete nutrition guide for runners.

Important: This guide is informational and based on published scientific evidence. If you have heart problems, high blood pressure, anxiety or other medical conditions, consult your doctor before using caffeine as an ergogenic aid.

1. How caffeine works in running

To understand why caffeine makes you run faster, you need to know its mechanisms of action. It is not simply about waking up or feeling more alert. Caffeine acts at the physiological level in very specific ways that directly benefit the endurance runner (WHO).

Blocking adenosine receptors

This is the primary mechanism. Adenosine is a molecule your brain naturally produces during exercise and throughout the day. When adenosine accumulates and binds to its receptors in the brain, it creates feelings of fatigue, drowsiness and reduced motivation. It is the natural mechanism your body uses to tell you to stop and rest.

Caffeine has a molecular structure very similar to adenosine. When you consume caffeine, it binds to the adenosine receptors before adenosine can, blocking them. The result is that your brain does not receive the fatigue signal with the same intensity. It is not that your legs are less tired, but that your brain perceives less fatigue. This is especially powerful in the final kilometers of a race, when central fatigue is the most important limiting factor.

Reduced perceived exertion (RPE)

RPE (Rating of Perceived Exertion) is the scale that measures how hard you feel the effort you are performing. Caffeine consistently reduces RPE in scientific studies. In practice, this means that a pace of 4:30 min/km with caffeine feels like running at 4:40-4:45 without it. The difference seems small, but in a race lasting two or three hours, that cumulative sensation makes the difference between holding your pace and falling apart.

Increased fat oxidation

Caffeine stimulates the release of fatty acids from adipose tissue into the bloodstream, making it easier for your muscles to use them as fuel. This has a direct implication for distance runners: if your body burns more fat during the early stages of the race, you spare muscle glycogen. And the more glycogen you preserve, the further you will get before hitting the dreaded marathon wall. This effect is especially relevant in efforts lasting more than 90 minutes (Mayo Clinic).

Performance improvement: 2-5%

Numerous meta-analyses have quantified the average performance improvement with caffeine in endurance sports. The numbers range between 2% and 5%, depending on the type of exercise, duration, dose and the individual characteristics of the athlete. To put it in perspective with a concrete example:

DistanceCurrent time2% improvement4% improvement
10K50:0049:0048:00
Half marathon1:45:001:42:541:40:48
Marathon3:30:003:25:483:21:36

Legal and safe: WADA's position

Caffeine was on the WADA (World Anti-Doping Agency) prohibited substances list until 2004. Since then, it was removed from the banned list and placed on the monitoring program. This means that anti-doping laboratories detect caffeine in urine samples, but its presence does not result in any sanction. You can use caffeine in any official competition, from your local park run to the Olympic Games, with complete peace of mind.

2. Optimal dose for runners

Dosage is probably the most important aspect of using caffeine for performance. Too little and you will not notice any effect. Too much and the side effects outweigh the benefits. Science has established a fairly clear range.

The 3-6 mg/kg body weight range

The optimal ergogenic dose is between 3 and 6 milligrams of caffeine per kilogram of body weight. This is the range where studies show consistent benefits with manageable side effects. Here is how it translates in practice:

Body weightLow dose (3 mg/kg)Medium dose (4.5 mg/kg)High dose (6 mg/kg)
55 kg165 mg248 mg330 mg
65 kg195 mg293 mg390 mg
75 kg225 mg338 mg450 mg
85 kg255 mg383 mg510 mg

For a 70 kg runner, the optimal dose would be between 210 mg (equivalent to a large americano or two espressos) and 420 mg (equivalent to about 4 espressos). Most runners get good results in the middle range, around 300 mg.

More is not better

A very common mistake is thinking that if 3 mg/kg works well, 9 mg/kg will work three times better. The reality is the opposite. Studies show that above 6 mg/kg, side effects (anxiety, rapid heart rate, tremors, gastrointestinal problems) increase much faster than benefits. In fact, at doses of 9 mg/kg or higher, many athletes perform worse than without caffeine because anxiety and stomach discomfort eliminate any advantage. The sweet spot is the minimum effective dose, not the maximum tolerable dose.

Genetics: fast and slow metabolizers (CYP1A2)

Not everyone processes caffeine the same way. The CYP1A2 gene codes for the main enzyme that metabolizes caffeine in the liver, and there are two main genetic variants that determine how quickly your body eliminates caffeine:

Genetic tests that analyze the CYP1A2 variant are available today at affordable prices, but the most practical way to know how you metabolize caffeine is to pay attention to your personal experience. If an afternoon coffee keeps you awake, you are likely a slow metabolizer. If you can drink coffee after dinner and sleep just fine, you are probably a fast metabolizer. In any case, start at the low range and increase gradually.

Practical tip: Calculate your dose by multiplying your weight in kg by 3 to start. That is your minimum effective dose. Test it during training and gradually increase until you find your sweet spot. Never experiment with new doses on race day.

3. Timing: when to take caffeine

Taking the right dose at the wrong time is almost as useless as not taking it at all. The pharmacokinetics of caffeine (how it is absorbed, distributed and eliminated in your body) dictate a very clear timing protocol.

Find your running group

5,000+ runners already train together. Free on iOS.

Download free

60 minutes before the race

Caffeine reaches its peak blood concentration (plasma peak) between 30 and 75 minutes after ingestion, depending on whether you have eaten beforehand, the format of the caffeine and your gastric emptying rate. The standard recommendation is to take it 60 minutes before you start running. This ensures that when you cross the start line, your blood caffeine levels are near their maximum.

If you take caffeine too early (2-3 hours before), levels will be declining when you need them most. If you take it 10 minutes before the start, you will spend the first kilometers without any effect while waiting for absorption. The 60-minute mark is the consensus in the scientific literature and works well for the vast majority of runners.

Half-life of 5 hours

The half-life of caffeine in the body is approximately 5 hours in the general population. This means that if you take 300 mg at 8:00 AM, by 1:00 PM you will still have 150 mg circulating. For a morning race, this is perfect: levels will remain elevated throughout the entire competition, even in a marathon lasting more than 4 hours.

However, this half-life has important implications for afternoon training. If you take an ergogenic dose of 300 mg at 5:00 PM, by midnight you will still have about 150 mg active, which will likely affect your sleep quality. And poor sleep destroys your training adaptations far more than caffeine can improve any single session.

Do not take it too late

As a general rule, avoid taking caffeine at ergogenic doses (more than 100 mg) after 2:00-3:00 PM if you need to sleep before 11:00 PM. For evening workouts, opt for caffeine-free gels and save caffeine for morning competitions, which is when most races take place. If you regularly train in the afternoon and want to try caffeine, do so on your weekend long runs in the morning.

4. Caffeine sources for runners

Caffeine can be consumed in multiple forms, and each has its advantages and disadvantages for runners. The important thing is to choose the source that best fits your race-day logistics and allows you to control the dose with precision.

Coffee

Caffeine pills

Caffeinated energy gels

Pre-workouts

Energy drinks

5. Race-day protocol

Race day is not the time to improvise. You need a proven protocol, one you have rehearsed in training and that suits your target distance. Here is a detailed protocol to get the most out of caffeine in competition.

Prior washout: 7-14 days (optional but recommended)

If you consume caffeine daily (morning coffee, for example), your body has developed tolerance. This means that part of the ergogenic effect has been blunted. Many elite runners practice a caffeine washout or withdrawal during the 7-14 days before their target competition. By eliminating your usual caffeine and reintroducing it on race day, the effect is much more potent.

The first 2-4 days without caffeine are the worst: headaches, fatigue, difficulty concentrating and even irritability. These symptoms are temporary and disappear within 3-5 days. Plan the washout to coincide with your taper phase (volume reduction), when you are already running less and can better tolerate the extra fatigue.

If a complete washout seems too aggressive, an alternative is to progressively reduce your usual consumption to half during the last week. It is not as effective as complete withdrawal, but it minimizes symptoms and still offers some resensitization benefit.

Protocol for 10K and half marathon

TimingActionDetail
-90 minUsual breakfastWhatever you have tested in training. No caffeine.
-60 minCaffeine dose3-6 mg/kg in pill or coffee. Example: 200-300 mg for 70 kg.
-15 minWarm-upCaffeine is already reaching optimal blood levels.
RaceRunNo additional caffeine needed. The pre-race dose covers the entire distance.

Protocol for marathon

TimingActionDetail
-90 minUsual breakfastCarbohydrates + some protein. No caffeine.
-60 minInitial caffeine dose2-3 mg/kg in pill or coffee. Example: 150-200 mg for 70 kg.
Km 1-25Caffeine-free gelsFollow your usual energy gel plan.
Km 28Caffeinated gel50-75 mg of caffeine. Begin the boost phase.
Km 35Caffeinated gel50-100 mg of caffeine. Final push for the closing kilometers.

The key to the marathon protocol is splitting caffeine into two phases: a moderate pre-race dose to benefit from the effect during the first half, and a boost with caffeinated gels in the final third, when central fatigue is most intense and caffeine has the greatest impact. Do not exceed 6 mg/kg of total accumulated caffeine throughout the entire race. To plan your complete race-day nutrition, check our race-day nutrition guide.

Golden rule: Never do anything new on race day. If you plan to use caffeine pills, test them at least 3-4 times during quality workouts. If you plan to combine a pre-race pill with caffeinated gels, rehearse that exact combination on a long run.

6. Caffeinated gels: the best options

Caffeinated gels are the most practical tool for administering caffeine during a race. They allow you to combine carbohydrate intake with caffeine stimulation in a single action. These are the four that work best for runners, tested in both training and competition. For a broader guide to energy gels (with and without caffeine), visit our running energy gel guide.

1. GU Roctane Energy Gel (caffeinated)

~$2.50/unit

Best for: runners who want caffeine + amino acids in a conventional gel with a wide variety of flavors

GU Roctane is the premium version of GU, designed specifically for high-intensity, long-duration efforts. It delivers 100 calories with a blend of maltodextrin and fructose, plus amino acids (taurine, beta-alanine and the BCAAs leucine, isoleucine and valine) that help combat muscle fatigue in the final kilometers. The caffeinated version contains 70 mg, an ideal dose for mid-race boost gels: enough to feel the effect without going overboard if you combine several.

The texture is classic GU, thick but manageable, and should be accompanied by 150-200 ml of water for optimal absorption. The Cold Brew Coffee and Sea Salt Chocolate flavors are particularly popular among marathoners. GU has been in the market for decades and is one of the brands with the largest satisfied user base worldwide.

See GU Roctane on Amazon →

2. SiS GO Energy + Caffeine Gel

~$2.20/unit

Best for: runners looking for an isotonic caffeinated gel that does not require water

Science in Sport (SiS) is a global reference in sports nutrition, and their isotonic gel is one of the most widely used by professional runners and cyclists. The caffeinated version contains 75 mg of caffeine and 22 g of carbohydrates in isotonic format, meaning you do not need water to take it. You can consume it at any point along the course without depending on an aid station.

The texture is more liquid than most gels, making it very easy to swallow while running at a fast pace. Flavors include cola (with double caffeine at 150 mg), orange and lemon. The 75 mg version is perfect for the final third of a marathon, while the 150 mg version is better suited as a single dose for shorter races like 10K or half marathon.

See SiS Caffeine Gel on Amazon →

3. Maurten Gel 100 CAF 100

~$3.80/unit

Best for: sensitive stomachs that need caffeine without GI issues

The Maurten Gel 100 CAF 100 combines Maurten's patented hydrogel technology with 100 mg of caffeine. The hydrogel encapsulates both the carbohydrates (25 g) and the caffeine in a structure that gels on contact with stomach acid, passing through the stomach without causing discomfort and gradually releasing nutrients in the intestine.

It is the caffeinated gel with the best gastrointestinal tolerance on the market. If other caffeinated gels cause you nausea or intestinal discomfort, Maurten is probably your best option. The flavor is neutral, almost imperceptible, which is an advantage at advanced marathon kilometers where intense sweetness typically triggers rejection. It is the gel used by many of the world's top elite marathoners. Its main drawback is the price, significantly higher than its competitors.

See Maurten CAF 100 on Amazon →

4. Pure caffeine pills (capsules)

~$0.10/unit

Best for: precise and affordable pre-race dosing, combinable with any caffeine-free gel

Pure caffeine pills are the most affordable and precise option for pre-race dosing. Each capsule contains exactly 200 mg of caffeine anhydrous, with no sugars, no calories and no liquid volume. This allows you to calculate your dose to the milligram without the variables introduced by coffee (bean type, brewing method, cup size).

The most versatile strategy is to use a 200 mg pill as your pre-race dose (60 minutes before the start) and combine it with caffeinated gels in the second half of the race. This way you separate your caffeine source from your carbohydrate source and have full control over both. You can also split the pill in half (100 mg) if the full dose feels excessive. Make sure to take it with some water and not on a completely empty stomach to avoid gastric discomfort.

See caffeine pills on Amazon →

7. Side effects and risks

Caffeine is generally safe at reasonable doses, but it is not free of side effects. Understanding them is essential for using caffeine intelligently and ensuring the downsides do not outweigh the benefits.

Anxiety and jitters

Caffeine stimulates the central nervous system and can cause anxiety, especially in sensitive individuals or when high doses are combined with the natural race-day nerves. If you are already an anxious person before competitions, a high caffeine dose can amplify that feeling to counterproductive levels. Always start with the low dose (3 mg/kg) and only increase if you tolerate it well. Many runners find their sweet spot in the mid-range and discover that going higher only increases jitters without improving performance.

Gastrointestinal discomfort

Caffeine stimulates intestinal motility, which can cause urgency to use the bathroom, especially when combined with the mechanical stress of running. This effect is more pronounced with coffee (due to the acids and oils in the bean) than with caffeine in pill or gel form. If you tend to have stomach issues during races, caffeine pills or isotonic caffeinated gels like Maurten are safer options than coffee before heading out. It also helps to allow at least 30-40 minutes between taking caffeine and the start so your digestive system can settle.

Sleep disruption

As we explained in the timing section, the 5-hour half-life means caffeine taken in the afternoon can seriously affect sleep quality. The impact is not just on how long it takes you to fall asleep: caffeine reduces the amount of deep sleep (N3 stage), which is the most important for muscle recovery and consolidation of training adaptations. A runner who regularly sleeps poorly due to excessive caffeine is sabotaging their own training.

Dependence

Regular caffeine consumption creates physical dependence. This is not necessarily a problem if your intake is moderate and consistent, but it does mean that abrupt withdrawal will cause unpleasant symptoms (headache, fatigue, irritability) for 2-5 days. If you decide to do a washout before an important race, plan it in advance and not during your peak training week.

Safe limits: 400 mg per day

The major health agencies (EFSA, FDA) consider consumption of up to 400 mg of caffeine per day safe for most healthy adults. This includes all sources: coffee, tea, soft drinks, gels and pills. In the sports context, a single dose of 3-6 mg/kg (which may exceed 400 mg in heavier runners) is considered safe when used occasionally for competition. What is not advisable is maintaining chronic daily consumption of 400+ mg. For more information on responsible supplementation, check our best supplements for runners guide.

8. Tolerance and how to reset it

If you drink coffee every day, your body has adapted to caffeine. This does not mean that coffee has no effect on waking you up, but it does mean that the ergogenic benefit for sports performance has been significantly reduced. Understanding tolerance is key to maximizing the impact of caffeine in the races that really matter.

Chronic use reduces the effect

Caffeine tolerance develops in as little as 5-7 days of regular consumption. Your brain adapts by producing more adenosine receptors to compensate for the blocking caused by caffeine. The result is that you need progressively more caffeine to achieve the same effect. A runner who drinks 3-4 coffees daily has such high tolerance that a standard ergogenic dose of 3-6 mg/kg may produce a smaller improvement than in someone who rarely consumes caffeine.

This does not mean you should quit coffee forever. Regular caffeine use has health benefits and is an enjoyable part of many people's routines. But it does mean you need to manage tolerance strategically if you want to use caffeine as a performance tool in competition.

The 7-14 day washout

A caffeine abstinence period of 7 to 14 days is sufficient to significantly restore the sensitivity of adenosine receptors. After this period, the same caffeine dose that you barely noticed before will produce a much more potent effect. Here is the recommended protocol for your season goal race:

  1. 14-10 days before: Reduce your usual consumption to half. If you drink 3 coffees a day, drop to 1-2. This smooths the transition.
  2. 10-7 days before: Eliminate all caffeine sources. Coffee, tea, cola drinks, large amounts of dark chocolate. Prepare for 2-4 tough days with headaches and fatigue.
  3. Days 5-1 before: Withdrawal symptoms have disappeared. You feel normal but without caffeine. Your adenosine receptors are resensitizing.
  4. Race day: Take your ergogenic dose. The effect is significantly greater than what you would achieve with active tolerance.

Strategic use: the real key

Not every runner needs or wants to do a complete washout. An alternative is strategic caffeine use throughout the season. This involves limiting caffeine use as an ergogenic aid only to quality sessions and competitions, while maintaining low habitual consumption (1 coffee a day, for example) the rest of the time.

With this approach, you maintain a partial tolerance that reduces withdrawal symptoms if you decide to do a washout before your A race, but you still retain a good portion of the ergogenic response for key sessions. It is the middle ground that works best for most recreational runners who do not want to give up their morning coffee but still want to optimize performance on race day.

Practical tip: Save caffeine as a performance tool for your 2-3 most important races of the year and for the most demanding training sessions (track intervals, long runs at marathon pace). If you use it on every easy jog, you lose the strategic advantage for when you really need it.

Frequently asked questions

How much caffeine should I take before running?

The optimal dose is between 3 and 6 mg of caffeine per kilogram of body weight, taken approximately 60 minutes before you start running. For a 70 kg runner, this means between 210 and 420 mg. If you have never used caffeine as an ergogenic aid, start at the low end (3 mg/kg, meaning about 210 mg for 70 kg) and assess how you feel before increasing. Always test it in training first, never directly in a race.

Does coffee work as well as caffeine pills?

Yes, coffee is a perfectly valid source of caffeine for improving performance. A double espresso contains approximately 120-150 mg of caffeine. The main difference from pills is precision: with a 200 mg pill you know exactly how much caffeine you are taking, while coffee caffeine content varies depending on bean type, roast, brewing method and cup size. Both options work, but pills and caffeinated gels are more practical and precise for competition.

Is caffeine banned in competition?

No. Caffeine was removed from the WADA (World Anti-Doping Agency) prohibited substances list in 2004. It is currently on the monitoring program, meaning that anti-doping laboratories detect it in urine samples but its presence does not result in any sanction. You can freely use caffeine in any official competition, from a local race to a world championship, without risk of penalty.

Can I take caffeine if I train in the afternoon?

You can, but with great caution. Caffeine has a half-life of about 5 hours. If you take 200 mg at 6:00 PM, by 11:00 PM you will still have about 100 mg active in your body, enough to affect your sleep quality. If you regularly train in the late afternoon or evening, the recommendation is to use caffeine-free gels for your evening sessions and save caffeine for morning competitions and weekend long runs in the morning. Sleep quality is more important for your long-term performance than any short-term caffeine benefit.

Is it better to take caffeine at the start or end of a race?

It depends on the distance. For races up to half marathon distance, the most effective approach is to take all your caffeine 60 minutes before the start, since the race is short enough for levels to remain elevated throughout the entire course. For a marathon, the optimal strategy combines a moderate pre-race dose (2-3 mg/kg) with caffeinated gels in the final third (from km 28-30 onward), when central fatigue peaks and caffeine has the greatest impact on perceived exertion. You can dive deeper into nutrition strategies in our marathon energy gel guide.

How many days do I need to reset caffeine tolerance?

An abstinence period of 7 to 14 days is sufficient to significantly restore caffeine sensitivity. During the first 2-4 days you will experience withdrawal symptoms (headache, fatigue, difficulty concentrating, irritability). These symptoms are temporary and progressively disappear. A complete washout before every race is not essential, but it is highly recommended before your main goal race of the season. A less aggressive alternative is to reduce consumption to half during the 2 weeks prior.

Does caffeine dehydrate runners?

Not significantly during exercise. Although caffeine has a mild diuretic effect when consumed at rest, this effect is considerably attenuated during physical activity. Multiple studies have shown that caffeine consumption at ergogenic doses (3-6 mg/kg) does not increase dehydration risk or negatively affect fluid balance during exercise. You can use caffeine with confidence before and during a race without needing to compensate with additional fluid beyond your normal hydration plan (ACSM).

Improve your nutrition by running with others

Share nutrition tips and discover what other runners eat. Join a free group run.

Join 5,000+ runners

App Store Google Play
Carlos Ruiz
Carlos Ruiz Founder

Runner since 2015. 3 marathons, 15+ half marathons. Founder of CorrerJuntos. I test every product we recommend and run every route we publish.

Strava Instagram X/Twitter

Running tips in your inbox

Recipes, nutrition strategies and supplementation for runners. No spam.

Cancel anytime. Zero spam.

Cancel anytime.