The short explanation
Many people with ulcers can fast safely once the ulcer has healed and symptoms are controlled, but it is best to discuss this with your doctor first. Long gaps without food can make ulcer pain feel worse for some people, especially duodenal ulcers, which often hurt when the stomach is empty. If your ulcer is still healing or you are on treatment, your doctor may advise avoiding long fasts for now, or adjusting the timing of medicines around your fasting schedule. Breaking the fast with a light, gentle meal rather than a large, oily or spicy one can help.
What depends on your situation
The parts of this that change from person to person. Uncertainty is stated, not hidden.
- Some fasts allow water or fruit; if yours does, these can reduce discomfort.
- Avoid taking painkillers like ibuprofen, diclofenac or aspirin on an empty stomach.
- Pay attention to warning signs, especially if you feel faint, have black stools, or vomit, during or after a fast.
What this answer cannot determine
The boundary of online education. These need a clinician who can see you.
- This cannot tell whether fasting is safe for you. Your doctor knows your ulcer history and current treatment.
Questions for your clinician
Take these with you. You can add any of them to an appointment card.
- Is my ulcer fully healed?
- Is it safe for me to fast?
- How should I time my medicines around fasting?
- What warning signs should I watch for?
When to seek help
Clinician-approved guidance for this topic. When in doubt, being seen is never the wrong choice.
Emergency — call 112 now
- Call 112 if you vomit blood, pass black stools, feel faint, or have sudden severe belly pain.
Book an appointment soon
- See your doctor within a few days if ulcer pain returns during fasting periods.
Raise it at a routine appointment
- Book a routine visit before the next fasting period to plan ahead.
Sources
The evidence this explanation is built on.
- Stomach ulcer NHS
- Peptic ulcers (stomach ulcers) National Institute of Diabetes and Digestive and Kidney Diseases (NIH)
Who wrote and reviewed this
Every AskHim answer names its author. A clinically reviewed answer also names the clinician who signed it off — if no clinician is named below, it has not been clinically reviewed.
- Author
- AskHim Editorial (AI-assisted)
- Clinical reviewer
- Nobody yet No clinician has signed this answer off. That is what the “Editorially reviewed” badge means, and why it does not say “Clinically reviewed”. It was written and checked by AskHim’s editorial team against the sources listed above, and it is queued for a clinician who works in this area.
- Review status
- Editorially reviewed
- Last reviewed
- Last reviewed 11 November 2026
- Version
- 1
Correction history
Substantive changes are listed, not quietly edited away.
No corrections have been made since this answer was first published.
Did this answer your question?
Whatever you choose is filed against this version of the answer, never against you, and it is never shown as a count.
“Explain more simply” asks which part was hard to follow, so the author knows what to rewrite. “My question is different” tells the editorial team this answer missed your point, then lets you ask your own question privately. Nothing about you is sent with either.
Saving, following up and reporting are all private. Nothing you do on this page is visible to other readers or to the doctor who wrote it, unless you ask a question.