Hitting the wall at mile 20 is not a rite of passage. It is a fueling failure — one that is almost entirely preventable with a plan built around your specific bodyweight, pace, and gut tolerance. Hundreds of thousands of recreational marathoners cross the line every year having never truly performed to their fitness level, because they guessed their nutrition instead of calculating it.
This guide covers the full picture: the physiology behind the wall, the carbohydrate and hydration targets that prevent it, how to fuel in the days before the gun, and what to do during every mile of the race itself.
Why the wall exists
Marathon pace sits right at the edge of your aerobic ceiling. At that intensity your body runs primarily on glycogen — the fast-burning carbohydrate stored in your muscles and liver. Problem: total glycogen stores amount to roughly 90–120 minutes of marathon-effort energy. A four-hour marathon takes four hours. The math does not work without supplemental carbohydrate.
When glycogen runs dry, your pace drops involuntarily. Legs feel like concrete. Forward motion requires conscious effort that your body no longer has the substrate to sustain. This is the wall. It is not a mental barrier in any meaningful sense — it is a biochemical event that happens when you run out of fuel.
The solution is equally concrete: keep blood glucose elevated throughout the race by consuming external carbohydrate, paced precisely enough that your gut can absorb it without distress.
How many carbs per hour
For most marathon runners, the target is 50–80 grams of carbohydrate per hour from the start of the race. Faster runners (sub-3:30) and those who have trained their gut can push toward 80–90 grams per hour. Slower runners and those with sensitive guts should aim for 40–60 grams per hour.
These targets require mixed carbohydrate sources — products combining glucose (or maltodextrin) and fructose. Glucose and fructose use different intestinal transporters, which means you can absorb more total carbohydrate per hour when both are present. A gel that is glucose-only caps you at roughly 60 grams per hour regardless of how much you eat.
If you want to go above 60 grams per hour — which research consistently shows improves performance in efforts over two hours — you need a 2:1 glucose-to-fructose product, or a combination of products that achieves that ratio. This is gut-trainable in the 8–12 weeks before your race.
Carb loading in the 72 hours before the gun
Carb loading is a real and measurable intervention. Done correctly, it increases muscle glycogen stores by 20–40% above baseline, which extends the time until the wall hits. Done incorrectly — one large pasta dinner the night before — it does almost nothing.
A simple three-day protocol:
- 72 hours out: 7–8 g carbs per kg bodyweight. Reduce fat and fiber. Light running only.
- 48 hours out: 9–10 g carbs per kg. White rice, white pasta, white bread, banana, sports drinks, fruit juice. Continue minimizing fiber and fat.
- 24 hours out (race eve): 7–8 g carbs per kg. Familiar foods only. Nothing new. Dinner by 7pm. Early bed.
For a 70 kg runner, 48 hours out means 630–700 grams of carbohydrate in a single day. That is a lot of food. You will feel heavy and slightly bloated. This is glycogen binding water in your muscles at a roughly 3:1 ratio — normal and harmless. The extra weight disappears quickly during the race.
Cut fiber completely from 48 hours out. High-fiber foods — vegetables, legumes, whole grains — slow digestion and substantially increase the risk of GI distress at race pace.
Race morning
Eat your pre-race meal 2.5–3 hours before the gun. Target 1–2 grams of carbohydrate per kg bodyweight. Keep fat and protein minimal. Keep fiber at zero.
Reliable race morning options: white rice with banana and a small amount of honey, white toast with jam, plain oatmeal (not high-fiber varieties) with a banana. Avoid anything unfamiliar, anything high in fat, and anything you have not specifically eaten before a hard training session.
If you use caffeine — and the performance literature strongly supports doing so — time your intake so that peak caffeine effect lands at miles 5–15 where you most need the neuromodulatory benefit. Coffee with breakfast 2.5 hours before usually works well. A caffeinated gel 20–30 minutes before the gun as a booster is an option if you have practiced it.
Sip water or a diluted electrolyte drink in the hour before the race. Do not drink large volumes in the 30 minutes before the gun — you do not want a full stomach at the line.
Miles 1–6: resist the urge to wait
Take your first gel between miles 3 and 5 — before you feel like you need it. This is the most common marathon fueling mistake: waiting until mile 8 or 10 because you feel fine. You feel fine because you still have glycogen. By the time you feel like you need fuel, you are already behind the curve. It takes roughly 20–30 minutes for a gel to hit your bloodstream, which means delayed fueling is never fully recovered.
In the first six miles, do not chase faster runners. Your goal pace should feel slightly too easy. This controlled effort preserves glycogen and keeps intensity low enough that your gut maintains good blood flow — critical for absorbing carbohydrate for the next three-plus hours.
Miles 6–18: the execution window
This is where races are won or lost nutritionally. You should be taking a gel or chew every 30–45 minutes, consistently. Set a watch alarm if needed. Never rely on hunger or aid station signage as your timing cue.
At aid stations, slow down to walk while fueling if you need to. The 10–15 seconds you lose is irrelevant. Missing calories or choking on a gel because you tried to take it at race pace is not.
Chase every gel with water, not a sports drink. The combined sugar concentration of a gel plus a sports drink can exceed what your gut can osmotically handle, causing the stomach to draw water inward to dilute it — the mechanism behind GI distress and nausea in marathons. Either use gels with water, or use sports drink without gels. Not both simultaneously.
Electrolytes matter more in heat than in cool conditions, but sodium replacement is always worth maintaining. 300–600 mg of sodium per hour is the rough target. Most sports drinks contain 200–400 mg per serving. In heat above 22°C, use electrolyte tabs in addition to your normal hydration.
Miles 18–26.2: survival, strategy, or surge
Mile 18 is where most marathon plans meet reality. If your fueling has been consistent, you will hit this point with glycogen reserves and the ability to maintain or lift pace. If you have been under-fueling, this is where the wall arrives.
From mile 18 onward, flat cola at aid stations is a legitimate tool. It delivers fast carbohydrate, caffeine if you have not over-saturated that system, and its slight acidity and carbonation can settle a mildly irritated stomach. Many experienced marathoners switch entirely to cola and water in the final 8 miles.
If you feel the wall beginning — pace dropping involuntarily, legs suddenly feeling disproportionately heavy, a strange cognitive flatness — take immediate action. Two gels back to back, or a large cup of cola plus a gel, can begin to reverse a developing bonk. The effect takes 15–20 minutes. Maintain whatever pace you can during that window. Do not stop unless forced to.
Hydration targets
The old advice was to drink as much as possible. The current evidence says something more nuanced: drink to thirst, but verify with context.
In cool conditions (below 15°C), 300–500 ml per hour is usually sufficient. In moderate conditions (15–22°C), 400–700 ml per hour. In heat above 22°C, 700–900 ml per hour, and you must be actively replacing sodium to prevent hyponatremia — the dangerous drop in blood sodium that results from drinking too much water without electrolyte replacement.
Hyponatremia symptoms include nausea, headache, and disorientation — the same as severe dehydration. The difference matters enormously: dehydration is treated with fluids, hyponatremia is made worse by them. In mass-participation marathons, hyponatremia from over-drinking plain water is more common than severe dehydration. Know your sweat rate and sodium needs before race day, not during.
GI distress: causes and fixes
The four most common causes of marathon GI problems:
- Starting too fast — elevated intensity restricts gut blood flow for the first 30–60 minutes, making it nearly impossible to absorb carbohydrate efficiently
- Mixing gels with sports drink — combined sugar concentration exceeds gut capacity
- Using unfamiliar products — your gut has not adapted to absorbing them at volume
- Eating high-fiber or high-fat foods in the 48 hours before the race
If GI issues develop mid-race, reduce intensity slightly, switch to plain water for 10–15 minutes, then reintroduce carbohydrate in smaller amounts. Do not stop fueling entirely — the deficit this creates will be worse than the nausea.
Gut training: the work you should be doing now
Your gut is trainable. In the 8–12 weeks before your marathon, your long runs should include practicing your target carbohydrate intake. If your race plan calls for 70 grams per hour, you should be practicing consuming 70 grams per hour on your 18- and 20-mile training runs — using the exact products you plan to race with.
Athletes who practice high-carbohydrate intake in training absorb it more efficiently on race day and experience significantly less GI distress. The adaptation takes time. Starting this 4 weeks before your race is too late. Starting it 12 weeks out with gradual increases is exactly right.
Why the written plan is non-negotiable
At mile 17 of a marathon, with your blood lactate elevated and your prefrontal cortex operating below capacity, you will not make good nutrition decisions on the fly. You will skip a gel because you feel fine. You will misjudge your hydration. You will make the same mistakes athletes make at every race.
The solution is to make the decisions now, when you are rested and clear-headed. A written, mile-by-mile fueling plan built from your specific inputs — your weight, pace, sweat rate, gut history, and the actual products you have trained with — removes decision-making from a moment when you are least equipped to make it well.
That plan should account for your specific split targets, the aid station locations on your race course, your caffeine timing, and contingency decisions for if something goes wrong. Generic guidance gets you 60% of the way there. A plan built for you gets you the rest.