Trapped gas usually resolves with a combination of movement, position changes, and simple habit adjustments. The sharp, cramping pain it causes can mimic serious conditions, but in most cases you can work the gas out within minutes to hours using techniques that help your digestive tract move things along.
Move Your Body First
Walking is the simplest way to get trapped gas moving. Even five to ten minutes of gentle walking stimulates your intestines to contract and push gas toward the exit. If walking alone doesn’t do it, specific yoga poses apply gentle pressure to your abdomen and reposition your body so gas can escape more easily.
The most effective pose is exactly what it sounds like: the Wind-Relieving Pose. Lie on your back, bring your legs up to 90 degrees, then bend both knees and pull your thighs into your abdomen. Wrap your arms around your legs and clasp your hands together. Lift your neck and tuck your chin toward your chest. Hold for 20 to 30 seconds, breathing deeply.
Child’s Pose works well too. Kneel on the floor, sit back on your heels, then walk your hands forward and let your torso rest on your thighs with your forehead on the ground. This compresses your abdomen gently while relaxing the muscles around your intestines. Happy Baby Pose, where you lie on your back with knees bent along the sides of your body and soles of your feet facing the ceiling, opens up the lower abdomen and helps release gas from the lower intestine. Try cycling through all three positions, holding each for 30 seconds to a minute.
Apply Heat to Your Abdomen
A heating pad or warm towel placed on your belly relaxes the smooth muscle lining your intestines. When those muscles relax, gas pockets can shift and pass more easily. Lie down with the heat source on your abdomen for 15 to 20 minutes. Combining this with deep, slow breathing, where you expand your belly on each inhale, can further encourage movement through the digestive tract.
Over-the-Counter Options
Simethicone (sold as Gas-X and similar brands) is the most widely used medication for trapped gas. It works as a surfactant, meaning it reduces the surface tension of gas bubbles in your digestive tract. This causes small, painful bubbles to merge into larger ones that are easier to expel through burping or flatulence. It doesn’t reduce how much gas your body produces; it just helps you pass what’s already there. The typical adult dose is 40 to 125 mg taken up to four times daily, with a maximum of 500 mg per day. It’s not absorbed into your bloodstream, so side effects are rare.
Peppermint oil capsules (the enteric-coated kind, so they dissolve in your intestines rather than your stomach) can also help. The active ingredient blocks calcium channels in the smooth muscle of your gut, which relaxes spasms and allows gas to pass. A meta-analysis of clinical data found peppermint oil significantly improved symptoms in people with irritable bowel syndrome, including bloating and gas pain.
Habits That Cause Trapped Gas
A surprising amount of intestinal gas comes from air you swallow, not from food fermenting in your gut. This is called aerophagia, and several everyday habits make it worse:
- Eating too fast or talking while eating
- Chewing gum or sucking on hard candy
- Drinking through straws
- Carbonated beverages (the bubbles are literally gas)
- Smoking
Slowing down at meals and chewing with your mouth closed are two of the most effective long-term fixes. If you notice your gas is mostly upper-digestive, coming out as burps rather than flatulence, swallowed air is likely the primary culprit.
Foods That Produce the Most Gas
Gas that forms lower in the digestive tract usually comes from bacteria fermenting carbohydrates your small intestine couldn’t fully absorb. These fermentable carbohydrates, sometimes grouped under the acronym FODMAPs, include several categories of common foods:
- Beans and lentils, the classic gas producers
- Dairy products like milk, yogurt, and ice cream (especially if you’re lactose intolerant)
- Wheat-based products such as bread, cereal, and crackers
- Certain vegetables, particularly onions, garlic, artichokes, and asparagus
- Certain fruits, including apples, pears, cherries, and peaches
You don’t need to eliminate all of these permanently. If you’re dealing with frequent trapped gas, try removing the most likely offenders for a few weeks, then reintroduce them one at a time to identify your specific triggers. Many people find that one or two categories cause most of their problems.
Fiber: Increase It Slowly
Fiber is essential for digestive health, but adding too much too quickly is one of the most common causes of sudden, painful gas. Your gut bacteria need time to adjust to processing more fiber. Michigan Medicine recommends adding just 5 grams of fiber per day at two-week intervals. That’s roughly the equivalent of adding one serving of a high-fiber food every two weeks rather than overhauling your diet all at once. Drink extra water as you increase fiber, since fiber absorbs water and can worsen bloating without adequate hydration.
Do Probiotics Help?
The evidence here is mixed. An international consensus review of probiotic research found moderate evidence that certain probiotics reduce bloating and abdominal discomfort, but the same review concluded that probiotics tested so far do not meaningfully reduce flatulence. In other words, probiotics may help with the painful, distended feeling, but they probably won’t reduce how much gas you produce.
Multi-strain probiotics performed better than single strains in the studies reviewed. If you want to try one, look for products containing multiple Bifidobacterium strains, as these showed the most consistent benefits for digestive discomfort. Give any probiotic at least three to four weeks before deciding whether it’s working, since your gut microbiome takes time to shift.
When Gas Pain Signals Something Else
Trapped gas is common and usually harmless, but certain symptoms alongside gas pain point to something that needs medical attention. These include fever, nausea and vomiting, unexplained weight loss, sudden or chronic diarrhea, and blood in your stool. Rectal bleeding or dark, tarry stools alongside gas pain should prompt a call to your doctor. Severe chest or abdominal pain can sometimes feel like gas but may indicate a heart attack or other serious condition. Digestive discomfort that occurs outside of meals, rather than during or shortly after eating, is also worth investigating, since typical gas pain is tied to digestion and food intake.

