I took it until the end of my first trimester. There is some thought that it can help prevent miscarriage. FWIW, in that pregnancy, I had gestational diabetes (tested positive about eight weeks after stopping), but in my second pregnancy where I did not start off on metformin, I did not.