Metformin is primarily used for type 2 diabetes, but is increasingly being used in polycystic ovary syndrome. Metformin, marketed under the tradename Glucophage among others, is the first-line medication for the treatment of type 2 diabetes.