What Should You Eat Before the Gym: Timing and Foods

A small meal with 15 to 30 grams of carbohydrates and 5 to 15 grams of protein, eaten two to four hours before exercise, gives most people the best combination of energy and comfort. The specifics shift depending on how much time you have, what kind of workout you’re doing, and how your stomach handles food under stress. Here’s how to dial it in.

How Timing Changes What You Should Eat

Your body needs time to break down food and move it out of your stomach before you start moving. The general window is two to four hours before activity for a full meal. If you’re working out early in the morning or just don’t have that kind of lead time, a smaller snack of 300 to 400 calories about an hour beforehand works well. Anything eaten less than an hour before exercise should ideally be liquid or blended, like a smoothie or sports drink, because liquids empty from the stomach much faster than solid food.

This matters more than people realize. Exercising on a full stomach doesn’t just feel unpleasant. It can redirect blood flow away from your muscles toward digestion, reducing performance and increasing the chance of nausea or cramping. The closer you are to your workout, the simpler your food should be.

Carbohydrates Are the Priority

Carbs are your muscles’ preferred fuel source during exercise, especially at moderate to high intensities. A useful guideline is roughly 0.25 to 0.4 grams of carbohydrate per pound of body weight for each hour you have before your workout. So a 160-pound person eating two hours out would aim for about 80 to 130 grams of carbs. Someone eating one hour before would aim for the lower end.

The type of carbohydrate matters too. Slower-digesting, low-glycemic carbs like oats, whole grain bread, sweet potatoes, and most fruits release glucose into your bloodstream at a steadier rate. Research published in the Journal of Sports Sciences found that athletes who ate low-glycemic foods before exercise performed significantly better on endurance and skill tests compared to those who ate high-glycemic foods. Their blood sugar stayed more stable throughout the session, while the high-glycemic group experienced sharper blood sugar spikes followed by drops that increased the risk of feeling lightheaded or weak, particularly in the first 30 minutes of exercise.

Low-glycemic carbs also promote greater fat burning during exercise by keeping insulin levels lower. High-glycemic options like white bread, sugary cereals, or candy bars cause a larger insulin spike that shifts your body toward burning sugar and away from using stored fat.

That said, if you’re eating within 30 to 60 minutes of your workout, simpler carbs like a banana or an energy bar are the better call. You need something that digests quickly, and the glycemic index distinction becomes less important when the food barely has time to process before you start moving.

How Much Protein You Actually Need

Protein before exercise serves two purposes: it helps protect muscle tissue from breakdown during your session, and it gives your body a head start on recovery. You don’t need a massive amount. Around 20 to 30 grams is the practical ceiling for stimulating muscle repair in a single sitting. Research in the American Journal of Clinical Nutrition found that 30 grams of protein boosted muscle protein synthesis rates by about 46% compared to exercising with no protein. Going beyond 30 grams didn’t produce additional benefit.

Good pre-workout protein sources include Greek yogurt, eggs, chicken, turkey, or a scoop of protein powder in a smoothie. The key is pairing it with carbs rather than eating protein alone, since protein without carbohydrates won’t top off your energy stores.

Cardio vs. Strength Training

The balance between carbs and protein shifts depending on your workout type. For cardio sessions like running, cycling, or HIIT, carbohydrates take priority. Your muscles burn through glycogen (stored carbs) rapidly during sustained aerobic work, so you want to start with full tanks. A small meal of easily digestible carbs with a moderate amount of protein one to three hours before is ideal. If you’re closer to 30 to 60 minutes out, stick with simple carbs only, like a banana or an energy bar.

For strength training, the split between carbs and protein is more even. You still need carbs for energy, but protein becomes relatively more important because resistance exercise creates more direct muscle damage. A meal like eggs and toast, chicken and rice, or Greek yogurt with berries one to three hours before covers both bases. A pre-workout snack isn’t strictly necessary for lifting if you’ve had a proper meal a few hours earlier, but something small like cheese and crackers or carrots with hummus can help if you’re feeling hungry.

What About Working Out on an Empty Stomach?

Fasted exercise has a real metabolic effect, but it’s narrower than many people think. A meta-analysis in the British Journal of Nutrition found that exercising in a fasted state does increase fat burning compared to exercising after eating, but only during low-to-moderate intensity work. At higher intensities, the difference disappears. The study also didn’t find that fasted exercise led to greater total fat loss over time, just that a higher percentage of fuel came from fat during those individual sessions.

If your goal is performance, eating beforehand is almost always better. You’ll train longer and harder with fuel in your system. If you prefer morning fasted cardio and your workout is light to moderate, you’re unlikely to see a downside. But for intense sessions or anything involving heavy weights, skipping food typically means less output.

Foods to Avoid Before Exercise

Some foods are much more likely to cause stomach problems during a workout. The main culprits are high-fiber foods, high-fat foods, and dairy. Fiber slows digestion and can cause bloating and gas when your body is trying to divert resources to your muscles. Fat also takes a long time to break down. A meal heavy in both, like a bean burrito or a large salad with avocado and cheese, is a recipe for discomfort.

Dairy is a subtler issue. Mild lactose intolerance is common and often goes unnoticed in daily life, but the added physical stress of exercise can amplify symptoms into cramping or diarrhea. If you’ve ever felt off during a workout after having milk or a creamy protein shake, this could be why. Drinks with very high sugar concentrations, particularly those sweetened mainly with fructose, can also trigger gut distress. Interestingly, fructose combined with glucose (as found in most whole fruits) tends to be much better tolerated than fructose alone.

One less obvious factor: taking ibuprofen or aspirin before a workout increases intestinal permeability and can worsen GI symptoms. If you routinely pop a painkiller before training, this could be contributing to stomach issues you’re blaming on food.

Caffeine Timing

Caffeine is one of the most well-supported performance boosters available. The effective dose is 3 to 6 milligrams per kilogram of body weight, taken about 30 minutes before exercise. For a 150-pound person, that works out to roughly 200 to 400 milligrams, or about one to two strong cups of coffee. At this dose, caffeine improves endurance, power output, and focus. Going higher doesn’t add much benefit and increases the odds of jitteriness, a racing heart, or stomach upset.

Practical Meal Examples by Timing

  • 3 to 4 hours before: A full balanced meal. Chicken breast with rice and vegetables, a turkey sandwich on whole grain bread, or oatmeal with eggs and fruit.
  • 1 to 2 hours before: A smaller meal under 400 calories. Greek yogurt with berries and granola, toast with peanut butter and banana, or a small bowl of oatmeal with a scoop of protein powder.
  • 30 to 60 minutes before: A quick, easily digestible snack. A banana, a handful of dried fruit, an energy bar, or a small smoothie.
  • Under 30 minutes: Liquid only if anything. A sports drink or a few sips of a smoothie. Most people are fine training on whatever they last ate a few hours ago.

The best pre-workout food is ultimately the one that gives you energy without making your stomach rebel. These guidelines give you a framework, but individual tolerance varies. Pay attention to how you feel during your sessions and adjust portions, timing, and food choices based on what your body tells you.