A doctor will conduct an ultrasound to confirm a pregnancy loss to check for a heartbeat. However, it's important to note that a fetal heartbeat typically develops around 6.5–7 weeks of gestation. Before this time, the absence of a heartbeat may not necessarily indicate a loss. To ensure accuracy, the doctor might perform multiple scans on different days to confirm the diagnosis of a pregnancy loss.