Waking up with heartburn at night is usually acid reflux. Lying flat removes gravity's help keeping stomach acid down, and you swallow less in your sleep, so acid that escapes stays in your throat longer. A late meal or alcohol can make it worse. The fixes that help most are an earlier dinner, your left side, and a raised bedhead.

Frequently asked questions

Why is heartburn worse at night?

Lying flat takes away gravity, which is your main defense during the day. While you are upright, acid that slips upward drains back down. In bed, it can pool in the tube between your mouth and stomach and stay there. You also swallow far less often during sleep, so less saliva washes the acid away. A full stomach from a late dinner adds pressure from below. Together, those three changes explain why reflux that barely bothers you at noon can wake you at 2 a.m.

Why do I wake up with heartburn at 2 or 3 in the morning?

The timing is common, not a coincidence. Dinner is still digesting in the first hours of the night, and you spend those hours lying flat while swallowing slows to almost nothing. Acid that has been creeping upward for an hour or two finally irritates the lining enough to wake you. Some wake with burning in the chest, others coughing, or with a sour taste. If it happens most nights, change the evening routine, and if it keeps happening, talk to a clinician.

Does sleeping on your left side really help with acid reflux?

Yes, and this is one of the few sleep position claims with a real study behind it. In a 2022 study in the American Journal of Gastroenterology, researchers tracked 57 people with reflux through the night with pH monitors and position sensors. Acid spent far less time in the esophagus when people lay on their left side than on their right side or back, and it cleared faster: a median of 35 seconds on the left, against 76 seconds on the back and 90 seconds on the right. The number of reflux episodes did not change, so the left side does not stop reflux from happening. It helps your body clear it faster. The reason is anatomy. The stomach sits slightly to the left, and on your left side the junction between the stomach and the esophagus sits higher, so acid is less likely to spill upward.

Does raising the head of the bed help?

Yes, and it is one of the most consistent recommendations in reflux guidance. The National Institute of Diabetes and Digestive and Kidney Diseases suggests raising the head of the bed by 6 to 8 inches. You can use blocks under the bed legs or a wedge under the mattress. Stacking ordinary pillows is a poor substitute, because it bends you at the waist and can squeeze the stomach, which may make reflux worse. The goal is a gentle slope from hips to head, not a pile under the neck.

What should I avoid eating or drinking before bed?

The biggest factor is timing, not any single food. A large meal close to bedtime is the most reliable trigger, because a full stomach pushes acid upward when you lie down. After that, the usual suspects are alcohol, caffeine, chocolate, peppermint, and fatty or spicy food. These relax the valve at the top of the stomach or irritate the lining, and different people react to different ones. Smoking also relaxes that valve. You do not need to ban everything at once. Change one thing, give it a week, and notice whether the nights improve.

When should I see a doctor about nighttime heartburn?

See a clinician if heartburn wakes you more than twice a week, if it has gone on for more than two weeks, if food feels stuck when you swallow, if you vomit, or if you are losing weight without trying. Get urgent care for chest pain that feels crushing or heavy, pain that spreads to the arm, jaw, or back, or chest pain with sweating, nausea, or shortness of breath. Heartburn and heart trouble can feel alike, and only a clinician can tell them apart. This article can describe what is common, but it cannot diagnose you.

What heartburn actually is

Heartburn is a burning feeling behind the breastbone, caused by stomach acid flowing back into the esophagus, the tube that carries food from your mouth to your stomach. A ring of muscle at the bottom of that tube, the lower esophageal sphincter, normally stays closed and opens only to let food through. When it relaxes at the wrong moment, or when pressure inside the stomach is high, acid slips upward and irritates a lining that was never built to handle it.

Occasional heartburn is common and usually harmless. Heartburn that happens often, or keeps coming back, is usually called gastroesophageal reflux disease, or GERD. Researchers note that up to 80 percent of people with GERD have symptoms at night, and nighttime symptoms matter more, because acid sits against the lining longer while you sleep, and broken sleep leaves you tired the next day.

Why lying down changes everything

Three things change the moment you lie flat, and each one favors reflux.

First, gravity stops working for you. During the day, gravity pulls everything downward, and acid that escapes drains back into the stomach within seconds. Flat in bed, there is no downward pull, so acid that reaches the esophagus can sit there.

