The duration of a pregnancy is measured by gestational age (or the amount of time elapsed since the first day of the last menstrual period). A normal gestation lasts 40 weeks or 279 days. If delivery occurs before 37 weeks gestation, the baby is considered prematurely born.