Why You Have Morning Gas and Fart in Your Sleep

Morning gas and farting in your sleep can have a few different causes. You might fart at night or first thing in the morning because of normal variations in your anal sphincter, the ring of muscle that keeps the anus shut. Your anal sphincter is more relaxed during sleep and will spontaneously relax as you awaken, which makes it easier for gas to escape.

Other factors like older age, diet, obesity, gastrointestinal problems, rectal injury, medications, and even the position of your body in bed can also contribute to night farts and morning gas.

This article will help you understand why you pass gas so much in the morning or overnight. It also offers tips and advice on how to reduce morning and nighttime flatulence and explains why you might experience morning bloat.

An illustration with information about preventing morning and nighttime gas

Illustration. by Laura Porter for Verywell Health

Causes of Morning Gas

The causes of morning gas are the same as they are for all farts, also known as flatus. Gas enters your digestive tract when you swallow air while eating, or as acids and bacteria in your digestive system break down food and drink.

Throughout the night, healthy bacteria work in your gut to digest food. The process of creating gas continues as you sleep, which can cause you to wake up with morning gas.

When you eat food, it also stimulates the digestive system muscle activity that's suppressed when you sleep. Getting up in the morning and starting your day may spur a bout of morning farts, especially if you have a routine morning bowel movement.

In some cases, medical conditions may contribute to how much gas your digestive system produces. These conditions include:

Morning Gas and Inability to Belch

In 2019, researchers described a digestive syndrome called retrograde cricopharyngeus dysfunction (R-CPD) in which people are unable to belch. When air can't escape through the esophagus, it instead travels through the intestinal tract and eventually escapes as flatulence. This can cause excess morning gas. Botulinum toxin (Botox) injections in muscles of the throat have proven effective in relieving R-CPD symptoms.

Medications That Cause Gas

Medications and vitamin supplements can cause gas, too. Some of the more commonly used over-the-counter products that can cause gas include:

Facts About Gas and Farting

The average person produces between 0.6 and 1.8 liters of gas per day. It leaves the body either as a burp or fart, The average person farts 12 to 25 times a day.

Why You Fart When You Sleep

It may seem like you have more morning gas, but experts say that's not always true. You're less likely to swallow air while sleeping, but you may actually be more likely to fart than you are while you're awake.

This may have to do with the body's metabolic state while sleeping, although it remains poorly understood. It's also likely related to the way your anal sphincter works, its level of relaxation, and the pressures found inside your rectum that help you to expel gas and feces (poop).

Sometimes, the anal and rectal pressures associated with farting and passing feces are assessed with an anorectal manometer test, often used when treating bowel movement difficulties in children.

The sphincter controls your ability to pass gas, which relies on specific reflexes and messages from the nervous system. One, called the coloanal reflex, is at work when you fart because it allows for both the internal and external anal sphincter to relax in response to pressure waves in the rectum.

Another, called the rectoanal inhibitory reflex (RAIR), allows the internal sphincter to relax but not the external sphincter. This helps with control over gas and bowel movements.

People don't typically lose bowel control when sleeping unless there's an underlying medical reason, but the gas itself may pass. On the other hand, sleep inhibits muscle activity that's involved in these responses, so some people may find they have far more morning gas when they wake up.

Preventing Morning and Nighttime Flatulence

If you're looking to prevent morning gas, consider a few lifestyle changes first. You may want to avoid some of the activities that can introduce gas into your digestive system. These include:

  • Smoking
  • Eating or drinking too quickly
  • Chewing gum
  • Drinking carbonated beverages
  • Wearing dentures that are a poor fit

Avoiding certain foods like beans can help, too. Other foods that lead to gas include:

  • Milk and dairy products
  • Wheat and bran
  • Broccoli, cabbage, and cauliflower
  • Some fruits, including apples and peaches

Exercise also can help to establish healthier bowel habits and less frequent gas.

Over-the-counter medications, including products with simethicone to relieve gas, may also help.

How do I release gas from my stomach?

You may be able to relieve gas with techniques like massaging your belly, drinking peppermint tea, or going for a walk.

Why Am I Bloated in the Morning?

