On this page
- What is an HSG test?
- Why HSG is part of a fertility workup
- When HSG is not done
- How to prepare for an HSG
- What happens during the procedure
- After the procedure: what is normal and what is not
- Alternatives to HSG
- Folic acid while you are trying to conceive
- When to talk to a clinician
- Frequently asked questions
- Sources
- Hysterosalpingography (HSG) is an X-ray procedure that shows the inside of the uterus and whether the fallopian tubes are partly or fully blocked.
- It is one of several imaging tests that may be part of an infertility evaluation.
- HSG is best done in the first half of the menstrual cycle (days 1 to 14), and it is not done during pregnancy or with a pelvic infection.
- Cramping, sticky discharge, and light bleeding afterward are common; severe problems are rare.
- While trying to conceive, USPSTF recommends a daily supplement with 400 to 800 mcg of folic acid, starting at least one month before conception.
An HSG test (hysterosalpingography) is an X-ray procedure that shows the inside of the uterus and fallopian tubes, most often to see whether the tubes are partly or fully blocked.1 It can also show whether the inside of the uterus is a normal size and shape.1 This page explains why HSG is used in a fertility workup, how it is done according to ACOG, what to expect afterward, alternatives, and why folic acid belongs in the plan for anyone trying to conceive.
What is an HSG test?
During HSG, a contrast agent (a fluid containing dye) is placed in the uterus and fallopian tubes. The dye shows up on an X-ray screen, outlining the inner size and shape of the uterus and tubes and showing how the fluid moves through them.1 If the tubes are open, the fluid spills slowly out of their far ends and is absorbed by the body.1
The fallopian tubes are the passages an egg travels through from the ovary to the uterus.2 Scarring or blockage of the tubes, from past sexually transmitted infections or endometriosis, is one of the health problems that can affect fertility.2 HSG looks for that kind of scarring and for abnormalities in the uterus that can lead to infertility and pregnancy problems.1
Why HSG is part of a fertility workup
An infertility evaluation includes exams and tests to try to find why a couple has not become pregnant. If a cause is found, treatment may be possible, and in many cases infertility can be treated successfully even when no cause is found.2
ACOG notes that experts recommend an evaluation at these points:2
| Age | When to consider an infertility evaluation |
|---|---|
| Under 35 | After 1 year of regular sex without birth control |
| Older than 35 | After 6 months of trying |
| Older than 40 | Talk with an ob-gyn now |
Basic testing for women may include blood tests (progesterone to check ovulation, thyroid function, prolactin, and ovarian reserve), a urine test to detect ovulation, and imaging tests and procedures.2 HSG is one of those imaging options, alongside ultrasound, sonohysterography, hysteroscopy, and laparoscopy.2 Not everyone has every test, and some are chosen based on earlier results.2 Testing for men often starts with a semen analysis.2
If you are tracking ovulation at home while you wait for an evaluation, our guide to the best ovulation tests explains how urine LH tests work.
When HSG is not done
ACOG lists these reasons HSG is not done:1
- You are pregnant (you may be asked to take a urine pregnancy test before the procedure)
- You have a pelvic infection
- You have uterine bleeding at the time of the procedure
- You have a moderate to severe allergy to contrast dye
HSG is best done in the first half of the menstrual cycle (days 1 to 14), which reduces the chance that you could be pregnant.1 Our page on the pregnancy blood test explains how hCG tests detect pregnancy.
How to prepare for an HSG
Talk with your ob-gyn about pain relief when you first discuss the procedure.1 Options may include an over-the-counter pain reliever taken about an hour beforehand, or local anesthesia (a cream, gel, or injection that numbs the cervix) given right before the procedure.1 In some cases you may be given an antibiotic to take before and after HSG.1
HSG is done in a hospital, clinic, or ob-gyn office.1 Most people can drive themselves home, but you may not feel well afterward, so consider arranging a ride.1
What happens during the procedure
ACOG describes the steps this way:1
- You lie on your back with your feet positioned as for a pelvic exam. A speculum is placed in the vagina so the cervix can be seen, and the cervix is cleaned.
- Local anesthesia may be applied to the cervix.
- The dye is introduced in one of two ways: a cannula inserted into the cervix, or a thin plastic tube with a small balloon at the end that is inflated to hold it in place in the uterus.
- The speculum is removed and you are positioned under the X-ray machine. The fluid is placed slowly into the uterus and tubes, which may cause cramping. If the tubes are blocked, the fluid causes them to stretch.
- X-ray images are taken as the fluid fills the uterus and tubes, and you may be asked to change position.
- The speculum and cannula or tube are removed after the images are taken.
After the procedure: what is normal and what is not
Afterward you can expect sticky vaginal discharge as some fluid drains out, and it may be tinged with blood. Use a pad rather than a tampon.1 You may also have slight vaginal bleeding, cramps, or feel dizzy, faint, or sick to your stomach.1
Severe problems after HSG are rare. They include an allergic reaction to the dye, injury to the uterus, or pelvic infection.1
Alternatives to HSG
Other procedures can provide some of the same information, but not all of them show the fallopian tubes.1
| Procedure | What it shows | Shows the fallopian tubes? |
|---|---|---|
| HSG | Inside of the uterus and whether the tubes are blocked 1 | Yes 1 |
| Laparoscopy | Fallopian tubes, ovaries, and outside of the uterus; requires general anesthesia 12 | Yes 2 |
| Hysteroscopy | Detailed view of the inside of the uterus 1 | No 1 |
| Sonohysterography | Inside of the uterus by ultrasound 1 | No 1 |
| Sonohysterosalpingography | Uterine lining by ultrasound, and how saline flows into the tubes 1 | Yes, by tracking saline flow 1 |
Your ob-gyn or a reproductive endocrinologist (an ob-gyn with special training in infertility) will recommend which tests fit your situation.2
Folic acid while you are trying to conceive
If you are having an HSG as part of a fertility workup, it is a good moment to check your folic acid. USPSTF recommends that everyone planning or capable of pregnancy take a daily supplement containing 400 to 800 mcg of folic acid, starting at least one month before conception and continuing through the first two to three months of pregnancy.34 CDC recommends 400 mcg of folic acid every day for everyone who could become pregnant.5
Timing is the reason. The neural tube normally closes about 26 to 28 days after fertilization, often before a pregnancy is recognized.46 Folic acid is the only form of folate shown in studies to help prevent neural tube defects, so look for "folic acid" on the Supplement Facts panel.75 More is not better for average-risk people, and fertility claims for extra folic acid in people with adequate folate are unproven.89
Some situations call for preconception counseling rather than a standard dose, including a previous pregnancy affected by a neural tube defect, a personal, partner, or family history of NTDs, certain antiseizure medicines, malabsorption after bariatric surgery, pregestational diabetes, and obesity.103 For details, see folic acid before pregnancy and how much folic acid to take for pregnancy. If you are weighing other products, our guide to fertility supplements for women explains what the evidence does and does not support.
When to talk to a clinician
Bring a list of your medicines and supplements, including any prenatal vitamin, to your fertility appointment.211
Frequently asked questions
What is an HSG test used for?
An HSG looks for scarring or abnormalities in the uterus or fallopian tubes that can lead to infertility and pregnancy problems. It is often used to see whether the fallopian tubes are partly or fully blocked 1.
Does an HSG test hurt?
When in my cycle should I have an HSG?
ACOG says it is best done in the first half of the menstrual cycle, days 1 to 14, because this lowers the chance that you could be pregnant. You may be asked to take a urine pregnancy test first 1.
Can I drive home after an HSG?
Most people can drive themselves home, but you may not feel well afterward, so ACOG suggests considering arranging a ride 1.
Sources
- American College of Obstetricians and Gynecologists (ACOG). Hysterosalpingography (HSG) (FAQ143).
- American College of Obstetricians and Gynecologists (ACOG). Evaluating Infertility (FAQ136).
- U.S. Preventive Services Task Force (USPSTF). Folic Acid Supplementation to Prevent Neural Tube Defects: Recommendation.
- U.S. Preventive Services Task Force (USPSTF). Folic Acid Supplementation to Prevent Neural Tube Defects: Final Recommendation Statement.
- Centers for Disease Control and Prevention (CDC). About Folic Acid.
- NHS (UK National Health Service). Common questions about folic acid.
- Centers for Disease Control and Prevention (CDC). Folic Acid: Facts for Clinicians.
- Centers for Disease Control and Prevention (CDC). MTHFR Gene Variant and Folic Acid Facts.
- NIH Office of Dietary Supplements. Folate - Health Professional Fact Sheet.
- American College of Obstetricians and Gynecologists (ACOG). Prepregnancy Counseling.
- MedlinePlus Magazine, NIH. Did You Know? Supplements and Medications Can Interact in Unexpected Ways.
This article is for general education and is not medical advice. Doses and needs differ from person to person, so talk with your clinician or pharmacist about your situation. Read our editorial policy and medical disclaimer.



