Doctors prescribe metformin to treat people with type 2 diabetes or polycystic ovary syndrome (PCOS). In rare cases, metformin may cause hair loss. Learn more here.