Most miscarriages happen during the first 12 weeks of pregnancy. Chemical pregnancies—loss within the first five weeks of gestation—are especially common. Around weeks 6 to 8, when a heartbeat is detected, miscarriage risk drops. Only 1% to 5% of miscarriages happen in the second trimester, between 13 and 19 weeks.