What to Eat Before and After a Workout: Foods and Timing

The short answer: carbohydrate-rich foods before your workout to fuel performance, and protein-rich foods after to support recovery. But the timing, portions, and specific choices matter more than most people realize, and they shift depending on how intense your session is and when you last ate.

Pre-Workout Timing Changes Everything

How close you eat to your workout determines what and how much you should have. The general window is one to four hours before exercise. Eating too close to go-time forces your body to split resources between digesting food and powering your muscles, which often leads to nausea, cramping, or bloating mid-session.

If you have three to four hours before your workout, you can eat a full meal: think a plate with a good portion of carbs, 20 to 30 grams of protein, and moderate fat. A chicken breast with rice and vegetables, a turkey sandwich on whole-grain bread, or oatmeal with eggs all work well here. This gives your body enough time to break everything down and top off its energy stores.

If you only have 30 to 60 minutes, you need something small and easy to digest. Aim for 30 to 60 grams of quick-digesting carbohydrates with just 5 to 10 grams of protein. A banana with a small amount of peanut butter, a piece of toast with jam, a handful of pretzels, or a simple granola bar. The closer you are to your workout, the simpler the food should be.

Why Carbs Are the Priority Before Exercise

Your muscles run on glycogen, which is stored carbohydrate. Whether you’re running five miles or doing heavy squats, starting with full glycogen stores is critical for performance. For a standard gym session, eating at least 1 gram of carbohydrate per kilogram of body weight (roughly half a gram per pound) at least an hour beforehand is a solid target. That’s about 70 grams for a 150-pound person, or roughly the amount in a cup of rice or two slices of bread with a banana.

For longer or more intense sessions, like a race, a long cycling ride, or a competitive event, the recommendation climbs to 2.5 to 4 grams per kilogram of carbs eaten three to four hours ahead. That’s a substantially bigger meal, which is why endurance athletes often have a large breakfast hours before an event rather than snacking right before the start.

Foods to Avoid Before Training

Some foods that are perfectly healthy in other contexts become problems before exercise. High-fiber foods like beans, broccoli, and bran cereals slow digestion and can cause bloating or cramping during movement. High-fat foods like cheese, fried items, or creamy sauces also sit heavy in the stomach. Dairy products containing lactose can trigger GI distress during exercise even in people who normally tolerate them fine.

Drinks or foods sweetened primarily with fructose (some fruit juices, honey-heavy snacks) are also worth avoiding close to a workout, as they can cause stomach discomfort at higher doses during activity. The pattern here is simple: the closer to exercise, the blander and more carb-focused your food should be. Save the salad with grilled salmon for after.

What to Eat After a Workout

After exercise, your nutritional priorities flip. Protein becomes the main event because your muscles are actively repairing the microscopic damage that training causes. Aim for 30 to 40 grams of protein in your post-workout meal or snack. To give a sense of scale, that’s roughly a palm-sized portion of chicken or fish, a cup of Greek yogurt with a scoop of protein powder, or three to four eggs with a glass of milk.

Not all protein sources are equal for recovery. Foods rich in leucine, a specific amino acid that triggers muscle repair, are particularly effective. You need about 3 to 3.5 grams of leucine to fully activate that repair process. Chicken, beef, fish, eggs, dairy, and soy are all strong leucine sources. Plant-based eaters can hit the target by combining legumes with grains or supplementing with a plant protein blend.

Carbohydrates matter after training too, especially if you did endurance work or plan to train again within the next day. A post-workout meal with a ratio of roughly one part protein to three parts carbohydrates is the sweet spot for replenishing glycogen stores. A rice bowl with chicken, a smoothie with fruit and protein powder, or pasta with a meat sauce all fit this template naturally.

The “Anabolic Window” Is Wider Than You Think

You’ve probably heard that you need to eat protein within 30 to 60 minutes after lifting or you’ll lose your gains. This idea of a narrow “anabolic window” has been a gym staple for decades, but the research tells a different story. Studies consistently show that consuming protein closer to your workout doesn’t produce measurably better muscle growth or strength gains compared to eating it at other times of the day, as long as your total daily protein intake is adequate.

That adequate number is at least 1.6 grams of protein per kilogram of body weight per day (about 0.7 grams per pound), spread relatively evenly across a few meals. For a 160-pound person, that’s roughly 115 grams of protein throughout the day. If you’re hitting that target and eating regular meals, obsessing over a post-workout shake within 20 minutes isn’t necessary. That said, if your last meal was several hours before training, eating within an hour or two after makes more practical sense. Resistance athletes who train fasted or haven’t eaten in the one to two hours before their session benefit most from prioritizing post-workout protein sooner.

How Needs Differ by Workout Type

Endurance athletes, like runners, cyclists, and swimmers doing longer sessions, burn through glycogen faster and need to prioritize carbohydrates both before and after training. Pre-workout meals should lean carb-heavy to ensure full energy stores from the start. Post-workout, the combination of protein and carbohydrates within the first few hours is particularly important when recovery time before the next session is short (under eight hours).

Strength athletes doing resistance training also need full glycogen stores to perform well, but their carb needs are generally met through balanced meals eaten throughout the day. Post-workout, the emphasis shifts more heavily toward protein. If you’re lifting weights three to five days a week, your daily protein target likely needs to be on the higher end of recommendations to support ongoing muscle repair.

For casual exercisers doing a 30 to 45 minute moderate session, the stakes are lower. A normal balanced meal within a couple of hours on either side of your workout is usually sufficient. The more intense and frequent your training, the more precision in timing and portions starts to matter.

Don’t Forget Hydration

Water is easy to overlook, but dehydration impairs performance faster than a missed snack. Drink water steadily in the hours before your workout rather than chugging a large amount right before. After exercise, the goal is to replace what you lost through sweat. A practical guideline: drink 16 to 24 ounces of fluid for every pound of body weight you lost during the session. The extra volume beyond simple replacement accounts for continued sweat and urine losses after you stop moving.

If you don’t want to weigh yourself before and after workouts, pay attention to urine color. Pale yellow means you’re well hydrated. Dark yellow means you need to drink more. For sessions lasting over an hour or done in heat, adding electrolytes through a sports drink or an electrolyte tablet helps replace the sodium and potassium lost in sweat.

Putting It Together

A practical framework looks like this. Three to four hours out, eat a balanced meal with carbs, protein, and some fat. If you’re closer to 30 to 60 minutes, grab a simple carb-focused snack. Keep fiber, fat, and dairy low as you get closer to training. After your workout, have a meal or snack with 30 to 40 grams of protein and a generous serving of carbohydrates within a couple of hours. Drink enough fluid to replace what you sweated out. And above all, focus on your total daily nutrition rather than any single perfectly timed bite. Consistency across the whole day matters far more than any one pre- or post-workout choice.