Fertility issues, including difficulty conceiving and recurrent pregnancy loss, can have many different causes. Doctors often order a variety of tests in the effort to learn why a patient has trouble getting or staying pregnant. These can include blood tests, genetic screening, biopsy, and imaging tests such as sonohysterography or hysterosalpingography (HSG). In this article, we’ll explore how HSG works, how it can help to identify the cause of fertility issues, and what to expect if you undergo this test.