Header burger open
Search Logo

Jump To

Currently Viewing:

How To Sleep With Stomach Ulcer?

a profile image of TSA author Alex

Written By Alex Petrović

Certified Sleep Consultant

Featured image of how to sleep with stomach ulcer.

29 April 2024 10 min read

Learning how to sleep with stomach ulcer isn't easy – but we'll get you there.

Do you have trouble sleeping at night? Do you find yourself tossing and turning, or waking up in pain? If so, you may be one of the millions of people who suffer from stomach ulcers. Now, we know that learning how to sleep with stomach ulcer isn't easy – but we'll get you there. We promise.

There are steps you can take to relieve ulcer pain and make it easier to fall and stay asleep, but before we get to those – let's take a look at some of the most common ulcer symptoms.

What are the symptoms of stomach ulcers?

Stomach ulcers are a common yet painful problem that can make it difficult to get a good night's sleep. And, as expected, the symptoms can vary from person to person. However, there are some common signs and symptoms that most people with stomach ulcers experience. These include:


Pain/discomfort between meals

Pain is the most common symptom associated with stomach ulcers. It is usually felt as a burning sensation or pain in the upper abdomen – just below the breastbone. This pain can sometimes extend to the back.

The pain is often described as being similar to hunger aches. It is important to note that not everyone with stomach ulcers will experience pain, so you could be suffering from a peptic ulcer disease and not know it because it's not hurting.


Next up, we have bloating. Although many don't associate bloating with stomach ulcers, it is in fact a common symptom. In fact, most people think of bloating as something that “just happens when you eat a lot”.

However, bloating associated with stomach ulcers is caused by the same factors that lead to the pain – namely, the production of too much stomach acid. When there is too much acid in the stomach, it can cause the stomach to bloat and expand – leading to that full and uncomfortable feeling – even if you haven't eaten a lot.

It can also cause pain and discomfort, at which point, most people start noticing they actually have an issue.


Nausea and vomiting are all closely linked to stomach ulcers.

There are a few reasons why stomach ulcers can lead to nausea. One reason is that the ulcer can cause acid to back up into the esophagus, which can lead to a burning sensation and feelings of nausea. Additionally, when the stomach is empty (or not full of food), it can cause pain and cramps – which can also lead to nausea and even vomiting.

An image of a woman suffering from nausea.

Therefore, if you find yourself struggling with nausea and vomiting, it's not likely that you also have an ulcer, but it's very much possible. If the problem persists, it's probably best if you visit a doctor.

Weight loss

Finally, weight loss is another common symptom of stomach ulcers.

This may seem counterintuitive, as most people associate weight loss with a lack of appetite. However, in the case of stomach ulcers, weight loss is caused by a combination of factors – most of which we've just mentioned.

First, the pain and discomfort associated with peptic ulcers can lead to a loss of appetite. Additionally, when the stomach is empty (or not full of food), it can lead to additional stomach acid production, bloating, and nausea, all of which can lead to additional issues, which can lead to weight loss, as the body is not getting the nutrients it needs, since you don't have the will or desire to eat.

An image of a woman holding her jeans to show weight loss.

So, if you're experiencing any of the aforementioned, it's best you seek medical treatment and test. It could be that you're suffering from ulcers caused by H. pylori infection, at which point, you'll probably need doctor-prescribed ulcer medications to neutralize stomach acid and ease the pain and discomfort.

What is the best sleep position for sleeping with a stomach ulcer?

While there's no guarantee that any sleeping position will help with a stomach ulcer, there are some positions that are more likely to temporarily relieve ulcer pain.

Namely, your best bet is to sleep on your back, with your head slightly elevated. This position will take the pressure off your stomach and allow gravity to do its thing, which can help reduce discomfort.

An image of a woman sleeping on a couch with a limited space.

Another option is to sleep on your left side if you can't rest on your back. This position can also help reduce pain, as it takes the pressure off your stomach. Just make sure you don't stress your shoulders or hips. Additionally, it can help keep acid from flowing back into the oesophagus causing GERD-like symptoms and additional discomfort.

But, most importantly, whatever you do, don't sleep on your stomach. This position puts a lot of pressure on your stomach and can actually make ulcer pain worse.

Now, your best bet would be to invest in an adjustable bed. These beds allow you to tailor the bed to your sleeping position while still providing the support and elevation you need.

If you don't want (or are unable) to invest in an adjustable bed, you can also use a wedge pillow to prop yourself up. Just make sure the pillow is at least 15 cm thick so you can get the proper elevation.

Can I use medicine/drugs for stomach ulcers?

As for medication, there are a few options available that can help relieve the stomach ulcer pain and/or promote ulcer healing.

