What to Eat Before the Gym (and What to Avoid)

A combination of carbohydrates and a moderate amount of protein, eaten one to four hours before your workout, gives you the best shot at sustained energy and solid performance. The exact amounts and timing depend on how close you are to your session, but the core principle is simple: carbs fuel the work, protein supports your muscles, and everything else (fat, fiber) should be kept low to avoid stomach trouble.

How Much to Eat and When

The closer you are to your workout, the smaller and simpler your food should be. If you have three to four hours, you can eat a full meal with around 20 to 30 grams of protein and a generous serving of carbohydrates, roughly 2.5 to 4 grams per kilogram of your body weight. For a 150-pound person, that works out to about 170 to 270 grams of carbs, which is a substantial plate of rice, pasta, or potatoes alongside some chicken or fish.

Most people heading to the gym don’t have that kind of lead time. If you’re eating 30 to 60 minutes before training, aim for 30 to 60 grams of quick-digesting carbohydrates and 5 to 10 grams of protein. Think a banana with a small handful of pretzels, or a slice of white toast with a thin spread of peanut butter. The goal at this point is fast energy without a heavy stomach.

At a minimum, try to get at least 1 gram of carbohydrate per kilogram of body weight (about 0.5 grams per pound) at least an hour out. That’s roughly 70 grams for someone weighing 150 pounds, or about two slices of bread with jam and a piece of fruit.

Why Carbs Matter More Than Anything Else

Your muscles run on glycogen, which is stored carbohydrate. When glycogen drops too low, you fatigue faster, your lifts feel heavier, and your endurance tanks. Eating carbohydrates before training tops off those stores so you can push harder and longer. Research consistently shows a positive link between muscle glycogen levels and physical performance, and sports nutrition guidelines specifically recommend pre-exercise carbs for this reason.

The type of carbohydrate matters depending on timing. When you’re eating 30 to 60 minutes before training, high-glycemic carbs (white bread, rice cakes, ripe bananas, pretzels) are ideal because they digest quickly and get into your bloodstream fast. If you’re eating further out, around two to three hours before, slower-digesting options like oatmeal, sweet potatoes, or whole grain bread work well. One study found that a low-glycemic meal eaten 45 minutes before endurance exercise actually improved performance compared to a high-glycemic one, likely because it provided a steadier release of energy.

Protein: Helpful but Keep It Light

Protein before a workout supports muscle repair and can reduce breakdown during training, but it doesn’t need to be a massive serving. The sweet spot is 20 to 30 grams if you’re eating a full meal a few hours out, or just 5 to 10 grams if you’re snacking right before. Protein digests slowly, so eating a large amount close to your session can leave you feeling sluggish or nauseous mid-set.

More processed or easily absorbed protein sources work best when time is short. Greek yogurt, a couple of eggs, a protein shake, or even a glass of milk will do the job without sitting heavy.

Foods to Avoid Before Training

Four things commonly cause stomach problems during exercise: fiber, fat, fructose, and lactose. A high-fiber meal like a giant salad or a bowl of lentils can cause cramping, bloating, and worse once you start moving. High-fat foods slow digestion dramatically, which means that cheeseburger is still sitting in your stomach when you’re trying to squat. If you’re prone to gut issues during workouts, cutting back on fiber even the day before can help.

Drinks sweetened exclusively with fructose (some fruit juices and cheaper sports drinks) are another common culprit. And even mild lactose intolerance, the kind you barely notice at rest, can flare up during intense exercise. If dairy bothers you at all, skip it in your pre-workout meal or stick to lactose-free options.

Practical Meal and Snack Ideas

For a full meal two to four hours before the gym:

  • Oatmeal with fruit and nuts: One cup of cooked oatmeal gives you about 27 grams of carbs, and adding a banana and a small handful of almonds rounds it out with more energy and some protein.
  • Eggs with whole grain toast: Two slices of whole grain toast with one egg delivers roughly 28 grams of carbs and 14 grams of protein.
  • Rice or pasta with chicken: A classic for a reason. Easy to scale up or down depending on your body size and workout intensity.

For a quick snack 30 to 60 minutes out:

  • Greek yogurt with berries: About 23 grams of carbs and 13 grams of protein from a single container of nonfat yogurt with a handful of berries.
  • Apple and string cheese: A medium apple provides around 22 grams of carbs, and a stick of low-fat string cheese adds 7 grams of protein.
  • Pretzels and hummus: Fast-digesting carbs from the pretzels, a bit of protein and fat from the hummus.
  • A banana and a rice cake with a thin layer of peanut butter: Quick, portable, and easy on your stomach.

Do You Have to Eat Before the Gym?

Not necessarily. A recent meta-analysis comparing fasted and fed resistance training found no significant differences in muscle growth, strength gains, or lean mass between the two approaches, particularly when the fasted sessions followed an overnight fast. If you train first thing in the morning and food makes you feel heavy, you’re not sacrificing your results by skipping it.

That said, eating carbs before resistance training does produce ergogenic effects, meaning your actual performance during the session tends to be better. You may complete more reps, lift slightly more weight, or sustain higher intensity. Over time, those small per-session advantages can add up. If your primary goal is fat loss, the fasted group in that same analysis did show slightly greater reductions in body fat mass, though the difference was modest.

The practical takeaway: if you feel fine training on an empty stomach and your performance doesn’t suffer, it’s a valid choice. If you feel weak, dizzy, or flat during fasted sessions, eating beforehand will almost certainly help.

Caffeine and Hydration

A cup of coffee before the gym isn’t just a habit. Caffeine is one of the most well-studied performance boosters available. Doses as low as 100 to 200 milligrams (roughly one to two cups of coffee) improve endurance, power output, and focus. Higher doses, above 3 milligrams per kilogram of body weight, don’t appear to add further benefit and come with more side effects like jitteriness, elevated heart rate, and stomach discomfort. If you weigh 150 pounds, 100 to 200 milligrams is a solid starting point.

For hydration, aim for 16 to 24 ounces of water or a sports drink about two hours before training. If your session will last longer than 45 minutes or you sweat heavily, a drink with electrolytes helps more than plain water. Look for at least 200 milligrams of sodium per 12-ounce serving, which is roughly what you’ll find in most commercial sports drinks. Pre-loading with fluid is especially important in hot conditions or if you tend to cramp.