Farting in your sleep is completely normal. The average person passes gas 13 to 21 times a day, and some of those episodes naturally happen at night while your digestive system keeps working. During sleep, the muscles that normally help you hold gas in (particularly the anal sphincter) relax, making it easier for built-up gas to escape without you even noticing.
Why Gas Builds Up at Night
Your digestive system doesn’t clock out when you fall asleep. Everything you ate during the day, especially at dinner, is still being broken down. When food reaches your large intestine, bacteria ferment whatever your small intestine couldn’t fully absorb. That fermentation produces gas, and the timing means much of it accumulates in the hours after your last meal, right around when you’re in bed.
There are a few reasons nighttime gas tends to be noticeable. First, you’ve had an entire day of eating, drinking, and inadvertently swallowing air. All of that accumulates. Second, when you’re lying down, gas can’t rise and escape as a burp the way it might when you’re upright. Instead, it travels downward through the intestines and exits the other way. Third, because your sphincter muscles relax during sleep, there’s no conscious effort holding anything back.
What You Eat Matters Most
The single biggest factor in how gassy you are at night is what you ate that day. Foods rich in fermentable short-chain carbohydrates (commonly called FODMAPs) are harder for your body to digest. Beans, cabbage, onions, garlic, broccoli, and certain fruits fall into this category. When these foods reach your large intestine partially undigested, gut bacteria feast on them and produce gas as a byproduct.
Carbonated beverages are another common culprit. Every sip introduces carbon dioxide into your stomach, and that gas has to go somewhere. Chewing gum has a similar effect because you swallow extra air with each chew. If your evening routine includes a soda or sparkling water with dinner, that alone could explain a gassier night.
How You Eat Plays a Role Too
It’s not just the food itself. Eating too fast, talking while you eat, or drinking through a straw all cause you to swallow more air than usual. That air travels through your digestive tract and eventually comes out as gas. A large dinner compounds the problem: eating too much at once can overwhelm your digestive system, leaving more undigested food for bacteria to ferment in the large intestine.
Even supplements designed to improve digestion can backfire. Prebiotic and probiotic supplements are fibrous by nature. While they support gut health in theory, they can also increase the bacterial population in your gut or give those bacteria more to feed on, leading to excess gas, especially if you’ve recently started taking them.
How to Reduce Nighttime Gas
A few simple changes to your evening habits can make a real difference:
- Eat dinner earlier. Giving your body two to three hours to digest before lying down lets gas pass while you’re still awake and upright.
- Eat smaller portions at night. A lighter dinner means less undigested food reaching your large intestine during sleep.
- Slow down at meals. Eating at a relaxed pace and not talking with your mouth full reduces the amount of air you swallow.
- Cut back on carbonation and gum in the evening. Both introduce extra air into your digestive system right before bed.
- Track high-FODMAP foods. If you eat a lot of beans, cruciferous vegetables, or dairy and notice worse gas at night, try reducing these at dinner specifically and see if things improve.
A short walk after dinner also helps. Light movement stimulates digestion and encourages gas to pass before you go to bed, rather than building up overnight.
When Nighttime Gas Signals Something Else
Occasional sleep farting is just your body doing its job. But if you’re noticing a significant increase alongside other symptoms like bloating, abdominal pain, diarrhea, constipation, or unintentional weight loss, something else could be going on. Conditions like irritable bowel syndrome, lactose intolerance, celiac disease, and small intestinal bacterial overgrowth all cause excessive gas as a core symptom. Food intolerances are especially common and often go undiagnosed for years because people assume the gas is just normal for them.
The key distinction is whether the gas is disruptive or accompanied by pain and changes in your bowel habits. Passing gas 13 to 21 times a day, including during sleep, falls within the normal range. Consistently exceeding that, or dealing with foul-smelling gas paired with digestive discomfort, is worth investigating with a healthcare provider.

