The single most effective change you can make for nighttime heartburn is sleeping on your left side with your head elevated 6 to 12 inches. This combination uses gravity and your body’s natural anatomy to keep stomach acid where it belongs. But position is only part of the picture. What you eat, when you eat, and what you wear to bed all influence how much acid creeps into your esophagus overnight.
Why Your Left Side Is the Best Position
When you lie on your left side, your stomach sits below your esophagus. That means acid has to travel uphill to reach your throat, which it usually can’t do. Flip to your right side and the geometry reverses: your stomach ends up above the opening to your esophagus, and gravity pulls acid directly toward it. Studies consistently show that right-side sleeping triggers more heartburn episodes and longer acid exposure than any other position.
Back sleeping falls somewhere in between. It’s better than the right side, but without elevation, acid can still pool near the junction between your stomach and esophagus. Stomach sleeping tends to put pressure on your abdomen, which can force acid upward. If you can only tolerate one change, make it left-side sleeping.
How to Elevate Your Head the Right Way
Stacking two or three regular pillows under your head seems like the obvious fix, but it creates a sharp bend at your neck rather than a gradual incline. That bend can actually make reflux worse by compressing your stomach, and it’s rough on your neck and back. What you want is your entire upper body angled upward from the waist.
A foam wedge pillow is the simplest way to get this right. Most are designed at a 30- to 45-degree angle, raising your head between 6 and 12 inches. The gradual slope keeps your spine aligned while letting gravity drain acid back into your stomach. If you don’t want to buy a wedge, you can place 6-inch risers or blocks under the legs at the head of your bed. This tilts the entire sleeping surface and achieves the same effect without any special pillow.
Combining left-side sleeping with a wedge pillow is the gold standard. You get both the anatomical advantage of the left-side position and the gravitational benefit of the incline working together.
Stop Eating at Least 3 Hours Before Bed
Your stomach needs time to empty before you lie down. The standard recommendation is to finish your last meal at least three hours before sleep. That window gives your stomach enough time to move most of its contents into the small intestine, so there’s less acid sitting around to reflux when you go horizontal.
If you need a late snack, what you choose matters. High-fat foods are the worst offenders because they sit in your stomach far longer than carbohydrates or protein. Tomato-based foods, onions, spicy dishes, and chocolate all relax the muscular valve at the top of your stomach, making it easier for acid to escape. Alcohol does the same thing. A small, bland snack like a banana or a handful of crackers is a safer bet if you’re genuinely hungry close to bedtime.
Timing Your Medication for Nighttime Relief
If you take a proton pump inhibitor (like omeprazole or similar over-the-counter acid reducers), timing matters more than most people realize. These medications work best on an empty stomach, taken about 30 minutes before a meal. For nighttime heartburn specifically, taking one before dinner is more effective than taking it in the morning. One study found that a PPI taken before dinner reduced overnight acid exposure to just 0.2%, compared to 3.4% when the same drug was taken before breakfast.
You might assume that adding a second type of acid blocker (an H2 blocker like famotidine) at bedtime would help even more. Clinical trials have tested this, and the results are disappointing. Adding a bedtime H2 blocker on top of twice-daily PPI therapy doesn’t meaningfully improve overnight acid levels. If your current medication isn’t controlling nighttime symptoms, the better move is talking to your doctor about adjusting your primary treatment rather than layering on extra pills.
What You Wear to Bed
Tight pajamas, compression shirts, or snug waistbands increase pressure inside your abdomen. That pressure pushes against your stomach and forces acid upward through the valve at the top. Loose-fitting sleepwear, particularly anything without an elastic waistband that sits at or above your stomach, removes this unnecessary pressure. It’s a small change, but if you’re already doing everything else right and still waking up with heartburn, your clothing could be the overlooked factor.
Putting It All Together
The most effective nighttime heartburn strategy layers several changes at once. Eat dinner early enough to leave a three-hour buffer. Avoid fatty, spicy, or acidic foods in that last meal. Take any acid-reducing medication before dinner rather than in the morning. Change into loose sleepwear. Set up your bed with a wedge pillow or risers at the headboard. Then lie down on your left side.
Not every night will be perfect, and you may find yourself rolling onto your back or right side while asleep. Some people place a body pillow behind them to make it harder to roll over. Others find that the wedge pillow alone provides enough relief that position becomes less critical. Start with the changes that feel most manageable and add others as needed until you find the combination that lets you sleep through the night.

