You lie down to sleep after dinner, and a burning feeling starts to build in your chest. Maybe you notice a sour taste, or a warm, uncomfortable sensation creeping toward your throat. Heartburn at night is common, and it often happens because lying down makes it easier for stomach acid to flow back into the esophagus.
Eating too close to bedtime, having a large evening meal, and consuming trigger foods can make nighttime symptoms worse. Changing meal timing, adjusting your sleeping position, and identifying personal food triggers may help reduce them. Occasional episodes are usually manageable, but frequent heartburn at night may be linked to gastroesophageal reflux disease (GERD).
This guide explains why heartburn gets worse after dark, which foods and habits are most often involved, and how to find relief. You will also learn about sleeping positions, a bedtime routine that may help, and the warning signs that call for medical care. It is general education and cannot diagnose your symptoms.
Why Does Heartburn Happen at Night?
Heartburn can happen at any time of day, but it often feels stronger at night. Mayo Clinic notes that heartburn usually occurs after eating and may occur at night, and that the pain can worsen when you lie down.
How Acid Reflux Causes Nighttime Heartburn
The lower esophageal sphincter (LES) is a ring of muscle between the esophagus and the stomach. It normally opens to let food pass, then closes to keep stomach contents from moving backward. When the LES relaxes at the wrong time or does not close well, acid can flow into the esophagus, as the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) explains.
The esophageal lining is sensitive to acid, so the exposure can cause a burning sensation. That is the feeling we call heartburn.
Why Lying Down Makes Symptoms Worse
When you are upright, gravity helps keep stomach contents where they belong. Lying flat removes some of that help, so reflux becomes more likely in people who are prone to it. This is one reason nighttime heartburn can feel stronger than daytime heartburn after the same meal.
Why Nighttime Symptoms Can Disturb Sleep
Burning discomfort, sour liquid in the throat, or regurgitation can make it hard to fall asleep or stay asleep. Some people wake up coughing or clearing their throat. Mayo Clinic lists an ongoing cough, laryngitis, and new or worsening asthma among symptoms that may accompany nighttime reflux. For more on poor sleep, see our guide on trouble falling asleep at night.
To learn what the sensation itself feels like, read what heartburn feels like.
Common Causes of Nighttime Heartburn
Several habits and conditions can contribute, and more than one may be involved at once. Our pillar guide on what causes heartburn covers the full picture.
Eating Too Close to Bedtime
When you lie down soon after eating, your stomach is still full and gravity is no longer helping. Mayo Clinic advises waiting two to three hours after a meal before lying down and avoiding late meals. Allowing about three hours between your last meal and bedtime is a common goal.
Eating Large Evening Meals
Big portions stretch the stomach and increase pressure on the LES. If dinner is your largest meal, it may be worth trying a smaller portion in the evening and shifting more food to earlier in the day.
Eating High-Fat or Spicy Foods
Fatty, fried, and spicy foods are possible triggers for some people. High-fat meals tend to be heavy and may stay in the stomach longer. Others tolerate these foods well, so patterns differ.
Drinking Coffee or Alcohol in the Evening
Caffeinated drinks and alcohol are listed by Mayo Clinic among possible triggers. Mayo also notes that alcohol and smoking can reduce the LES’s ability to work properly. If an evening coffee or drink seems to bring on symptoms, it may be worth moving it earlier or skipping it.
Other Contributing Factors
Other factors can play a role:
- Excess body weight
- Pregnancy
- Smoking
- A hiatal hernia, where the upper part of the stomach bulges through the diaphragm
- Stress and anxiety
- Certain medications, such as aspirin and other anti-inflammatory pain relievers
Do not stop a prescribed medicine on your own. Talk with your healthcare provider or pharmacist if you think a medicine is contributing. You can also read about acid reflux risk factors.
Foods and Drinks That Can Trigger Heartburn at Night
Certain foods and drinks may trigger heartburn in some people. This list shows possible triggers, not rules that apply to everyone.
Foods That May Worsen Nighttime Heartburn
Mayo Clinic lists these possible food triggers:
- Fried and fatty foods
- Spicy meals
- Tomato products, such as tomato sauce
- Citrus fruits
- Chocolate
- Peppermint
- Onions
Drinks That May Contribute to Symptoms
Drinks can also play a part:
- Coffee
- Tea and other caffeinated beverages
- Alcohol
- Carbonated drinks
For more examples, see our guide on what makes acid reflux worse.
Should You Avoid These Foods Completely?
Not necessarily. Triggers vary from person to person, and cutting out many foods without a clear reason can make eating harder than it needs to be. A food and symptom diary is a better way to find your own triggers.
Here is a simple example of what to record each evening:
- Dinner time and meal size
- Foods and drinks you had
- Bedtime
- Whether heartburn occurred, when it started, and how long it lasted
After a couple of weeks, patterns usually appear. You can then limit only the items that repeatedly cause trouble. Our guide on a healthy diet can help you keep meals balanced.
How to Relieve Heartburn at Night
These steps are for mild, occasional symptoms with no warning signs. They may help, but none is guaranteed. See also our guides on how to relieve heartburn at home and heartburn after eating.
Sit Upright Instead of Lying Flat
If heartburn strikes, sitting upright for a while may ease it better than staying flat. Gravity can help bring relief.
Elevate the Head of Your Bed
Mayo Clinic recommends elevating the head of your bed if you regularly have heartburn at night. If you cannot raise the bed itself, a wedge placed under the mattress can lift the body from the waist up. Raising your head with extra pillows usually is not effective, because it tends to bend the body at the waist.
Avoid Eating More Before Sleeping
A late snack adds to stomach fullness just when you want it to be emptier. If you feel hungry in the evening, a light snack well before bed is usually a better choice than a large one close to lying down.
Loosen Tight Clothing
Tight waistbands and belts press on the abdomen. Mayo Clinic advises avoiding tight-fitting clothing because it puts pressure on the belly and the LES. Comfortable sleepwear can help.
Consider Appropriate Heartburn Medicines
Several over-the-counter options exist, and they work differently:
- Antacids: These neutralize stomach acid and may give quick, short-term relief.
- Alginates: These form a barrier that may help reduce reflux, according to the NHS.
- H2 blockers: These reduce acid production. Mayo Clinic notes they act more slowly than antacids but may last longer.
- Proton pump inhibitors (PPIs): These also reduce acid production and may be recommended for people with recurring reflux.
The right choice depends on your health history, other medicines, and how often symptoms occur. If you are pregnant or take other medicines, check with a pharmacist first. Needing nonprescription medicines often is a reason to see a healthcare professional. You can also read about acid reflux treatment options.
Best Sleeping Position for Nighttime Heartburn
Your sleeping position may influence how much reflux you have. Research is limited, and results differ between people, so treat these ideas as things to test rather than guaranteed fixes.
Is Sleeping on Your Left Side Better?
Some people find that lying on the left side reduces nighttime reflux compared with lying on the right side or flat on the back. This may be linked to the way the stomach and esophagus sit in the body. It does not work for everyone, but it costs nothing to try for a week or two.
Should You Sleep With Your Head Elevated?
Raising the upper body with a wedge pillow or by elevating the head of the bed is the approach recommended by Mayo Clinic for regular nighttime heartburn. The goal is to tilt the whole upper body so gravity works for you.
Is Sleeping Flat Bad for Acid Reflux?
Lying completely flat can make reflux more noticeable in some people, especially after a meal. Not everyone with reflux has trouble sleeping flat, so your own experience is the best guide.
What Should You Avoid?
- Lying down right after dinner
- Going to sleep with a very full stomach
- Relying on several ordinary pillows as your only form of elevation
How to Prevent Heartburn Before Bed
A consistent evening routine tends to work better than quick fixes. For more daily strategies, see living with acid reflux.
Finish Dinner Earlier
Try to finish eating about two to three hours before you lie down. Earlier dinners give your stomach time to empty.
Choose Smaller Evening Meals
Moderate portions mean less stomach fullness. If you tend to eat a lot at night, spreading food more evenly across the day may help.
Avoid Personal Food Triggers
Use your diary to spot which foods and drinks bring on symptoms, and skip those in the evening.
Maintain a Healthy Weight
Extra weight around the abdomen can add pressure on the stomach, which may contribute to reflux. Gradual changes are easiest to keep up. See our guide on weight management.
Avoid Smoking and Limit Alcohol
Smoking and alcohol can affect how well the LES works, according to Mayo Clinic. If either seems to trigger your symptoms, cutting back may help.
A Quick Bedtime Checklist
- Eat dinner earlier.
- Choose a moderate portion.
- Avoid your known trigger foods.
- Stay upright after eating.
- Elevate the upper body if needed.
- Keep a consistent bedtime routine (see how to improve sleep).
Is Nighttime Heartburn a Sign of GERD?
Not necessarily. Heartburn is a symptom, acid reflux is the backward flow, and GERD is a longer-lasting condition involving repeated reflux. Mayo Clinic describes GERD as acid reflux that happens repeatedly over time.
Occasional Nighttime Heartburn
An episode after a large or late meal is common. It often improves with changes to meal timing and sleeping position, and it does not automatically mean you have GERD.
When Nighttime Heartburn May Indicate GERD
Talk with a healthcare professional if:
- Symptoms happen frequently or repeatedly
- Heartburn interrupts your sleep
- Sour fluid or food keeps coming back into the throat
- Symptoms continue despite lifestyle changes
Repeated reflux can irritate the esophagus over time, and Mayo Clinic notes that GERD may need prescription medicine. A healthcare professional can help sort out the cause. Our guide to how acid reflux is diagnosed explains what to expect, and our article on heartburn with no other symptoms may also help.
When Should You Worry About Heartburn at Night?
Most nighttime heartburn is not dangerous, but some patterns need attention. Our broader guide, should I worry about heartburn, gives more context.
When to Arrange a Medical Appointment
Mayo Clinic advises making an appointment if heartburn occurs more than twice a week or continues despite nonprescription medicines. Also see a healthcare professional if:
- Nighttime symptoms repeatedly interrupt sleep
- Symptoms persist despite lifestyle changes
- You need over-the-counter medicines regularly
- Swallowing becomes difficult or painful
- You have persistent vomiting
- You are losing weight without trying
See also when to see a doctor for acid reflux.
When Chest Pain Is an Emergency
Heart-related chest pain can feel like heartburn, so do not assume nighttime chest discomfort is acid reflux. Seek emergency care for new, severe, persistent, or unexplained chest pain or pressure, especially with pain spreading to the arm, shoulder, jaw, neck, or back, shortness of breath, cold sweats, or dizziness or faintness (American Heart Association).
Do not take an antacid first to see whether the pain goes away. Call 911 or your local emergency number. Vomiting blood or passing black, tarry stools also needs urgent medical care. Learn more about chest pain at night and when chest pain is an emergency.
Frequently Asked Questions About Heartburn at Night
Why do I get heartburn only at night?
Lying down can make stomach contents flow back into the esophagus more easily. Late meals and certain food triggers may also contribute. (Mayo Clinic)
How do I stop heartburn at night?
Try staying upright for a while, avoiding late meals, elevating your upper body during sleep, and identifying your personal food triggers. If it keeps happening, see a healthcare professional. (Mayo Clinic)
Is sleeping on your left side good for heartburn?
Left-side sleeping may reduce reflux for some people, but results vary and evidence is limited. It is reasonable to try if you have nighttime symptoms.
How long before bed should I stop eating?
Mayo Clinic advises waiting two to three hours after a meal before lying down. Many people aim for about three hours. (Mayo Clinic)
Can nighttime heartburn be a sign of GERD?
Yes, it can be. Frequent nighttime heartburn may be associated with GERD and should be discussed with a healthcare professional. (Mayo Clinic)
Can heartburn wake you up from sleep?
Yes. Reflux can disturb sleep, especially when stomach contents move into the esophagus or throat while you are lying down. If it happens often, ask a healthcare professional about it.
Conclusion
Heartburn at night is commonly linked to acid reflux. Lying down, late meals, and certain foods can make it worse, and earlier dinners, smaller portions, and raising your upper body may help. Small changes to your evening habits can make a real difference for many people.
Repeated nighttime symptoms deserve medical evaluation, and possible heart attack symptoms need emergency care. Persistent heartburn should not be ignored.
For related reading, see our guide to common digestive problems.
Sources
- Mayo Clinic. Heartburn: Symptoms and causes
- Mayo Clinic. Heartburn: Diagnosis and treatment
- Mayo Clinic. Gastroesophageal reflux disease (GERD): Symptoms and causes
- National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Symptoms and causes of GER and GERD in adults
- NHS. Heartburn and acid reflux
- American Heart Association. Warning signs of a heart attack
Medical Disclaimer: This article is for general educational purposes only. It does not provide medical advice, diagnosis, or treatment, and it is not a substitute for care from a qualified healthcare professional. Always talk with your doctor, pharmacist, or another licensed provider about your symptoms, medications, and health concerns. If you think you are having a medical emergency, call 911 or your local emergency number right away.
