Gas pain is the cramping, stretching or pressure you feel when gas builds up faster than your gut moves it along. Because the gut's nerves are sparse, the pain is diffuse and hard to pin down[1]. It can show up under your ribs, in your chest, back or lower belly. Staying upright and moving usually helps it pass[2][3].
Most trapped gas is harmless, even when it hurts a lot. MedlinePlus notes that gas can cause very bad abdominal pain, while serious problems such as early appendicitis may cause only mild pain[4]. That is why this guide covers where gas pain shows up, what moves it, and the signs that point to something else.
Get medical help promptly if you have chest pressure or tightness with shortness of breath, sweating or pain spreading to your arm, jaw or back[5][6]; you cannot pass gas or stool and keep vomiting[7]; or your belly is rigid and tender, or there is blood in your stool[4]. These need a clinician, not home remedies. For chest symptoms, call 911.
Where does gas pain hurt?
Trapped gas can hurt almost anywhere in the abdomen, and the pain often moves as the gas moves. Pain from stretched gut walls is typically felt away from its source and is hard to localize[1]. Pain that spreads across more than half of your belly is more typical of gas or indigestion, while pain that stays in one spot points more toward a specific organ[4].
| Where you feel it | What gas pain is usually like | Also consider |
|---|---|---|
| Upper belly, under the ribs | Pressure and fullness (bloating)[8] | Gallbladder attack: upper right pain lasting hours, often at night after a heavy meal[9] |
| Chest | Pain referred from the gut, hard to pin down[1] | Heart attack: chest heaviness with breathlessness, sweating or arm or jaw pain[6] |
| Back or side | Referred ache alongside bloating[1] | Kidney stone: sharp waves of pain in the back, side or groin, sometimes with blood in the urine[10] |
| Around the navel or lower right | Cramp-like pain, sometimes followed by diarrhea[4] | Appendicitis: pain that starts near the belly button, moves lower right and worsens over hours[11] |
| Lower belly | Cramping, often with constipation[12] | Constipation, or a blockage if you cannot pass gas at all[7] |
Gas pain under the ribs
Gas pain under the ribs usually comes with a full, tight feeling. Clinicians describe bloating as a sense of trapped gas, pressure and fullness[8]. Pain under the right ribs that lasts several hours, especially with fever, vomiting or dark urine, fits a gallbladder attack better than gas[9].
Can gas cause chest pain?
It can, because pain from the gut is often felt away from where it starts[1]. But you cannot safely tell it apart from heart pain at home.
The 2021 chest pain guideline from the American Heart Association and American College of Cardiology treats pain, pressure or tightness in the chest, shoulders, arms, neck, back, upper abdomen or jaw as possible heart symptoms[5]. It advises calling 9-1-1 for acute chest pain[5]. NHLBI adds that heart attacks do not always start with crushing pain and can come and go over hours[6].
Gas pain in the back and shoulder
Gut pain often shows up in the back because visceral pain is referred to other body areas[1]. Shoulder pain is different: MedlinePlus lists chest, neck or shoulder pain with belly pain, and pain between the shoulder blades with nausea, as reasons to get help right away[4]. Do not put those down to gas.
Lower belly gas pain
Lower belly cramps are a common form of gas pain. Cramp-like pain is likely to be due to gas and bloating and may be followed by diarrhea[4]. Constipation is one of the conditions NIDDK links to more gas symptoms[12], and our guide to bloating covers the overlap.
What does trapped gas feel like?
Trapped gas usually feels like a mix of pressure, cramping and fullness. Common symptoms include[12][8]:
- bloating, a feeling of fullness or swelling;
- distention, a visibly larger belly (only about half of people with bloating have it)[12];
- cramp-like belly pain[4];
- burping and passing gas, which are normal in moderation.
Gurgling often comes along too; our guide to stomach growling explains why.
Why does trapped gas hurt so much?
Often it is not the amount of gas but how your gut handles and senses it. NIDDK notes that some people have excess gas, while others feel severe symptoms with a normal amount[13].
Lab studies show this directly. When researchers infused the same gas load into the small intestine, 18 of 20 people with irritable bowel syndrome (IBS) developed gas retention, symptoms or distension, compared with 4 of 20 healthy volunteers[14]. Their gas volume before the test appeared normal[14].
The volumes involved are larger than most people expect. Healthy volunteers eating their usual diet plus baked beans passed 476 to 1,491 ml of gas a day, a median of 705 ml[15]. A European consensus lists heightened gut sensitivity, slow or disordered gut movement, a muscle reflex called abdomino-phrenic dyssynergia, and microbiome imbalance as drivers of bloating[16]. In that reflex, the diaphragm pushes down and the belly wall relaxes, so the abdomen sticks out[17].
What causes trapped gas?
Gas in your digestive tract comes from two main sources: air you swallow and gas made by gut bacteria fermenting carbohydrates you did not fully digest[12]. You swallow more air when you chew gum, suck hard candy, drink fizzy drinks, eat fast, smoke or wear loose dentures[12]. Some people swallow so much air that they belch it out before it reaches the stomach[12], a pattern our guide to why you burp so much covers.
Which gut microbes make the gas?
Gut microbes produce carbon dioxide, hydrogen, methane and hydrogen sulfide, and the type, amount and concentration of these gases can trigger or relieve symptoms[18]. Methane-making microbes use hydrogen from fermentation; methane shows up in 30% to 50% of healthy adults[19]. Methane is linked to slower transit and constipation, though cause and effect is not proven in people[19]. Sulfur in flatus is a likely source of its smell[12], covered in our guide to why farts smell.
Diet is the main lever that changes which gases your microbes make[18]. When volunteers switched to a fiber-free liquid diet for 48 hours, their daily gas fell to a median of 214 ml and hydrogen production nearly stopped[15].
Conditions that cause more gas symptoms
NIDDK lists these health problems as causes of extra gas or gas symptoms[12]:
- IBS and other gut-brain disorders;
- lactose intolerance and fructose intolerance;
- small intestinal bacterial overgrowth (SIBO);
- celiac disease, constipation, GERD and gastroparesis;
- a blockage in the gut, including from some cancers.
How do you get trapped gas out of your system fast?
The best-supported way to relieve gas pain fast is to get upright and move gently. These steps are ordered from the strongest evidence to the weakest:
- Sit or stand up. In a crossover study of eight healthy adults, about 13 ml of an infused gas load was retained at 60 minutes upright versus 146 ml lying flat[2].
- Walk or move lightly. In eight people with bloating, light pedaling cut the share of gas retained from 45% to 24% and lowered symptom scores[3].
- Try gentle abdominal massage. A 2025 meta-analysis of 25 trials found massage improved constipation and its pain[20]. Those trials studied constipation, not one-off gas pain, so treat this as a reasonable try rather than a proven fix.
- Consider simethicone. In two trials of about 480 to 490 adults with diarrhea and gas cramps, simethicone plus loperamide relieved gas discomfort faster than either alone or placebo[21][22]. We found no strong trial of simethicone alone for trapped gas without diarrhea.
- Stop adding air. Skip carbonated beverages, straws and gum until the pain settles[23].
What position relieves gas fast?
Upright beats lying flat for moving gas[2]. We found no trials of specific poses such as knees-to-chest or child's pose, so use whichever upright or gentle movement feels comfortable. A warm heating pad is a comfort measure; it does not remove gas.
What can be mistaken for gas pain in the stomach?
Gas pain is typically cramp-like or spread across a wide area, while pain that stays in one spot is more likely to come from an organ such as the appendix or gallbladder[4]. Pain that keeps building, or comes with fever, vomiting or breathlessness, needs a closer look.
| Condition | Clues that point away from gas |
|---|---|
| Heart attack | Chest heaviness with shortness of breath, sweating, unusual tiredness, nausea, or arm, jaw or back pain; call 911[6] |
| Appendicitis | Pain near the belly button moving lower right, worse with coughing or moving, worsening over hours, with fever or vomiting[11] |
| Gallbladder attack | Upper right pain for several hours, often at night after a heavy meal; fever, tea-colored urine or pale stools[9] |
| Kidney stone | Sharp pain in waves in the back, side or groin; blood in urine, pain when urinating[10] |
| Bowel obstruction | Swelling that will not go down, cramping, vomiting and no gas or stool passing[7] |
How to stop gas pain from coming back
Prevention starts with finding your personal triggers. NIDDK suggests eating smaller, more frequent meals, eating slowly while seated, and cutting back on foods that set off your symptoms[23]. Common culprits include beans and lentils, broccoli and cauliflower, high-fructose or lactose-rich foods, and sugar-free products sweetened with "-ol" sugar alcohols[23].
- Keep a food and symptom diary. It helps you and your doctor spot triggers and tell excess gas from extra sensitivity[24].
- Ask about a low FODMAP diet if you have IBS. In a meta-analysis, it reduced abdominal pain and bloating in randomized trials[25]. The AGA advises doing it with a GI dietitian[26].
- Ask about peppermint oil for IBS. In 10 trials with 1,030 people, it eased abdominal pain more than placebo, though side effects were more common and the evidence quality was very low[27].
- Be cautious with probiotics. The AGA advises against probiotics for bloating and distention[26], while a European consensus lists them as an option[16]. Our guide to probiotics and gas explains why some people feel gassier at first.
When to see a doctor
See a doctor if gas symptoms bother you, change suddenly, or come with abdominal pain, constipation, diarrhea or weight loss[12]. Contact a provider for belly discomfort that lasts a week or longer[4]. Get help right away or call 911 if you[4]:
- have chest, neck or shoulder pain, or trouble breathing;
- have sudden, sharp abdominal pain, or a belly that is rigid and hard;
- cannot pass stool, especially while vomiting;
- vomit blood or have blood in your stool, including black, tarry stool;
- are pregnant or could be pregnant.
Doctors usually start with your history, an exam and sometimes a food diary[24]. The AGA advises imaging and endoscopy only when there are alarm features, recent worsening or abnormal exam findings[26].
This article is for general educational purposes and is not medical advice. It cannot tell you whether your pain is gas, and chest pain always needs urgent assessment. Talk to a qualified healthcare professional before starting simethicone, peppermint oil, probiotics or a restrictive diet, particularly if you are pregnant, immunocompromised, taking prescription medication, or managing a diagnosed condition.
Frequently Asked Questions
How long does painful trapped gas last?
We found no study that timed a single episode of trapped gas. In lab studies, gas cleared faster within the first hour when people stayed upright or did light exercise. MedlinePlus treats cramp-like belly pain as more worrying when it lasts more than 24 hours, comes more often, or arrives with a fever or rectal bleeding, and advises contacting a provider for abdominal discomfort that lasts a week or longer.
What drink kills gas?
No drink destroys gas already in your gut. What you drink mainly changes how much new gas you add. NIDDK lists fizzy drinks and drinking through a straw as ways to swallow extra air, and drinks high in fructose or lactose as common triggers for people sensitive to them. Plain water or a warm, non-carbonated drink avoids adding more.
Does Tums help with gas?
Tums is an antacid. MedlinePlus says antacids may help when pain sits high in the abdomen after meals, especially with heartburn or indigestion, which can feel like upper gas pain. Antacids are not a treatment for gas lower in the intestines. Simethicone is the over-the-counter ingredient sold for gas; in trials it worked best combined with loperamide for diarrhea with gas cramps.
How do you flush gas out of your body?
Gas leaves by burping or passing it, and movement speeds the trip. In a small crossover study, people cleared an infused gas load faster sitting upright than lying flat (72% versus 49% cleared at 60 minutes). In people with bloating, light pedaling cut the share of gas retained from 45% to 24%. A short walk is the practical version.
Why is gas pain worse when lying down or at night?
Lying flat slows gas transit. When eight volunteers had the same gas load infused, about 146 ml was retained at 60 minutes lying down versus 13 ml upright. The gut also produces less flatus during sleep (a median 16 ml per hour versus 34 ml per hour in the day), so gas from an evening meal may linger. Sitting up or getting up to walk can help it move.
Can you push on your stomach to relieve gas?
Gentle pressure is the idea behind abdominal massage. A 2025 meta-analysis of 25 trials found massage improved constipation and the pain that comes with it, with few reported side effects, but those trials did not test one-off trapped gas. Keep the pressure gentle and stop if it hurts. A belly that is rigid, hard or very tender is a reason to get medical help right away, not to massage.
What course does gas take through your stomach and gut?
Swallowed air either comes back up as a burp or moves on from the stomach into the intestines and leaves through the anus. Other gas is made in the large intestine, where bacteria ferment carbohydrates your stomach and small intestine did not fully digest. NIDDK notes that people with IBS and other gut-brain disorders can feel more pain or move gas differently along the way.
How many times a day is it normal to pass gas?
NIDDK cites an average of 8 to 14 times a day and considers up to 25 times a day normal. People also belch up to about 30 times a day. In a study using rectal catheters, healthy volunteers passed a median of 705 ml of gas in 24 hours, with more after meals.
How do you get relief from gas pain during pregnancy?
Gas is common, but belly pain in pregnancy needs a lower threshold for care. MedlinePlus lists being pregnant, or possibly pregnant, among the reasons to get medical help right away for abdominal pain. Call your obstetric provider or seek urgent care rather than assuming pregnancy pain is gas, especially if it is severe, one-sided or comes with bleeding.
References
- Gebhart GF, Bielefeldt K. Physiology of Visceral Pain. Comprehensive Physiology. 2016. doi:10.1002/cphy.c150049 ↩
- Dainese R, Serra J, Azpiroz F, Malagelada JR. Influence of body posture on intestinal transit of gas. Gut. 2003;52(7):971-974. doi:10.1136/gut.52.7.971 ↩
- Villoria A, Serra J, Azpiroz F, Malagelada JR. Physical Activity and Intestinal Gas Clearance in Patients with Bloating. The American Journal of Gastroenterology. 2006;101(11):2552-2557. doi:10.1111/j.1572-0241.2006.00873.x ↩
- MedlinePlus. Abdominal pain. MedlinePlus Medical Encyclopedia. 2026. Available at: https://medlineplus.gov/ency/article/003120.htm ↩
- Gulati M, Levy PD, Mukherjee D, et al.. 2021 AHA/ACC/ASE/CHEST/SAEM/SCCT/SCMR Guideline for the Evaluation and Diagnosis of Chest Pain: A Report of the American College of Cardiology/American Heart Association Joint Committee on Clinical Practice Guidelines. Circulation. 2021;144(22). doi:10.1161/CIR.0000000000001029 ↩
- National Heart, Lung, and Blood Institute. Heart Attack: Symptoms. NHLBI Health Topics. 2022. Available at: https://www.nhlbi.nih.gov/health/heart-attack/symptoms ↩
- MedlinePlus. Intestinal obstruction. MedlinePlus Medical Encyclopedia. 2026. Available at: https://medlineplus.gov/ency/article/000260.htm ↩
- Lacy BE, Cangemi D, Vazquez-Roque M. Management of Chronic Abdominal Distension and Bloating. Clinical Gastroenterology and Hepatology. 2021;19(2):219-231.e1. doi:10.1016/j.cgh.2020.03.056 ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gallstones. NIDDK Health Information. 2017. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gallstones/symptoms-causes ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Kidney Stones. NIDDK Health Information. 2017. Available at: https://www.niddk.nih.gov/health-information/urologic-diseases/kidney-stones/symptoms-causes ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Appendicitis. NIDDK Health Information. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/appendicitis/symptoms-causes ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Gas in the Digestive Tract. NIDDK Health Information. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract/symptoms-causes ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Definition & Facts for Gas in the Digestive Tract. NIDDK Health Information. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract/definition-facts ↩
- Serra J, Azpiroz F, Malagelada JR. Impaired transit and tolerance of intestinal gas in the irritable bowel syndrome. Gut. 2001;48(1):14-19. doi:10.1136/gut.48.1.14 ↩
- Tomlin J, Lowis C, Read NW. Investigation of normal flatus production in healthy volunteers. Gut. 1991;32(6):665-669. doi:10.1136/gut.32.6.665 ↩
- Melchior C, Hammer H, Bor S, et al.. European Consensus on Functional Bloating and Abdominal Distension—An ESNM/UEG Recommendations for Clinical Management. United European Gastroenterology Journal. 2025;13(9):1613-1651. doi:10.1002/ueg2.70098 ↩
- Damianos JA, Tomar SK, Azpiroz F, Barba E. Abdominophrenic Dyssynergia: A Narrative Review. American Journal of Gastroenterology. 2022;118(1):41-45. doi:10.14309/ajg.0000000000002044 ↩
- Kalantar-Zadeh K, Berean KJ, Burgell RE, Muir JG, Gibson PR. Intestinal gases: influence on gut disorders and the role of dietary manipulations. Nature Reviews Gastroenterology & Hepatology. 2019;16(12):733-747. doi:10.1038/s41575-019-0193-z ↩
- Triantafyllou K, Chang C, Pimentel M. Methanogens, Methane and Gastrointestinal Motility. Journal of Neurogastroenterology and Motility. 2014;20(1):31-40. doi:10.5056/jnm.2014.20.1.31 ↩
- Lin Z, Wang D, Fei X, Han D, Liu Z. Effect of Abdominal Massage on Constipation: A Systematic Review and Meta-Analysis of Randomized Controlled Studies. Complementary Medicine Research. 2025;32(6):522-541. doi:10.1159/000548699 ↩
- Kaplan MA, Prior MJ, Ash RR, McKonly KI, Helzner EC, Nelson EB. Loperamide-Simethicone vs Loperamide Alone, Simethicone Alone, and Placebo in the Treatment of Acute Diarrhea With Gas-Related Abdominal Discomfort: A Randomized Controlled Trial. Archives of Family Medicine. 1999;8(3):243-248. doi:10.1001/archfami.8.3.243 ↩
- Hanauer SB, DuPont HL, Cooper KM, Laudadio C. Randomized, double-blind, placebo-controlled clinical trial of loperamide plus simethicone versus loperamide alone and simethicone alone in the treatment of acute diarrhea with gas-related abdominal discomfort. Current Medical Research and Opinion. 2007;23(5):1033-1043. doi:10.1185/030079907x182176 ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Treatment for Gas in the Digestive Tract. NIDDK Health Information. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract/treatment ↩
- National Institute of Diabetes and Digestive and Kidney Diseases. Diagnosis of Gas in the Digestive Tract. NIDDK Health Information. 2021. Available at: https://www.niddk.nih.gov/health-information/digestive-diseases/gas-digestive-tract/diagnosis ↩
- Marsh A, Eslick EM, Eslick GD. Does a diet low in FODMAPs reduce symptoms associated with functional gastrointestinal disorders? A comprehensive systematic review and meta-analysis. European Journal of Nutrition. 2015;55(3):897-906. doi:10.1007/s00394-015-0922-1 ↩
- Moshiree B, Drossman D, Shaukat A. AGA Clinical Practice Update on Evaluation and Management of Belching, Abdominal Bloating, and Distention: Expert Review. Gastroenterology. 2023;165(3):791-800.e3. doi:10.1053/j.gastro.2023.04.039 ↩
- Ingrosso MR, Ianiro G, Nee J, et al.. Systematic review and meta-analysis: efficacy of peppermint oil in irritable bowel syndrome. Alimentary Pharmacology & Therapeutics. 2022;56(6):932-941. doi:10.1111/apt.17179 ↩