Metformin can cause heartburn and indigestion in some people, especially in the first few weeks or after a dose increase. It doesn’t make your stomach produce more acid. Instead, heartburn is part of metformin’s wider set of digestive side effects, which also includes nausea, bloating, abdominal discomfort and diarrhea. These affect a significant minority of people who take it. Bloating and an unsettled stomach can push acid upward, and a large tablet that lingers in the esophagus can irritate it directly.
The good news is that metformin heartburn is usually manageable. Taking it with food, building up the dose slowly and switching to the extended-release (ER or XR) version all reduce digestive side effects. It’s also worth knowing that type 2 diabetes itself raises the risk of reflux, so metformin isn’t always the culprit.
Don’t stop or change your metformin without talking to your doctor. The tips below are for discussing with your prescriber.
Key Takeaways
- Digestive side effects are the most common problem with metformin, affecting up to around 20% of people. Diarrhea and nausea are the most frequent, but indigestion and heartburn are also reported.
- Metformin doesn’t increase stomach acid. Heartburn is more likely to come from bloating, stomach upset and slower digestion.
- Immediate-release metformin causes more bloating and diarrhea than the extended-release form.
- Taking metformin with or right after a meal, with a full glass of water, and staying upright afterward can help.
- Diabetes itself, especially with nerve damage, is linked to more reflux, partly through slower stomach emptying.
- Long-term metformin lowers vitamin B12, and combining it with a PPI raises that risk further, so ask about B12 testing if you take both.
- GLP-1 drugs like Ozempic, often added to metformin, are more strongly linked to reflux than metformin itself.
Does Metformin Cause Heartburn?
It can, but it’s not one of the most common side effects. Metformin’s digestive effects are well known. They include diarrhea, nausea, gas, indigestion, vomiting and abdominal discomfort, with diarrhea and nausea the most frequent [Bonnet and Scheen, Diabetes, Obesity and Metabolism, 2017]. A meta-analysis of 71 randomized trials found that people on metformin had a significantly higher risk of abdominal pain, nausea and diarrhea than people on placebo or other diabetes drugs [Nabrdalik et al., Frontiers in Endocrinology, 2022].
Heartburn tends to come as part of that picture, alongside indigestion and an upset stomach, rather than on its own. It’s most likely when you first start metformin or when your dose goes up, and for many people it settles as the body adjusts.
Why Metformin Can Cause Heartburn
Metformin doesn’t act on the stomach’s acid-producing cells the way coffee, alcohol or some other medicines do. The heartburn link is more indirect.
Bloating and gas push upward
Much of metformin’s activity happens in the gut. It changes gut bacteria, affects bile acid absorption and increases fluid in the intestine. That can cause gas, bloating and a feeling of fullness. A swollen, pressurized abdomen pushes on the stomach and can force acid past the lower esophageal sphincter, the valve that normally keeps it down. I explain this in more detail in acid reflux and gas.
Nausea and an unsettled stomach
Nausea and indigestion often come with burping and a sour, acidic feeling in the chest or throat. Some people describe this as heartburn even when it’s more stomach upset than true reflux.
Large tablets can irritate the esophagus
Metformin tablets are big, especially the 850 mg and 1,000 mg strengths. Any large pill taken with too little water, or just before lying down, can stick in the esophagus and irritate the lining, causing a burning feeling behind the breastbone. Taking it with a full glass of water while sitting or standing reduces this.
Timing with meals
Taking metformin on an empty stomach makes digestive side effects more likely. Taking it with food is the standard advice for this reason.
Is It the Metformin or the Diabetes?
This question is worth asking. Type 2 diabetes raises the risk of reflux by itself, with or without metformin. In one study of 150 people with type 2 diabetes, 40.7% had reflux symptoms, far higher than the roughly 14% seen in the general population. Symptoms were more common in people with diabetic nerve damage [Wang et al., World Journal of Gastroenterology, 2008].
There are a few reasons for this. Over time, high blood sugar can damage the nerves that control the esophagus and stomach, which slows stomach emptying (gastroparesis) and weakens the valve at the top of the stomach. Excess weight, which often comes with type 2 diabetes, also puts more pressure on the stomach. See my guide to diabetes and acid reflux for the full picture.
Clues that metformin is the cause include heartburn that started within days or weeks of beginning metformin or increasing the dose, that comes with other gut side effects like nausea or diarrhea, and that’s worst within a few hours of your dose.
What About Metformin With Ozempic or Mounjaro?
Many people take metformin alongside a GLP-1 medication like Ozempic, Wegovy or Mounjaro. If reflux started or got worse after one of these was added, the GLP-1 drug is the more likely cause. GLP-1 drugs slow stomach emptying, and in a large study of people with type 2 diabetes, starting a GLP-1 medication was linked to a higher risk of reflux disease and its complications than starting other second-line diabetes drugs [Liu et al., Gut, 2024].
For more, see does Ozempic cause heartburn and does Mounjaro cause acid reflux.
How to Reduce Metformin Heartburn
These steps are commonly recommended to reduce metformin’s digestive side effects. Discuss any change to your medication with your doctor first.
- Take it with food. Take metformin with a meal or straight after, not on an empty stomach.
- Use a full glass of water and stay upright. Swallow tablets with plenty of water and don’t lie down for at least 30 minutes afterward.
- Ask about extended-release metformin. The ER/XR form releases the drug more slowly and causes less bloating and diarrhea than immediate-release [Nabrdalik et al., Frontiers in Endocrinology, 2022]. Many people who struggle on regular metformin do much better on ER.
- Build up slowly. Starting low and increasing the dose gradually gives your gut time to adjust [Bonnet and Scheen, Diabetes, Obesity and Metabolism, 2017].
- Don’t take it at bedtime with a late meal. If you take an evening dose, have it with an earlier dinner so you’re not lying down on a full, unsettled stomach.
- Cut common reflux triggers. Large meals, fatty food, alcohol, coffee, chocolate, mint and fizzy drinks all add to the problem. My LPR foods to avoid list is a good starting point.
- Try an alginate for flare-ups. An alginate like Gaviscon Advance forms a raft on top of the stomach contents that physically blocks reflux. It doesn’t interfere with blood sugar.
Diet changes are especially useful here, because they help both your reflux and your blood sugar. The Wipeout Diet Plan focuses on smaller, lower-fat, low-acid meals, which suit both conditions.
Metformin, PPIs and Vitamin B12
If you take metformin and a PPI like omeprazole for reflux, there’s one extra thing to know. Both lower vitamin B12 absorption.
In the long-running Diabetes Prevention Program, each year of metformin use was linked to a 13% higher risk of B12 deficiency, and the researchers recommended considering routine B12 testing [Aroda et al., Journal of Clinical Endocrinology and Metabolism, 2016]. A 2025 study of over 11,000 people with type 2 diabetes found that taking a PPI on top of metformin raised the risk of B12 deficiency further [Jung et al., Journal of Diabetes Investigation, 2025].
Low B12 can cause tiredness, numbness or tingling, a sore tongue and memory problems, and it can be mistaken for diabetic nerve damage. If you take both drugs, ask your doctor about checking your B12 level. More detail is in does omeprazole cause B12 deficiency.
When to See Your Doctor
Talk to your doctor if:
- Heartburn hasn’t settled after a few weeks on metformin
- You have reflux more than twice a week, or it wakes you at night
- You have trouble or pain swallowing, or food feels stuck
- You’re vomiting, losing weight without trying, or have black or tarry stools
- Side effects are making you skip doses
Get urgent help for severe stomach pain with vomiting, unusual muscle pain, breathing difficulty or feeling very weak or drowsy. These can rarely be signs of lactic acidosis. And get emergency help for chest pain that feels like pressure or spreads to your arm, jaw or back. People with diabetes are at higher risk of heart disease, and heart symptoms can feel like heartburn.
Conclusion
Metformin can cause heartburn, usually as part of its broader digestive side effects rather than by increasing stomach acid. It’s most common when you first start or raise the dose. Taking it with food and plenty of water, staying upright, building up slowly and switching to the extended-release form all help, and many people find the problem fades as their body adjusts. Diabetes itself raises reflux risk, and GLP-1 drugs added alongside metformin are a more common culprit, so it’s worth looking at the whole picture with your doctor.
Whatever is driving your reflux, the diet side is where you have the most control, and it pays off twice when you have diabetes. The Wipeout Diet Plan is my complete, step-by-step guide to calming reflux through food. It was originally designed around LPR, the throat-based form of reflux, but because it targets the same root causes, it works just as well for GERD and everyday heartburn. It shows you which foods to cut, what to eat instead and how to time your meals, with a full meal plan, so you’re not left guessing what’s safe.
Frequently Asked Questions
Can metformin cause heartburn?
Yes, in some people. Heartburn and indigestion are part of metformin’s digestive side effects, which also include nausea, bloating and diarrhea. They’re most common when you start metformin or increase the dose.
Does metformin increase stomach acid?
No. Metformin doesn’t make the stomach produce more acid. Heartburn on metformin is more likely to come from bloating, stomach upset, slower digestion or a tablet irritating the esophagus.
Is extended-release metformin better for heartburn?
It’s generally easier on the gut. Studies show immediate-release metformin causes more bloating and diarrhea than extended-release, and many people with digestive side effects do better after switching. Ask your doctor if it’s an option.
When is the best time to take metformin to avoid heartburn?
With a meal or straight after, with a full glass of water, while you’re sitting or standing. Avoid taking it right before lying down.
Can I take omeprazole with metformin?
They’re often taken together and there’s no major interaction, but both lower vitamin B12 levels over time. If you take both long term, ask your doctor about regular B12 checks.
Can I take Gaviscon or Tums with metformin?
Alginates like Gaviscon Advance and antacids like Tums are generally fine to use with metformin for occasional heartburn. Check with your pharmacist if you take other medications, as antacids can affect the absorption of some drugs.
Does metformin heartburn go away?
Often, yes. Digestive side effects are usually worst in the first few weeks and after dose increases, and many people find they settle as the body adjusts. If they don’t, talk to your doctor about extended-release metformin or other options.
Research & References
- [Bonnet and Scheen, Diabetes, Obesity and Metabolism, 2017] — Review of metformin gastrointestinal intolerance, listing diarrhea, nausea, flatulence, indigestion, vomiting and abdominal discomfort, and recommending slow titration and extended-release formulations.
- [Nabrdalik et al., Frontiers in Endocrinology, 2022] — Meta-analysis of 71 randomized trials showing a higher risk of abdominal pain, nausea and diarrhea with metformin, and more bloating and diarrhea with immediate-release than extended-release metformin.
- [Wang et al., World Journal of Gastroenterology, 2008] — Reflux symptoms were present in 40.7% of 150 people with type 2 diabetes and were more common in those with diabetic neuropathy.
- [Liu et al., Gut, 2024] — In people with type 2 diabetes, starting a GLP-1 receptor agonist, particularly a shorter-acting one, was associated with a higher risk of GERD and its complications than other second-line diabetes drugs.
- [Aroda et al., Journal of Clinical Endocrinology and Metabolism, 2016] — Each year of metformin use was associated with a 13% higher risk of vitamin B12 deficiency, and the authors recommended considering routine B12 testing.
- [Jung et al., Journal of Diabetes Investigation, 2025] — In a matched cohort of 11,200 people with type 2 diabetes, metformin plus a PPI was linked to a higher risk of vitamin B12 deficiency than metformin alone (adjusted hazard ratio 1.18).
David Gray
12 years living with LPR · Consultant & researcher
I've lived with LPR for twelve years — the misdiagnoses, the PPI courses that did nothing, the slow work of figuring out what actually helps. Wipeout Reflux is where I translate the research into plain terms for people stuck in the same place. Every claim here is sourced to peer-reviewed work, and I consult one-to-one with LPR sufferers.

