It is possible to fart while sleeping. Farting is a way for the body to expel excess gas from the gastrointestinal tract and is a normal physiological phenomenon. At night when you sleep, the peristalsis of the gastrointestinal tract slows down but still exists, so you will also expel gas by farting, but usually people are not aware of it or remember it. Normal people fart from a dozen to several dozen times a day in order to discharge the excess gas in the stomach and intestines. The bowel movements are faster during the day, so farting usually occurs during the day, but farting can also occur at night after falling asleep. If the patient farts more often and smells bad, it is recommended to go to a regular hospital in time, after clarifying the cause of the disease, under the guidance of the doctor to carry out targeted treatment, so as to avoid delays in the condition, resulting in adverse consequences.