Feeling anxious or tense can lead to or worsen stomach pain, so this could actually help you feel better physically as well. Other ways you can wind down before bed include dimming the lights, reading or doing another quiet activity, and turning off all electronics an hour before bed.

This can also be helpful if your stomach pain is due to anxiety or indigestion. You can get different scents of Epsom salt, such as eucalyptus or lavender, to help you relax more. A hot water bottle or a heating pad can also help ease stomach cramps, but don’t use them while you’re sleeping, as you could get burned.

For instance, you might wear stretchy PJ pants and a large T-shirt to bed, or you might opt for a flowy nightdress.

If you can’t adjust the thermostat, try turning on a fan. If the weather is nice outside, you may want to crack open your window. [3] X Trustworthy Source HelpGuide Nonprofit organization dedicated to providing free, evidence-based mental health and wellness resources. Go to source

Try choosing bedding in a soft, breathable material, like cotton or linen.

You can also sleep on your back propped up with pillows to relieve heartburn. Sleeping face-down can put extra pressure on your stomach, which might worsen your stomach pain. If you have stomach cramps, try drawing your knees up to your chest in the fetal position, which may help. [6] X Research source

Chamomile is a great option for bedtime, but you can also find herbal blends that contain peppermint, ginger, and calendula.

Ginger is widely used around the world to treat stomach aches. It’s especially useful for nausea, but it can help with a variety of ailments. Most commercially-produced ginger ales don’t contain enough ginger to actually be effective. The carbonation can help, but the added sugars can make some stomach issues—especially diarrhea—even worse.

Don’t press down hard enough so it hurts, but do apply firm pressure with your fingertips.

Slowly add in other foods as you’re able to tolerate them. For instance, if you can keep down the BRAT foods, you might start adding in juice, gelatin, crackers, and cooked cereals like oatmeal or cream of wheat.

If you have heartburn, try antacids or OTC heartburn pills like cimetidine, famotidine, ranitidine, or omeprazole. If you’re constipated (you haven’t had a bowel movement in a while or if it hurts or is hard to go), try a stool softener or laxative. Try simethicone drops to relieve gas pain. Use an anti-nausea or antidiarrheal medicine like bismuth subsalicylate for an upset stomach. [12] X Research source

Gas-producing foods might include broccoli, beans, onions, cabbage, apples, and foods that are high in fiber. Dairy and sugar substitutes may lead to gas as well. [13] X Trustworthy Source Mayo Clinic Educational website from one of the world’s leading hospitals Go to source Acidic foods including tomatoes, citrus fruits, and coffee can all lead to heartburn. Peppermint, chocolate, and garlic may also lead to indigestion. [14] X Research source Try taking a digestive enzyme before you eat if you have food that’s harder to digest.

If your doctor has prescribed these medications, discuss whether you should take them with a meal or earlier in the day to avoid night-time stomach pain.

You can also help prevent stomach aches by eating smaller meals throughout the day, rather than 2-3 heavy meals. Try to eat slowly and chew your food thoroughly. This can help ease the digestion process as well.

If you do have a drink, do so in moderation, and try not to drink within 1-2 hours of bed.