Metformin may cause some side effects, including stomach symptoms such as diarrhea, bloating, stomach pain, gas, indigestion, constipation, and heartburn. Metformin may give you an unpleasant taste in your mouth. Metformin may also cause headaches, make your skin flush, cause changes to your fingernails, and cause muscle pain.