Second, you swallow less. Swallowing is how the esophagus clears itself: each swallow pushes acid down and brings a little saliva with it, and saliva is slightly alkaline, so it helps neutralize acid. During sleep, swallowing slows sharply, and saliva production drops too.

Third, your stomach may still be full. A large dinner takes hours to empty. Lying down with a full stomach raises the pressure inside it, and that pressure pushes on the valve at the top. This is why the same meal that causes no trouble at 7 p.m. can wake you at midnight: the food is still there, and now you are flat.

Your sleeping position adds a fourth factor. Lying on your right side places the stomach above the esophagus, so acid pools near the opening. Lying on your left side does the opposite. Lying on your back sits in between. None of this means position alone explains your symptoms, but it is one of the few factors you can change without buying anything.

What nighttime reflux feels like

Not everyone wakes with the classic burning chest. Nighttime reflux has several faces, and some of them look like other sleep problems.

The most common is burning behind the breastbone, often soon after lying down or in the middle of the night. Then there is the sour or bitter taste in the back of the mouth, sometimes with a small amount of fluid coming up. Some people wake coughing, or with a choking feeling, as if something went down the wrong way. Others simply wake often without knowing why, and feel unrefreshed in the morning even after a full night in bed.

Reflux can also show up the next morning. Acid that reaches the throat overnight can leave you with a sore throat or a hoarse voice when you wake, and it can contribute to bad breath. We have covered morning sore throat and morning hoarseness separately. If either keeps coming back, especially on nights when you ate late, reflux is worth mentioning to a clinician.

The left side: what the study actually found

The left side advice is everywhere on social media right now, and some of the posts overstate it, so here is what the study did and did not show.

The researchers at Amsterdam University Medical Centers followed 57 patients who had been referred for reflux monitoring. Each person spent a night with a pH and impedance monitor measuring acid in the esophagus, while a small device recorded sleep position: left, right, back, or stomach. The results were published in the American Journal of Gastroenterology in February 2022.

Acid exposure time in the esophagus was shortest on the left side, with a median of 0.0 percent of the night, compared with 1.2 percent on the right side and 0.6 percent on the back. Acid also cleared faster on the left: a median of 35 seconds, against 76 seconds on the back and 90 seconds on the right. Both differences were statistically significant, which means they were unlikely to be chance.

What did not change is just as important. The number of reflux episodes was about the same in every position. The left side does not prevent reflux. It shortens how long acid stays where it hurts, and faster clearance means less irritation and, over time, less damage to the lining.

How to try it: start the night on your left side, with a pillow between your knees if that keeps your hips comfortable. If you wake on your back or right side, roll back without making a project of it. If your left shoulder hurts, do not force the position: the other changes in this article matter more than any single one, and pain will wreck your sleep faster than reflux will. Our guide to the best sleeping position compares the trade offs of each position in full.

Raise the head of the bed

If you try only one change, many clinicians would pick this one. Raising the head of the bed by 6 to 8 inches uses gravity again, in a small way, all night long. It is the same principle as the left side, applied to the whole upper body.

The practical details matter. Put solid blocks or risers under the legs at the head of the bed, or slide a wedge under the mattress. A wedge that lifts the torso, not just the head, works best. Ordinary pillows stacked under the head bend the neck and waist, squeeze the stomach, and often make things worse, so they are not a substitute. Give the change a week before judging it: reflux responds to patterns, not to single nights.

A raised bedhead can make some people slide down during the night. If that happens, try a smaller lift first, and see whether a few inches is enough to quiet the symptoms.

The evening: timing first, triggers second

Dinner timing is the change with the widest agreement behind it. The National Institute of Diabetes and Digestive and Kidney Diseases advises waiting about three hours after a meal before lying down, and most reflux guidance says two to three hours. That does not mean you must eat at 6 p.m. It means the gap between your last big meal and bed matters more than the clock time. A smaller, earlier dinner helps twice: less food in the stomach, and more time to empty before you lie flat. We covered the timing in detail in our piece on how late is too late to eat before bed.

After timing, look at the evening habits that relax the valve or add acid. Alcohol is the strongest of these: it relaxes the valve, slows stomach emptying, and disturbs sleep on its own, so a nightcap is a double problem. We looked at the sleep side of that in our piece on alcohol and sleep. Caffeine late in the day can play a similar role, and coffee also stimulates acid production. Chocolate, peppermint, and fatty or spicy meals are common triggers, but they vary a lot from person to person: chocolate is a problem for many and nothing for others.

