SymptomDigestive system

Gas Symptoms: Trapped Gas Pain, Bloating and How to Get Relief

Gas symptoms are bloating, belching, passing wind and crampy or sharp belly pain caused by air and gas in the digestive tract. Gas comes from swallowed air and from gut bacteria fermenting food in the colon. It is normal: most people pass gas 10 to 20 times a day. Trapped gas can hurt surprisingly sharply, but it moves around and eases when you pass wind. Gas with weight loss, blood in the stool or severe pain needs a doctor.

Also called: Intestinal gas, trapped gas, gas pain, wind, flatulence, bloating

At a glance

What it is
Air and gas in the stomach and bowel, causing bloating, belching, wind and cramps.
How common
Universal. Passing gas 10 to 20 times a day is normal.
Common causes
Swallowed air, beans, cabbage family vegetables, onions, dairy, sugar alcohols and fizzy drinks.
Gut causes to check
IBS, lactose intolerance, celiac disease, bacterial overgrowth, constipation.
Relief
Walking, eating slowly, cutting trigger foods, simethicone and other over-the-counter aids.

When to get help

Call 911 or go to the ER

  • Severe belly pain with a swollen, hard abdomen and vomiting, especially if you cannot pass gas or stool (possible bowel obstruction)
  • "Gas pain" in the chest with pressure spreading to the arm, jaw or back, sweating or breathlessness: treat it as a possible heart attack and call 911
  • Vomiting blood or passing black, tarry stools

See a doctor within a day or two

  • Bloating and belly pain with fever above 38 °C (100.4 °F)
  • Upper right belly pain after fatty meals that lasts more than a few hours (possible gallstones)
  • Pain that is constant and getting worse rather than coming and going

Book a routine appointment

  • Gas and bloating with weight loss, blood in the stool, anemia or a change in bowel habit lasting more than 3 weeks
  • Persistent bloating in a woman over 50, especially with early fullness or pelvic pain (to exclude ovarian cancer)
  • Gas and diarrhea after dairy or wheat that keep recurring
  • New, persistent gas and bloating after age 45

Usually safe to manage at home

  • Occasional bloating, burping or wind after meals, especially after beans, vegetables or fizzy drinks
  • Short bursts of sharp gas pain that ease after passing wind or a bowel movement

What gas symptoms feel like

Gas in the digestive tract shows up in four main ways:

  • Belching (burping): swallowed air coming back up from the stomach, mostly during or after meals. See belching.
  • Bloating: a feeling of fullness, pressure or tightness in the belly. Some people also see distension, a visible swelling that grows through the day and settles overnight. See abdominal bloating.
  • Passing wind: gas released from the rectum. Smell comes from small amounts of sulfur gases. See flatulence.
  • Gas pain: cramping, or sudden sharp, stabbing pains that move around the belly.

Trapped gas pain: where you feel it

Gas that collects in a bend of the bowel stretches the wall and can cause surprisingly sharp pain. The location can mimic other problems:

Where gas collectsWhere you feel itCan be mistaken for
Upper left colon (splenic flexure)Upper left belly, lower left chestHeart pain
Upper right colon (hepatic flexure)Upper right belly, under the ribsGallbladder pain
Lower bowelLower belly, either sideAppendicitis, ovarian pain
StomachUpper middle belly, with burpingIndigestion, reflux

Clues that it is gas: the pain comes in short bursts, moves around, is linked to meals, and eases after burping, passing wind or a bowel movement. Pain that is constant, worsening, or comes with fever, vomiting or breathlessness is not typical of gas. Never assume chest pain is gas if it feels like pressure or spreads to the arm or jaw.

Causes of intestinal gas and bloating

Swallowing air

  • eating or drinking quickly
  • chewing gum, sucking hard candy, drinking through straws
  • smoking
  • poorly fitting dentures
  • anxiety, which can cause habitual air swallowing and repeated belching

Foods

