Laws vary from state to state, but generally, terminations are performed up until the fetus has reached viability at about 24 weeks' gestation. After week 24, abortions are generally only performed when necessary for the preservation of maternal life.