If you’ve ever tried noshing on gels, chews, waffles, or something similar to maintain your energy levels while training for or participating in an endurance race, you’ve probably experienced an unwelcome side effect: diarrhea.

But what's causing it? The trigger isn’t necessarily caffeine (a well-known laxative), considering a lot of these products don’t even contain the added stimulant. The answer is actually less about the ingredients—usually a mix of different kinds of carbs and sugars plus sodium and electrolytes—and more about the highly-concentrated doses of those ingredients that you're consuming. (Get the secret to banishing belly bulge from WH readers who've done it with Take It All Off! Keep It All Off!)

Related: Grossed Out By Energy Gels? Try Energy Chews

“Your gastrointestinal system, and more specifically your small intestine, optimally absorbs nutrients, such as carbohydrates, within a certain concentration range,” says certified strength and conditioning specialist Carwyn Sharp, Ph.D., chief science officer for the National Strength and Conditioning Association. “Gels, chews, and waffles have strong amounts of carbs, sugars, and electrolytes to fuel your body, but if you haven’t consumed sufficient amounts of water, your small intestine may not be able to handle them efficiently.”

Related: 8 Ways To Make Sure You Don't Have To Poop Mid-Run

That causes a pretty severe chain of events. First, to dilute this mixture of carby stuff, water moves out of your blood and into the intestine to help it process things, which can lead to—dun dun dun—dehydration. Once it hits that point, your body has to take blood away from the GI tract to help your working muscles keep moving, explains Sharp. That leaves less blood available to absorb the nutrients you just consumed, and so they move on to the large intestine. That’s where bacteria sits and feeds on sugars…resulting in gas, bloating, and diarrhea. Add that to the repetitive bouncing motion of running, and voila, you have the recipe for some seriously messy pants.

Learn how to step up the intensity of your next cardio workout with a pair of 5-pound dumbbells:

preview for 10 Ways to Kick Up Your Cardio With 5-Pound Dumbbells

All that said, you don’t have to give up your energy godsends. Really what you need to do to prevent potty problems (the number-two kind at least) is drink plenty of water to dilute the high concentrations, says Sharp. And a tip that may seem like a no-brainer but way too many people skip: Read the directions. Most packets will tell you how much to consume in relation to your duration of exercise. (They should also remind you to take them with water.)

Related: Why Does Running Sometimes Give You The Runs?

And one more word to the wise: Experiment with these guys a few times during trial runs. Some people have more sensitive stomachs than others—not something you want to find out on race day. (Take it from me.)

Headshot of Marissa Gainsburg
Marissa Gainsburg
Marissa Gainsburg is the Features Director at Women's Health, where she oversees the magazine's news-meets-trends Warm Up section and Love & Life section. After receiving her journalism degree from the University of Florida, Marissa has spent the past eight years in NYC with her dog Bentley, writing and editing fitness, nutrition, health, sexual health, mental health, relationship, and travel content. She's held previous positions at Self, Allure, and Cosmopolitan.