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
- Keep a two-week log. Note when you take each dose, what you ate, any stomach symptoms, bathroom trips and how you slept.
- Check your blood sugar if you have night sweats or nightmares, especially if you also take insulin or a sulfonylurea.
- Share the log with your prescriber. They may suggest changing the timing, lowering the dose for a while or switching to extended-release metformin.
- Review other causes. Ask whether snoring, daytime sleepiness or morning headaches warrant testing for sleep apnea.
- 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.