There are a few possible reasons why you might wake up bloated. Trapped gas in your digestive tract can make you feel gassy and bloated and can be painful, too.

This uncomfortable morning feeling often has something to do with what you ate the night before. Food and drinks that cause gas can cause morning bloating, too, especially if consumed late at night.

Other things that can contribute to morning bloating include:

  • High-sodium foods that cause water retention
  • Going to bed right after a meal
  • Eating a large meal before bedtime

If morning bloating is a frequent problem for you, try these tips:

  • Avoid gas-causing foods, especially right before bed 
  • Eat smaller meals 
  • Avoid eating right before bed
  • Eat low-sodium foods
  • Drink herbal tea containing ginger or ginseng 
  • Take a digestive enzyme
  • Get plenty of exercise

If your morning bloating persists, you may need to see your healthcare provider. It is possible that a medical condition or a medication you're taking could be causing your symptoms. 

Why is my face bloated in the morning?

A bloated face can happen alongside abdominal bloating. Fluid retention from eating high-sodium foods or drinking alcohol can cause this, but underlying medical conditions can, too. If this happens more than occasionally, see your healthcare provider so they can find the cause.

Summary

It's quite common to need to fart in the morning, and the causes are typically routine too. The digestive process itself generates gas, along with the air that you might swallow while eating or drinking.

In most cases, morning gas is a function of the way the body's digestive tract works. While you can still fart in your sleep, the act of waking up, starting your day, and your normal bowel routine may all contribute to your morning gas.

Morning gas can be reduced with lifestyle and diet changes. You also may want to avoid habits that contribute to the amount of air you swallow, like smoking, or try over-the-counter gas relief products.

11 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & causes of gas in the digestive tract.

  2. Nocera F, Angehrn F, von Flüe M, Steinemann DC. Optimising functional outcomes in rectal cancer surgery. Langenbecks Arch Surg. 2021 Mar;406(2):233-250. doi:10.1007/s00423-020-01937-5.

  3. Hoesli RC, Wingo ML, Bastian RW. The long-term efficacy of botulinum toxin injection to treat retrograde cricopharyngeus dysfunction. OTO Open. 2020 Jun 29;4(2):2473974X20938342. doi:10.1177/2473974X20938342. 

  4. Penn Medicine Lancaster. Medicines or vitamins that can cause gas, bloating, or burping.

  5. Gastrointestinal Society. Intestinal gas.

  6. Shukla C, Basheer R. Metabolic signals in sleep regulation: recent insightsNat Sci Sleep. 2016;8:9–20. doi:10.2147/NSS.S62365

  7. Carrington EV, Brokjaer A, Craven H, Zarate N, Horrocks EJ, Palit S, et al. Traditional measures of normal anal sphincter function using high-resolution anorectal manometry (HRAM) in 115 healthy volunteers. Neurogastroenterol Motil. 2014 May;26(5):625-35. doi:10.1111/nmo.12307.

  8. Huizinga JD, Liu L, Barbier A, Chen JH. Distal Colon Motor Coordination: The Role of the Coloanal Reflex and the Rectoanal Inhibitory Reflex in Sampling, Flatulence, and Defecation. Front Med (Lausanne). 2021 Sep 6;8:720558. doi:10.3389/fmed.2021.

  9. Peng AW, Juraschek SP, Appel LJ, Miller ER 3rd, Mueller NT. Effects of the DASH diet and sodium intake on bloating: Results from the DASH-Sodium Trial. Am J Gastroenterol. 2019;114(7):1109-1115. doi:10.14309/ajg.0000000000000283

  10. Fifi AC, Axelrod CH, Chakraborty P, Saps M. Herbs and spices in the treatment of functional gastrointestinal disorders: A review of clinical trials. Nutrients. 2018;10(11):1715. doi:10.3390/nu10111715

  11. Swami OC, Shah NJ. Functional dyspepsia and the role of digestive enzymes supplement in its therapy. Int J Basic Clin Pharmacol. 2017;6(5):1035-41. doi:10.18203/2319-2003.ijbcp20171653

Brandon Peters, M.D.

By Brandon Peters, MD
Dr. Peters is a board-certified neurologist and sleep medicine specialist and is a fellow of the American Academy of Sleep Medicine.