How to Sleep Comfortably When Your Stomach Hurts

When your stomach hurts at night, the right position, timing, and a few simple adjustments can make the difference between tossing for hours and actually falling asleep. The best approach depends on what kind of stomach pain you’re dealing with, but a few strategies work across the board: sleep on your left side, elevate your upper body slightly, and give yourself at least two to three hours between your last meal and bedtime.

Why Your Left Side Is the Best Position

Sleeping on your left side keeps your stomach positioned below your esophagus, which makes it harder for acid and stomach contents to travel upward. When you sleep on your right side, the opposite happens: your stomach sits higher than your esophagus, and gravity works against you. A systematic review of studies on sleep position and reflux found that right-side sleeping consistently triggered more heartburn and reflux episodes than any other position.

This matters even if acid reflux isn’t your main issue. General stomach discomfort, bloating, and nausea can all worsen when stomach contents shift toward the esophagus. If you naturally roll onto your back or right side during sleep, placing a body pillow behind you can help you stay on your left.

Elevate Your Upper Body

Propping yourself up reduces the pressure your stomach contents put on the valve between your stomach and esophagus. A wedge pillow is the most effective way to do this. Most wedge pillows designed for digestive discomfort sit at a 30- to 45-degree angle and raise your head six to twelve inches, according to Cleveland Clinic. That gradual slope is important. Stacking regular pillows under your head alone tends to bend your body at the waist, which can actually increase abdominal pressure and make things worse.

If you don’t have a wedge pillow, you can place a few firm pillows or folded blankets under the head of your mattress to create a gentler incline across your whole torso. The goal is to keep your chest higher than your stomach without crunching your midsection.

Adjust Based on Your Type of Pain

Acid Reflux or Heartburn

Left-side sleeping combined with upper body elevation is the strongest combination. Avoid eating for two to three hours before bed. The National Sleep Foundation recommends a light dinner within that window to give your body time to transition into sleep mode without active digestion competing for resources. Skip anything acidic, spicy, or fatty close to bedtime, as these slow stomach emptying and increase acid production.

Cramps or Menstrual Pain

Cramping pain in the lower abdomen responds well to positions that take tension off the pelvic floor and abdominal wall. Three positions work well here: lying on your back with a pillow under your knees, lying on your side with a pillow between your knees, or lying on your stomach with a pillow under your hips. All three keep your spine neutral and reduce strain on pelvic muscles. A heating pad on your lower belly before bed can relax the muscles enough to let you drift off. Keep the temperature comfortable (not hot enough to redden your skin) and limit use to about 10 to 20 minutes rather than leaving it on all night.

Bloating or Gas

Left-side sleeping helps here too, because it aligns your digestive tract in a way that encourages gas to move through more easily. Pulling your knees gently toward your chest while on your side (a loose fetal position) can also relieve pressure. If bloating is your main problem, a short walk around the house before bed is sometimes more effective than any position change. Even five to ten minutes of gentle movement helps trapped gas shift.

General Nausea

When nausea is keeping you awake, lying flat is the worst option. Prop yourself up at an angle and try to stay on your left side. Keep a glass of water nearby and take small sips. Breathing slowly and deliberately (in through the nose, out through the mouth) activates your body’s calming response and can reduce the urge to vomit.

What You Wear Matters More Than You Think

Tight waistbands are surprisingly harmful when your stomach already hurts. Research on patients with reflux disease found that wearing a snug belt increased pressure inside the stomach by about 7 to 9 mmHg, enough to roughly double the number of reflux events after a meal. Even more striking, the time it took for acid to clear from the esophagus jumped from 23 seconds without compression to over 81 seconds with it.

Swap fitted pajama bottoms, elastic waistbands, or compression garments for loose-fitting sleepwear. This is a small change that makes a real difference, especially if your pain involves any component of acid reflux or upper abdominal pressure.

Pre-Sleep Routine for a Hurting Stomach

What you do in the hour or two before bed sets the stage. If your stomach is already bothering you, avoid lying down immediately. Sit upright or recline slightly and let gravity help keep things settled. Sipping warm (not hot) water or a mild herbal tea like peppermint or ginger can ease nausea and mild cramping, though peppermint can worsen heartburn in some people, so skip it if reflux is your issue.

A heating pad or warm towel placed on your abdomen for 10 to 15 minutes before you get into bed can relax tense muscles and reduce pain signals. Keep a thin layer of fabric between the heat source and your skin. Don’t fall asleep with a heating pad still on, as prolonged contact can cause burns even at moderate temperatures.

Avoid carbonated drinks, caffeine, and alcohol in the hours before bed. All three increase stomach acid production or relax the valve that keeps acid in your stomach. If you need to eat something because an empty stomach is making things worse, stick to bland, easy-to-digest options: plain crackers, a banana, or a small portion of rice.

Signs That Stomach Pain Needs Attention

Most nighttime stomach pain is temporary and manageable with positioning and timing adjustments. But certain symptoms alongside stomach pain point to something that needs medical evaluation. According to Mayo Clinic, these include vomiting blood, black or bloody stool, blood in your urine, a swollen and tender abdomen, high fever, persistent vomiting, or pain that radiates to your chest, neck, or shoulder. Shortness of breath or dizziness with abdominal pain also warrants prompt care. If your stomach pain wakes you from sleep regularly (several times a week for more than two weeks), that pattern itself is worth discussing with a doctor, as it can signal an ulcer, gallbladder issue, or other condition that won’t resolve with positioning alone.