Can Metformin Cause Insomnia? What the Evidence Says

Medical Disclaimer

This article is for informational purposes only and does not constitute medical advice. Always consult your physician or a qualified healthcare provider regarding any medical condition or treatment.

Key Takeaways

  • Insomnia is not listed as a side effect in the FDA label for metformin, and reports linking the two are mostly anecdotal.
  • Some observational research suggests metformin users may actually sleep longer, though no randomized trials have confirmed this either way.
  • Nighttime stomach upset, frequent urination from high blood sugar, rare low blood sugar and other health problems are more likely culprits.
  • Metformin alone rarely causes low blood sugar, but the risk rises with insulin, sulfonylureas, skipped meals, hard exercise or alcohol.
  • Keep a sleep and symptom log and talk to your prescriber before changing when or how you take metformin, and never stop it on your own.

Metformin is not known to cause insomnia. Trouble sleeping is not listed as a side effect in the FDA label or in the MedlinePlus metformin guide, and reports linking the two are mostly anecdotal. If you are sleeping badly after starting metformin, an indirect cause such as nighttime stomach upset, high blood sugar or another health issue is more likely. Here is how to sort it out.

What the Metformin Label Lists as Side Effects

The prescribing information for Glucophage reports these as the most common side effects in a placebo-controlled trial:

Side effect Metformin Placebo
Diarrhea 53.2% 11.7%
Nausea or vomiting 25.5% 8.3%
Gas (flatulence) 12.1% 5.5%
Weakness (asthenia) 9.2% 5.5%
Indigestion 7.1% 4.1%
Headache 5.7% 4.8%

The label also lists less common effects such as taste changes, muscle aches, lightheadedness and increased sweating. Insomnia and sleep problems are not on the list. MedlinePlus likewise lists digestive symptoms, weakness, taste changes and headache, but not insomnia.

What Research Says About Metformin and Sleep

The research is limited, and it does not point toward metformin causing insomnia. A 2014 study in Diabetic Medicine looked back at 387 people with type 2 diabetes referred for sleep testing. Those taking metformin slept longer on average (about 6 hours 39 minutes versus 6 hours 3 minutes) and had better sleep efficiency than those not taking it. Because the study was observational, it cannot prove metformin improved sleep, and the authors called for randomized trials.

A 2026 narrative review of metformin and sleep in older adults with type 2 diabetes reached a similar conclusion. It found that available evidence suggests modest improvements in some sleep measures, but noted that the lack of dedicated randomized trials limits firm conclusions. The review mentioned rare reports of vivid dreams and nightmares, which appeared uncommon and generally resolved with dose adjustment.

In short, a few people may notice sleep changes, but there is no good evidence that metformin commonly causes insomnia.

Indirect Reasons You May Sleep Poorly on Metformin

Nighttime stomach upset

Diarrhea, cramping, gas and nausea are the most common metformin side effects, and they are most likely in the first weeks or after a dose increase. If you take a dose with dinner, these symptoms can wake you at night. Our guides on how to stop metformin diarrhea and metformin nausea cover practical fixes to discuss with your prescriber.

High blood sugar and nighttime urination

When blood sugar runs high, your kidneys pull extra water into the urine, which can wake you up to use the bathroom. This is a symptom of diabetes itself, not of metformin. As your blood sugar improves on treatment, nighttime urination may ease.

Low blood sugar during sleep

According to the metformin label, low blood sugar does not occur with metformin alone under usual conditions. It can happen if you eat too little, exercise hard without extra food, drink alcohol, or also take insulin or a sulfonylurea. The National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) lists nightmares or crying out, sweating enough to dampen your sheets, and waking up tired, irritable or confused as possible signs of a low during sleep. A reading below 70 mg/dL (3.9 mmol/L) is generally considered low.

Low vitamin B12

Metformin can lower vitamin B12 levels over time. Low B12 can cause tiredness and nerve symptoms such as tingling or numbness. It is not an established cause of insomnia, but uncomfortable nerve symptoms or fatigue can make sleep feel worse. Learn more about the vitamin B12 test and diabetes.