A short note on the nightstand helps. For one week, write down when you ate, whether you drank alcohol or caffeine late, which side you fell asleep on, and whether you woke with symptoms. Patterns show up fast. If no pattern shows up, that is useful too, and worth telling a clinician.

Extra weight around the middle raises pressure inside the abdomen, which pushes on the valve. If it applies, mention it in the same conversation where you discuss reflux with a clinician.

What to try tonight

If tonight is the bad night, here is a short plan.

Eat your last large meal at least two to three hours before bed, and keep it moderate. Skip alcohol in the evening, and skip caffeine after the afternoon. Start the night on your left side. If your bed allows it, raise the head by a few inches, and use a wedge rather than a stack of pillows. Wear loose clothing around the waist, since tight waistbands add pressure too. If you wake with burning, sit up for a while and sip a little water, which can help wash acid down. Do not eat a midnight snack to settle the stomach: food restarts acid production and refills the stomach you are trying to empty.

None of this is a cure, and a single good night does not prove the problem is solved. Reflux is a pattern, and patterns are judged over weeks. If two weeks of these changes bring no improvement, or if symptoms keep waking you most nights, that is the point to see a clinician rather than trying a new trick each night.

When to get help

Most nighttime heartburn is a nuisance, but a few signs mean it is time to stop self managing.

See a clinician soon if heartburn wakes you more than twice a week, if it has lasted more than two weeks, if swallowing feels difficult or food feels stuck, if you vomit, or if you are losing weight without trying. Frequent reflux can damage the lining of the esophagus over time.

Seek urgent care right away for chest pain that feels heavy, crushing, or squeezing, for pain that spreads to the arm, jaw, or back, or for chest pain with sweating, nausea, or shortness of breath. Heartburn and heart trouble can feel alike, and no article can tell them apart. The safe rule is simple: new or severe chest pain gets checked promptly, every time.

Reflux is also common in later pregnancy, when the growing uterus pushes the stomach upward and hormones relax the valve. If you are pregnant and reflux is waking you, mention it to your clinician rather than trying new remedies on your own.

What a sleep mask can and cannot do

A sleep mask has nothing to offer reflux itself. It does not change stomach acid, it does not hold a valve shut, and it does not keep you on your left side. Anyone who tells you a mask treats heartburn is selling something.

What a mask can do is narrower, and still useful. Once reflux wakes you, a dark room makes it easier to fall back asleep, and a mask is the cheapest way to get darkness when a partner reads late, a streetlight leaks through the curtains, or the room is never fully dark. Our own weighted sleep mask sits gently over the eyes with a soft, even weight, and it only blocks light. Think of it as help for the second half of the problem, the falling back asleep, not the first half, the burning. Fix the reflux with the steps above, and use darkness for the sleep around it.

Heartburn at night is miserable, and it is also one of the more fixable sleep problems. The changes that help are ordinary: an earlier dinner, a raised bedhead, your left side, and a calmer evening. Try them one at a time, give each a week, and notice which nights are quiet. If the quiet nights do not come, take the pattern to a clinician.

Latest Stories

View all

An apartment bedroom with a bed beside a balcony overlooking nearby homes.

How to Check Apartment Noise Before You Sign

Check the bedroom at the pillow spot, separate street noise from building noise, and use a quick scorecard to compare apartments before you sign.

Read moreabout How to Check Apartment Noise Before You Sign

How to Sleep at Someone Else's House Over the Holidays

How to Sleep at Someone Else's House Over the Holidays

Yes, but expect the first night to be the hardest. In a new place, one half of your brain stays partly on watch, so unfamiliar sounds wake you more easily and deep sleep runs lighter. Bring your own pillow and...

Read moreabout How to Sleep at Someone Else's House Over the Holidays

A digital clock with bright white numerals on a desk in a room lit red.

Bedside Alarm Clock Too Bright? A Two-Pillow Check

A readable bedside clock does not have to light up both pillows. Test where its glow lands before you dim it, move it, or buy a new one.

Read moreabout Bedside Alarm Clock Too Bright? A Two-Pillow Check