In order to help prevent neural tube defects in your baby, you must take at least 400 mg of folic acid both during and before pregnancy. It is advised that you take this supplement at least till the first 12 weeks of your pregnancy.