Food groupExamplesWhy they cause gas
LegumesBeans, lentils, chickpeasContain sugars humans cannot digest
Cabbage familyBroccoli, cabbage, Brussels sprouts, cauliflowerRaffinose and sulfur compounds
Onions, garlic, wheatBread, pasta, onionsFructans
DairyMilk, ice cream, soft cheeseLactose, if lactase is low
Fruit and sweetenersApples, pears, honey, sorbitol, xylitolFructose and sugar alcohols
Fizzy drinks and beerSoda, sparkling waterCarbon dioxide
Fiber supplementsPsyllium, inulinFermented by bacteria, especially when started suddenly

Digestive conditions

  • Irritable bowel syndrome: bloating, cramps and altered bowel habits. The gut is more sensitive to normal amounts of gas.
  • Lactose intolerance: gas, bloating and diarrhea 30 minutes to 2 hours after dairy.
  • Celiac disease: an immune reaction to gluten causing bloating, diarrhea, weight loss and anemia.
  • Small intestinal bacterial overgrowth: bacteria in the small intestine ferment food early, causing bloating soon after meals.
  • Constipation: stool held in the colon keeps fermenting and traps gas behind it.
  • Gastroparesis and functional dyspepsia: slow stomach emptying with early fullness and upper belly bloating.
  • Less often: pancreatic insufficiency, inflammatory bowel disease, bowel obstruction and ovarian or bowel cancer.

How doctors find the cause

Most gas needs no tests. A doctor will ask about your diet, bowel habits, weight, family history and any warning signs, and examine your belly. If symptoms persist or red flags are present, tests may include:

  • blood tests for anemia, celiac disease and inflammation
  • a stool test for infection or inflammation
  • a hydrogen breath test for lactose intolerance or bacterial overgrowth
  • colonoscopy if you are over 45, have bleeding or weight loss, or have a family history of bowel cancer
  • an ultrasound or CT scan for persistent bloating or a suspected mass

Relief for gas and trapped gas

Quick relief for trapped gas

  • Walk for 10 to 15 minutes. Movement helps gas pass through.
  • Change position: lying on your left side, or knees to chest, can help gas move.
  • Massage the belly gently in a clockwise direction.
  • Apply warmth: a heating pad or warm bath relaxes the bowel.
  • Simethicone (over the counter) breaks up gas bubbles. Follow the label dose.

Preventing gas

  • Eat slowly and avoid gum, straws and fizzy drinks.
  • Identify trigger foods with a food and symptom diary. A low-FODMAP diet, ideally guided by a dietitian, helps many people with IBS.
  • Increase fiber gradually over a few weeks rather than all at once.
  • Use enzyme aids: alpha-galactosidase taken with bean or vegetable meals, and lactase tablets with dairy.
  • Treat constipation with fluids, fiber and exercise.

Frequently asked questions

What are the symptoms of trapped gas?

Trapped gas causes bloating, a tight or full belly, cramps and sudden sharp pains that move around. The pain may be felt high under the ribs or even in the lower chest. It usually eases after burping, passing wind or a bowel movement. Constant or worsening pain is not typical of gas.

Can gas cause chest pain?

Yes. Gas trapped in the upper left colon or stomach can cause sharp pain in the lower chest. But chest pressure, pain spreading to the arm, jaw or back, sweating or breathlessness can be a heart attack. Call 911 rather than assuming it is gas.

How do I get rid of gas pain fast?

Walk for 10 to 15 minutes, lie on your left side or bring your knees to your chest, massage your belly clockwise and apply gentle warmth. Over-the-counter simethicone can help. Avoid fizzy drinks and gum while you recover.

Is it normal to have a lot of intestinal gas?

Yes. Passing gas 10 to 20 times a day is normal, and more after high-fiber or bean-rich meals. Excess gas is worth discussing with a doctor if it comes with pain, diarrhea, weight loss, blood in the stool or a lasting change in bowel habits.

What foods cause the most gas?

Beans and lentils, cabbage family vegetables, onions and garlic, wheat, dairy in people with lactose intolerance, apples and pears, sugar-free products with sorbitol or xylitol, and fizzy drinks cause the most gas. Sensitivity varies, so a food diary helps identify personal triggers.

Sources

This guide was written from current patient and clinical guidance, including:

  • National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK): Symptoms and causes of gas in the digestive tract
  • MedlinePlus: Gas
  • American College of Gastroenterology: Belching, bloating and flatulence
  • Mayo Clinic: Gas and gas pains
  • NHS: Bloating