Several medications can help with bloating, and the right one depends on what’s causing it. Over-the-counter gas relievers, digestive enzymes, and peppermint oil work well for occasional bloating after meals. Persistent bloating tied to conditions like irritable bowel syndrome (IBS) or chronic constipation often requires prescription options that target the underlying problem.
Simethicone for Trapped Gas
Simethicone is the most widely available over-the-counter option for gas-related bloating. It works by breaking up gas bubbles in your stomach and intestines, making them easier to pass. You’ll find it sold under brand names like Gas-X, Mylanta Gas, and Phazyme.
The typical adult dose is 40 to 125 mg taken four times a day, after meals and at bedtime. The maximum is 500 mg in 24 hours. Simethicone is considered very safe because it isn’t absorbed into the bloodstream. It passes through your digestive tract and works only on the gas it contacts. The limitation is that it only helps if your bloating is caused by trapped gas bubbles. It won’t address bloating from constipation, fluid retention, or gut sensitivity.
Digestive Enzymes for Problem Foods
If bloating hits after eating beans, lentils, peas, peppers, onions, or other high-fiber foods, an enzyme supplement called alpha-galactosidase (sold as Beano) can help. These foods contain complex carbohydrates your body can’t break down on its own. The undigested carbs travel to your colon, where bacteria ferment them and produce hydrogen and methane gas.
Alpha-galactosidase breaks down those complex carbohydrates in your small intestine before they reach the colon, reducing the amount of gas bacteria can produce. You take it with your first bite of the problem food, not after symptoms start. For lactose-related bloating, lactase supplements work the same way but target the milk sugar your body struggles to digest.
Peppermint Oil as a Muscle Relaxant
Enteric-coated peppermint oil capsules relax the smooth muscle lining your intestines, which can ease the cramping and pressure that make bloating feel worse. The enteric coating is important because it prevents the capsule from dissolving in your stomach (which can cause heartburn) and delivers the oil to your intestines where it’s needed.
The standard dose for adults is one capsule three times a day, increasing to two capsules three times a day if needed. Peppermint oil is available without a prescription and is commonly recommended in the UK by the NHS for IBS-related symptoms. It works best for bloating that comes with abdominal cramping or spasm rather than bloating from gas alone.
Bismuth Subsalicylate for Odorous Gas
Bismuth subsalicylate, the active ingredient in Pepto-Bismol, has a specific niche: reducing foul-smelling gas. Hydrogen sulfide is one of the main compounds responsible for flatus odor. In a study of healthy subjects who took 524 mg four times daily for three to seven days, bismuth subsalicylate reduced hydrogen sulfide release from stool samples by more than 95%. It binds directly to hydrogen sulfide, forming an insoluble compound that neutralizes it. This won’t reduce the volume of gas or the sensation of bloating, but if odor is part of your problem, it’s remarkably effective.
Antispasmodics for Post-Meal Bloating
For bloating that comes with crampy abdominal pain after eating, prescription antispasmodics can help. These medications slow the involuntary muscle contractions in your gut that create that tight, pressurized feeling. They’re typically used on an as-needed basis rather than daily.
Common side effects include dry mouth, dizziness, and blurry vision, all related to how these drugs work on the nervous system. These side effects are the main reason antispasmodics aren’t used more broadly. They’re best suited for people who get predictable, painful bloating episodes and want something to take before or during a flare.
Prescription Options for IBS-Related Bloating
When bloating is part of a larger pattern of IBS symptoms, several prescription medications can help by treating the underlying condition rather than just the gas.
Bloating With Constipation (IBS-C)
Medications that increase fluid secretion into the intestines can relieve both constipation and the bloating that comes with it. The American College of Gastroenterology gives a strong recommendation to one class of these drugs (chloride channel activators) for IBS-C, noting significant improvements in bloating, abdominal pain, straining, and stool frequency in clinical trials. A low FODMAP diet also receives a conditional recommendation, with most trials showing benefits for both pain and bloating.
Bloating With Diarrhea (IBS-D)
Rifaximin, a gut-targeted antibiotic, is FDA-approved for IBS with diarrhea. The standard course is a 14-day treatment. Unlike regular antibiotics, rifaximin stays almost entirely in the gut and targets the bacterial overgrowth that can drive gas production and bloating in IBS-D. Some people need repeat courses if symptoms return.
Medications That Target Gut-Brain Signaling
Low-dose antidepressants are sometimes prescribed not for mood but for their effect on how the gut communicates with the brain. Some people experience bloating not because they produce more gas than normal, but because their intestines are hypersensitive to normal amounts of gas. Tricyclic antidepressants are the class most commonly tried for this, though the evidence that they reduce visceral sensitivity is limited and inconsistent. SSRIs appear to have no major impact on visceral sensitivity in patients with functional gut disorders.
What Likely Won’t Help
Probiotics are frequently marketed for bloating, but the evidence is weak. The ACG actually recommends against probiotics for global IBS symptoms. In pooled analyses, no category of probiotic demonstrated clear benefits for bloating specifically. One strain, Bifidobacterium infantis 35624, showed a small improvement in bloating and distension in a meta-analysis, but the effect size was modest.
Activated charcoal is another popular remedy with little clinical support for bloating. While it can bind some gas in laboratory settings, there’s limited evidence it makes a meaningful difference in the digestive tract.
Matching the Medication to the Cause
The most effective approach depends on your bloating pattern. If it’s occasional and tied to specific meals, simethicone, digestive enzymes, or peppermint oil are reasonable starting points. If bloating is constant, worsening, or paired with changes in bowel habits, the prescription options that address constipation, diarrhea, or gut sensitivity are more likely to provide lasting relief. Keeping a food and symptom diary for a week or two can help you and your doctor identify the pattern and pick the right medication faster.

