A miscarriage is the loss of pregnancy before the 20-week mark in the pregnancy. The medical term for a miscarriage is spontaneous abortion.