Heartburn (acid reflux) is always uncomfortable, but it’s especially troublesome when it happens at night and affects your sleep.
Acid reflux occurs when acid leaves the stomach and rises in the esophagus (food pipe). This can happen when the band of muscle at the end of the esophagus (the sphincter) isn’t functioning as it should. Symptoms of acid reflux include a burning sensation, chest pain, and trouble swallowing.
Many people have heartburn occasionally, but if you experience it regularly, you may have gastroesophageal reflux disease (GERD).
According to the American College of Gastroenterology (ACG), lying down is a major factor contributing to heartburn. If you experience acid reflux at night, the ACG recommends sitting up or keeping your head elevated in bed. They also suggest waiting 2 to 3 hours after eating before lying down.
Certain foods

Some foods are more likely to cause acid reflux than others. Avoiding these foods near bedtime can reduce your chances of heartburn at night.
The ACG lists the following foods as “trigger foods” for acid reflux:
- chocolate
- greasy or spicy foods
- coffee
- peppermint
- tomato products
- alcohol
Medication side effects
Certain medications may cause acid reflux or make your symptoms worse. This is usually due to how they affect pressure or inflammation in your esophagus.
According to the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), the following medications may increase your risk of acid influx:
- nonsteroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen
- benzodiazepines, which are sedatives that relieve anxiety
- calcium channel blockers, used to treat high blood pressure
- some asthma medications
- tricyclic antidepressants
A 2017 review notes that other medications linked with acid reflux include:
- long-term aspirin use
- birth control pills
- hormone replacement therapy (HRT)
- anticholinergic medicines used to treat can treat obstructive pulmonary disease (COPD), gut disorders, and Parkinson’s disease, among other uses
Asthma
There is a strong link between asthma and acid reflux. A 2022 review reports that many people with asthma experience acid reflux.
The Asthma and Allergy Foundation of America (AAFA) reports that GERD is more common in people with asthma — and that GERD can activate asthma symptoms.
Experts believe that reflux may activate asthma symptoms, like wheezing or trouble breathing, when your stomach acid irritates the nerve endings in your esophagus. Conversely, asthma may activate acid reflux when breathing difficulties affect your esophageal sphincter.
People who take medication for GERD sometimes notice improvements in their asthma symptoms too. The researchers report that proton pump inhibitors are considered the primary treatment for GERD in people with asthma.
Research also suggests that asthma medications may lead to acid reflux.
According to the AAFA, asthma medications like prednisone and albuterol can impair how well the lower esophagus sphincter contracts, allowing stomach acid to escape and causing heartburn. Beta-agonists may also reduce the strength of this sphincter, leading to reflux.
Hernia
A hiatal hernia is when a small section of your stomach protrudes through a gap in your diaphragm toward your chest. Hiatal hernias typically have no symptoms except for GERD.
The diaphragm helps to create space between your esophagus from your stomach. When this structure is not intact, it can reduce the pressure your esophagus sphincter can withstand. This can cause acid reflux.
Treatment usually aims to relieve GERD symptoms through medication and lifestyle factors. A doctor may recommend surgery if other treatments haven’t had the desired effect.