Histamine receptor blockers

The most popular type of medication (mostly because they're available over-the-counter) for stomach ulcers is histamine (H-2) blockers. Histamine is a substance that's released in the body during an allergic reaction. It's also produced in the lining of the stomach, which helps protect the stomach from the acid it produces.

However, when there's too much histamine in the stomach, it can lead to ulcers. Histamine receptor blockers (famotidine, cimetidine, and ranitidine) work by blocking histamine receptors, which help reduce the amount of acid produced in the stomach and can provide relief from ulcer pain.

Proton pump inhibitors

Proton pump inhibitors (PPIs) are another type of medication that can be used to treat stomach ulcers. PPIs (omeprazole, lansoprazole, rabeprazole etc.) work by reducing the amount of hydrochloric acid produced in the stomach, by blocking a particular action of gastric cells responsible for acid secretion. They're typically only available by prescription and are used when histamine receptor blockers haven't worked.


If your stomach ulcer is caused by helicobacter pylori bacterial infection, you'll likely need to take a course of antibiotics. Antibiotics work by killing the bacteria that are causing the infection. Most often, you'll be prescribed amoxicillin, levofloxacin, tetracycline, or clarithromycin.

An image of a bottle of antibiotics.


Finally, we have antacids, or over-the-counter medications like Tums, Maalox, Mylanta, and Rolaids. Antacids work by neutralizing stomach acid and can provide relief from ulcer pain.
They're typically taken after meals or when heartburn or indigestion is present. However, they don't do anything to promote ulcer healing and should only be used on a short-term basis.


What should I do about my diet when suffering from stomach ulcers?

Now, if you want to make it easier on yourself and avoid the burning pain – you'll have to watch what you eat.

There are certain “trigger foods” that can make ulcer pain worse and, unfortunately, you'll have to stay away from them.

The list of food items includes:

Now, we know this sounds like most of the stuff we consume on the daily basis, but that's just something you have to avoid if you want to get quality sleep with a stomach ulcer bugging you.

Unfortunately, it's been proven that no particular diet is helpful – at least not long-term. But, there are some things you can do.

It is generally accepted that a diet that's high in fibre and low in fat and sugar is best. So, a lot of fibre-rich veggies (carrots, broccoli, artichokes, beans, peas), whole grains, low-fat dairy products, and lean meats (chicken, turkey).

balanced diet before bed time

This type of diet could help alleviate some of the symptoms associated with stomach ulcers (not ulcers themselves) and also help with conditions such as constipation and diarrhoea.

In addition, you should also make sure to eat smaller meals more frequently throughout the day, rather than large meals less often. Also, avoid eating close to bedtime so your stomach has time to digest before you shut down.

Pay attention to sleep hygiene

A lot of people believe stress is the one thing causing stomach ulcers, and while that has never been “proven”, there's quite some evidence to support the claim. So, if you want to get rid of discomfort – or at least make it go away for a while – you should focus on reducing stress in your life.
And, one of the best ways to do that is to get quality sleep by practising healthy sleep hygiene.

A happy young man due to healthy sleep hygiene.

No screens two hours before sleep

You've probably heard this one a thousand times, but it bears repeating – stay away from screens at least two hours before sleep.

The blue light emitted by screens (phones, laptops, TVs) suppresses the production of melatonin – the hormone that makes us sleepy.

So, if you want to fall asleep easily and sleep soundly through the night, make sure to avoid screens at least two hours before bedtime.

a man working on a laptop late night in the dark

Optimize your sleep space

Optimizing your sleep space will take no more than a day or two and it will have a profound effect on your sleep quality.

To do that, you should start by making sure your mattress and pillow provide the right amount of support and comfort.

If they're old and lumpy, it might be time to start looking for the best mattress. Also, make sure your sheets are made of breathable material like cotton or linen.

An image of a bedroom with a big floor lamp.

And, last but not least – keep your bedroom cool, dark, and quiet. A white noise machine can help with the latter if you're struggling to find peace.

Skip snacks and soda drinks

Don't eat or drink anything acidic, fatty or sweet close to bedtime. This goes for both food (orange juice, chocolate, chips) and drinks (soda, coffee, energy drinks). All of these can exacerbate the symptoms of heartburn and make it hard to fall asleep. So, if you want to get quality sleep – skip the snacks before bed.

an image of a woman having a late night snack


While you shouldn't do it right before bedtime, moderate exercise has been shown to improve sleep quality.

So, if you want to improve your sleep at the same time – make sure to add some moderate exercise to your daily routine.

Walking, light weightlifting or yoga sessions are all great options.

An image of a beautiful young woman exercising and doing pushups before bed.

When should I see a doctor about stomach ulcers?

So, when should you see a doctor?

If you're experiencing any of the following symptoms, you should definitely make an appointment with your doctor:

As you can see, this list is not exhaustive, but if you're experiencing any other symptoms that are worrying you – don't hesitate to see a doctor. It's your body and your life – treat it with care.

A man sitting in an ordination and talking to a doctor

To sum up…

Stomach ulcers can be painful and disruptive, but with the right lifestyle changes and treatment, they don't have to control your life. So, if you're struggling to get quality sleep – make sure to talk to your doctor and try out some of the tips from this article. You might be surprised by how quickly your sleep improves!

Spread the word

Recommended reading:

Comments (0)

There are no comments yet

About the author

Alex Petrović
Sleep Consultant
A CPD certified Sleep Consultant with more than 2000 hours of research into all the different ways we can get a great night's sleep. As a former insomniac, I know how difficult life can be without a nightly recovery and I love that I get to share everything I've learned with you all. So hopefully we can all sleep soundly!
Related Posts

Sleep Advice to help you snooze

Featured image for numbness in hands while sleeping.
29 April 2024

Numbness in Hands While Sleeping

Waking up to a numb hand can be a puzzling and uncomfortable experience. When the hands tingle, the list of reasons for this condition can b...
A featured image of should you eat bread before bed.
29 April 2024

Bread Before Bed

Bread is a great source of fibre and protein, whilst being low in fat. However, it does vary between the type of bread so this is something ...
Don't Miss Out!
Get the latest reviews, special offers, new releases and more…
'The Luxe Cooling Mattress' by @emmasleepuk  is award-winning!

Tried and Tested by The Sleep Advisors, we've awarded them the 'Best Mattress for Side Sleepers'🏆

Click the link in the bio for more 📖🥸

#thesleepadvisorsuk #awardwinningmattress #emmasleepuk  #mattressreviews
'Award Winning Softness' by @hypniauk 

Tried and Tested by The Sleep Advisors, we've awarded them the 'Best Soft Mattress'🏆

Click the link in bio to read the full review 📖🥸

#thesleepadvisorsuk #awardwinningmattress #hypnia #mattressreviews

The Sleep Advisors cover all the benefits of Panda Products 🐼🐼

Click the link in the bio for more🔗

#ɪɴsᴛᴀʀᴇᴇʟs #instareelsdaily #PandaMattress #thesleepadvisorsuk
The awards continue! @silentnightbeds 'Just Breathe Eco Comfort' receives one today 🥳

Tried and Tested by The Sleep Advisors, we've awarded them the 'Best Pocket Sprung Mattress'🏆

#thesleepadvisors #silentnightbeds #thesleepadvisors #comfortmattress
Details are key for TheSleepAdvisors... especially for those close-ups 👁

We look at every nook and cranky to capture every detail when reviewing mattress and bedding🎥

For our Latest reviews head over to our website via the link in the bio 🔗

#thesleepadvisors #mattressreview #thesleepadvisorsuk
If you want Luxury check out @nectarsleep Premier Hybrid Mattress!😎

Tried and Tested by The Sleep Advisors, we've awarded them the 'Best Luxury Mattress'🏆

Click the link in bio to read the full review 📖🥸

#thesleepadvisorsuk #awardwinningmattress #nectarsleep #mattressreviews
We know how hard it is to find the best mattress online!🧐

Don't worry, The Sleep Advisors are here to solve your problem and it has never been easier to compare mattresses thanks to our Mattress Comparison Tool!

Click the Link in our bio to find the mattress brand that suits your individual needs 🤩
For all your bedding needs, TheSleepAdvisors have you covered! 😁

From Price to Quality, we look at all aspects to enable you to make the best purchase for your needs.

#ɪɴsᴛᴀʀᴇᴇʟs #instareels #sleepadvisorsuk #BeddingEssentials #TheSleepAdvisors
Sent an embarrassing text? Just say you were asleep 😆

Turns out, our brains can get so wired even while catching Z's that we end up sending messages without even waking up! 

 #funfacts #sleepadvisors #TheSleepAdvisors  #DidYouKnow #DidYouKnowThis
Mattress Toppers are key! 🔑  They can bring your mattress to life. Want to learn more? 

The Sleep Advisors have got you covered!😎

#ɪɴsᴛᴀʀᴇᴇʟs #instareelsdaily #instareels #sleepadvisorsuk #reelsofinstagram #MATTRESSTOPPERS
Close button

Don't Miss Out!

Get the latest reviews, special offers, new releases and more…

By submitting this form, you are opting into our mailing lists.
See our privacy policy.

This field is for validation purposes and should be left unchanged.