It is possible for an early ectopic pregnancy to end in miscarriage on its own. However, in most cases it does not, and medical intervention is needed. To treat ectopic pregnancy, the doctor will recommend either a surgical procedure or a medication called methotrexate.