How Are Anal Fistulas Mapped and Diagnosed for Surgery?
At a Glance
Surgeons must carefully map the exact path of an anal fistula to protect the anal sphincter muscles during surgery. This is typically done using an endoanal ultrasound (EAUS) or a pelvic MRI to precisely locate the main tunnel, side branches, and any hidden pockets of infection.
To successfully treat an anal fistula, your surgeon needs a detailed map of exactly where the fistula tunnel begins, where it ends, and how it navigates through your pelvic muscles. Because the anal sphincter muscles—which control your bowel movements—are in this same area, knowing the precise path of the tunnel is critical to preserving your bowel control while completely removing the infection [1][2].
Undergoing exams in a sensitive, currently painful area can be scary and embarrassing. However, your care team will use a combination of physical guidelines and advanced imaging to create this map as gently and accurately as possible.
Physical Examination and Goodsall’s Rule
During your initial exam, the doctor will look for the external opening of the fistula on the skin around your anus. Traditionally, surgeons have used a concept called Goodsall’s rule to predict where the tunnel goes inside [3].
Goodsall’s rule works like a clock face. It suggests that if the external hole is on the back half of the anus (toward the tailbone), the tunnel will curve toward the center back (midline) of the anal canal. If the hole is on the front half, the rule suggests the tunnel will go straight in [3].
While Goodsall’s rule is still taught, modern research shows it is often inaccurate, especially for fistulas in the front (anterior) half of the anus [4][3]. Because relying solely on this clinical rule can lack precision, doctors now rely heavily on advanced imaging to see the exact anatomy, which better safeguards your muscles during surgery [3].
Endoanal Ultrasound (EAUS)
Often used as a first step in mapping, an endoanal ultrasound (EAUS) involves inserting a small wand into the anal canal to take sound-wave pictures of the tissues [5].
- Highly accurate: It is excellent at pinpointing the exact location of the internal opening (where the fistula starts inside the rectum) [5][6].
- Practical and fast: It is generally faster and less expensive than an MRI [7]. Many clinics now use 3D endoanal ultrasounds, which give surgeons a detailed, three-dimensional view of the tunnel and muscles [8].
- What to expect: You may be asked to do a minor bowel prep (like a self-administered enema) at home before the test. Because the area is likely already painful from infection, a numbing gel is typically used. If inserting the wand is still too painful to tolerate awake, communicate this to your doctor immediately.
Pelvic MRI
A Pelvic Magnetic Resonance Imaging (MRI) scan is considered the “gold standard” for mapping anal fistulas [9][1].
- The big picture: An MRI provides highly detailed images of the entire pelvic region. It shows not just the main tunnel, but any hidden side-branches or deep pockets of infection (abscesses) [10][2].
- Protecting your muscles: The MRI clearly shows how much of the anal sphincter muscle is involved in the fistula [1]. This allows the surgeon to choose a surgical technique that maximizes healing while protecting your bowel control [2].
- Complex cases: For fistulas that have returned after previous surgeries, or those associated with conditions like Crohn’s disease, an MRI is considered essential [11][12].
- What to expect: You will need to lie relatively still on your back or stomach inside the MRI machine for about 30 to 45 minutes. An IV is usually placed in your arm to deliver a contrast dye (often gadolinium), which helps active inflammation and hidden abscesses light up clearly on the scan.
Exam Under Anesthesia (EUA)
Sometimes, the most accurate map is created in the operating room. An Exam Under Anesthesia (EUA) is when the surgeon physically traces the fistula tract while you are completely asleep and feeling no pain. This is often done if an awake ultrasound is too painful to tolerate, or it is performed immediately before the actual surgery begins to confirm what the imaging showed.
In many cases, surgeons use both an endoanal ultrasound and a pelvic MRI because the two tests complement each other, providing the safest and most accurate roadmap for your surgery [12].
Common questions in this guide
Why do surgeons need to map an anal fistula before surgery?
What is an endoanal ultrasound?
Will I need an MRI to diagnose my anal fistula?
What if a fistula exam is too painful?
What is Goodsall's rule for anal fistulas?
Questions to Ask Your Doctor
Curated prompts to bring to your next appointment.
- 1.What pain relief options, such as numbing gel or sedation, do you offer during an endoanal ultrasound if the area is severely inflamed?
- 2.Will you be ordering a pelvic MRI with IV contrast to look for hidden abscesses before my surgery?
- 3.If an awake exam is too painful for me to tolerate, can we perform the mapping during an exam under anesthesia instead?
- 4.Based on my physical exam, how much of my anal sphincter muscle do you suspect is involved in the fistula tunnel?
Questions For You
Tap a prompt to share your answer — we'll use it plus this page's context to start a tailored conversation.
Related questions
References
References (12)
- 1
How I Do It: MRI Approach to Perianal Fistulas.
Stoker J, Halligan S
Radiology 2026; (319(2)):e251909 doi:10.1148/radiol.251909.
PMID: 42117990 - 2
Including video and novel parameter-height of penetration of external anal sphincter-in magnetic resonance imaging reporting of anal fistula.
Garg P, Kaur B, Yagnik VD, Dawka S
World journal of gastrointestinal surgery 2022; (14(4)):271-275 doi:10.4240/wjgs.v14.i4.271.
PMID: 35664366 - 3
It is time to retire Goodsall's Rule: the Midline Rule is a more accurate predictor of the true and natural course of anal fistulas.
Cirocco WC, Reilly JC
Techniques in coloproctology 2020; (24(4)):317-321 doi:10.1007/s10151-020-02167-z.
PMID: 32107684 - 4
Predictive accuracy of Goodsall’s rule for fistula-in-ano
Jayarajah U, Samarasekera DN
The Ceylon medical journal 2017; (62(2)):97-99 doi:10.4038/cmj.v62i2.8474.
PMID: 28697591 - 5
Three-dimensional endoanal ultrasound should be considered as first-line diagnostic tool in the preoperative work-up for perianal fistulas : The authors reply to the letter: Mathew RP, Patel V, Low G. Caution in using 3D-EAUS as the first-line diagnostic tool in the preoperative work up for perianal fistulas. Radiol Med 2020;125:155-156.
Brillantino A, Iacobellis F, Reginelli A, et al.
La Radiologia medica 2020; (125(7)):695-696 doi:10.1007/s11547-020-01160-8.
PMID: 32140987 - 6
Comparison of Endoanal Ultrasound with Clinical Diagnosis in Anal Fistula Assessment.
Sirikurnpiboon S, Phadhana-anake O, Awapittaya B
Journal of the Medical Association of Thailand = Chotmaihet thangphaet 2016; (99 Suppl 2()):S69-74.
PMID: 27266219 - 7
Current update on the role of endoanal ultrasound: a primer for radiologists.
Kumar S, Chaudhary RK, Shah SS, et al.
Abdominal radiology (New York) 2024; (49(8)):2873-2890 doi:10.1007/s00261-024-04300-0.
PMID: 38580791 - 8
Impact of Preoperative Three-Dimensional Endoanal Ultrasound on the Surgical Outcome of Primary Fistula in Ano. A Multi-Center Observational Study of 253 Patients.
Brillantino A, Iacobellis F, Brusciano L, et al.
Surgical innovation 2023; (30(6)):693-702 doi:10.1177/15533506231204821.
PMID: 37776197 - 9
A retrospective study on the diagnostic values of magnetic resonance examination of the anal canal in the classification of anal fistula.
Wu Y, Wang M
JPMA. The Journal of the Pakistan Medical Association 2025; (75(Suppl 2)(7)):S85-S91 doi:10.47391/JPMA.SRPH-14.
PMID: 41248643 - 10
High-resolution direct magnetic resonance imaging fistulography with hydrogen peroxide for diagnosing anorectal fistula: A preliminary retrospective study.
Chang CC, Qiao LH, Zhang ZQ, et al.
World journal of radiology 2025; (17(1)):101221 doi:10.4329/wjr.v17.i1.101221.
PMID: 39876881 - 11
Magnetic resonance imaging findings in patients with initial manifestations of perianal fistulas.
Waheed KB, Shah WJ, Altaf B, et al.
Annals of Saudi medicine 2020; (40(1)):42-48 doi:10.5144/0256-4947.2020.42.
PMID: 32026703 - 12
Preoperative Assessment of Perianal Fistulas with Combined Magnetic Resonance and Tridimensional Endoanal Ultrasound: A Prospective Study.
Varsamis N, Kosmidis C, Chatzimavroudis G, et al.
Diagnostics (Basel, Switzerland) 2023; (13(17)) doi:10.3390/diagnostics13172851.
PMID: 37685389
This page explains anal fistula diagnostic procedures for educational purposes only and does not constitute medical advice. Always consult your surgeon or gastroenterologist regarding your specific condition and diagnostic tests.
Get notified when new evidence is published on Anal fistula.
We monitor PubMed for new peer-reviewed studies on this topic and email a short summary when something meaningful changes.