Other common causes

Sleep problems are common in people with diabetes and prediabetes for many reasons, including sleep apnea, stress, caffeine, late meals, other medicines and pain. According to the National Heart, Lung, and Blood Institute, insomnia often has more than one contributing cause. Our article on diabetes and insomnia explores the links in more detail.

What to Do If You Cannot Sleep After Starting Metformin

  1. Keep a two-week log. Note when you take each dose, what you ate, any stomach symptoms, bathroom trips and how you slept.
  2. Check your blood sugar if you have night sweats or nightmares, especially if you also take insulin or a sulfonylurea.
  3. Share the log with your prescriber. They may suggest changing the timing, lowering the dose for a while or switching to extended-release metformin.
  4. Review other causes. Ask whether snoring, daytime sleepiness or morning headaches warrant testing for sleep apnea.
  5. Do not stop metformin on your own. Stopping can let blood sugar rise, which can itself disrupt sleep.

Get prompt medical help if poor sleep comes with severe tiredness, trouble breathing, stomach pain, vomiting, dizziness or feeling unusually cold. MedlinePlus lists these as possible signs of lactic acidosis, a rare but serious metformin complication.

The Bottom Line

Metformin is not a recognized cause of insomnia, and the limited research that exists does not suggest it commonly harms sleep. If you are sleeping poorly after starting it, look first at nighttime stomach upset, blood sugar swings, low B12 and other common sleep disruptors. Work with your prescriber on timing or formulation changes rather than stopping the medicine. For more on managing blood sugar overall, visit our prediabetes treatment hub.

Frequently Asked Questions

Is insomnia a known side effect of metformin?

No. Insomnia does not appear among the side effects listed in the FDA label for Glucophage or in the MedlinePlus metformin guide. The common side effects are digestive, such as diarrhea, nausea, gas and indigestion. Some people report trouble sleeping after starting metformin, but that does not prove the drug is the cause.

Can metformin cause nightmares or vivid dreams?

A 2026 narrative review of metformin and sleep in older adults noted rare reports of vivid dreams and nightmares, describing them as uncommon and generally resolving with dose adjustment. Nightmares and night sweats can also be signs of low blood sugar during sleep, especially if you also take insulin or a sulfonylurea, so check your blood sugar if this happens.

Should I take metformin in the morning if I cannot sleep?

Ask your prescriber before changing your schedule. Immediate-release metformin is usually taken with meals two or three times a day, and the extended-release form is usually taken once a day with the evening meal. If nighttime stomach upset is keeping you awake, your prescriber may adjust the timing, the dose or the formulation.

Can low vitamin B12 from metformin affect sleep?

Long-term metformin use can lower vitamin B12, and low B12 can cause tiredness and nerve symptoms. Insomnia itself is not an established symptom of low B12 from metformin. If you have ongoing fatigue, tingling or numbness, ask your doctor whether a B12 blood test makes sense.

Sources

  1. U.S. Food and Drug Administration. Glucophage and Glucophage XR (metformin hydrochloride) prescribing information. https://www.accessdata.fda.gov/drugsatfda_docs/label/2017/020357s037s039,021202s021s023lbl.pdf
  2. MedlinePlus. Metformin drug information. U.S. National Library of Medicine. https://medlineplus.gov/druginfo/meds/a696005.html
  3. Kajbaf F, et al. The relationship between metformin therapy and sleep quantity and quality in patients with type 2 diabetes referred for potential sleep disorders. Diabetic Medicine. 2014;31(5):577-580. https://pubmed.ncbi.nlm.nih.gov/24236897/
  4. National Institute of Diabetes and Digestive and Kidney Diseases. Low blood glucose (hypoglycemia). https://www.niddk.nih.gov/health-information/diabetes/overview/preventing-problems/low-blood-glucose-hypoglycemia
  5. National Heart, Lung, and Blood Institute. Insomnia. https://www.nhlbi.nih.gov/health/insomnia