If you think you may have an ectopic pregnancy, your doctor will likely order an ultrasound to confirm the diagnosis. An ectopic pregnancy can often be diagnosed with a transvaginal ultrasound, which is an ultrasound that is performed by placing a small device called a transducer into the vagina.