Residency Match Algorithm: How the NRMP Match Works
Free, no sign-up to start.
How the residency match algorithm pairs applicant and program rank order lists, why true preference wins, and how interviews shape your rank.
Free, no sign-up to start.
The residency match algorithm is a computer formula based on the Nobel Prize-winning Gale-Shapley stable marriage framework that pairs residency applicants with training programs using each side's rank order list. Run primarily by the National Resident Matching Program (NRMP) for the Main Residency Match, this match algorithm residency services rely on places graduates into 3 to 7 years of training. Nearly 75% of U.S. MD and DO graduates match at one of their top 3 programs, and more than 90% of U.S. MD and DO seniors matched to a position in 2024, per NRMP figures reported by AAMC News. Sources: AAMC News: 8 things to know about residency and The Match, AAMC News: Ranking residency programs on vibes, AAMC: Best Practices for Creating and Conducting Residency Interviews. Last checked November 12, 2026.
On this page
- How the residency match algorithm works
- Step-by-step walkthrough: tentative holds, bumping, and true preference
- Main Residency Match, Couples Match, specialty matches, and SOAP
- Timeline from residency application to Match Day
- How medical students rank programs, and why fit leads
- How residencies differ in PA and nursing programs
- What the match algorithm means for health program and residency interviews
- How to practice structured interviews before rank lists lock
- Practice question
- Frequently asked questions
- Sources
How the residency match algorithm works
Instead of accepting rolling admission offers one by one, residency applicants enter a matching service after interviews finish. As AAMC Careers in Medicine outlines, matching services use a computer algorithm to align applicants' preferences with residency programs' preferences.
The math behind the Main Residency Match dates back to the 1960s, when Lloyd Shapley and David Gale developed the stable marriage algorithm. In the 1980s, Alvin Roth showed that the NRMP algorithm succeeded largely because it rested on that Gale-Shapley foundation, and in 2012 Shapley and Roth received the Sveriges Riksbank Prize in Economic Sciences in Memory of Alfred Nobel.
Because your spot on a program's rank order list depends heavily on interview day, Confetto offers AI mock interviews in traditional, panel, and MMI formats with rubric-based feedback. Start your free week.
- Applicant rank order list. Your private, ordered list of interviewed programs where you are willing to train.
- Program rank order list. Each residency program's private, ordered list of interviewed candidates it is ready to train.
- Tentative hold and bumping. A placement stays provisional while the algorithm runs and changes only if that program ranked another proposing applicant higher.
Step-by-step walkthrough: tentative holds, bumping, and true preference
Watching a small run step by step shows why you cannot game the residency match algorithm. Below is a hypothetical scenario created by our team to illustrate Gale-Shapley stable matching. All three applicants and both hospitals are invented.
Suppose Maya, Devon, and Priya apply to Metro Hospital and Valley Medical, and each hospital has 1 open position. Maya and Devon rank Metro first and Valley second, while Priya ranks Valley first and Metro second. Metro ranks Devon first, ranks Maya second, and leaves Priya unranked. Valley ranks Maya first, Priya second, and Devon third.
Notice what would happen if Maya guessed Metro preferred Devon and ranked Valley first to play it safe. She would match at Valley immediately, the exact same result she got by ranking Metro first. Worse, if Devon had ranked a third hospital first instead, Maya's attempt to play it safe would have cost her an open spot at Metro. Ranking Valley second also never hurt Maya on Valley's list, where she stayed ahead of Priya. Ordering programs strictly by your true preference is always your strongest move.
| Algorithm step | Applicant action | Program check | Status after step |
|---|---|---|---|
| Step A | Maya proposes to her first choice, Metro Hospital | Metro ranked Maya second and has an open position | Maya is tentatively matched at Metro |
| Step B | Devon proposes to his first choice, Metro Hospital | Metro compares Devon (first) with Maya (second) and prefers Devon | Devon holds Metro tentatively, and Maya is bumped |
| Step C | Priya proposes to her first choice, Valley Medical | Valley ranked Priya second and has an open position | Priya is tentatively matched at Valley |
| Step D | Bumped from Metro, Maya proposes to Valley Medical | Valley compares Maya (first) with Priya (second) and prefers Maya | Maya holds Valley tentatively, and Priya is bumped |
| Step E | Bumped from Valley, Priya proposes to Metro Hospital | Metro did not rank Priya on its rank order list | Devon matches at Metro, Maya matches at Valley, and Priya goes unmatched |
Main Residency Match, Couples Match, specialty matches, and SOAP
More than one matching system operates in the United States. The NRMP Main Residency Match is the largest, placing graduates into 3 to 7 years of residency training. Most residency programs last 3 to 5 years, though subspecialty training can extend post-medical-school training to as long as 11 years. Separate matches also run for certain specialties, such as urology, and for U.S. military service positions.
Any 2 applicants in the NRMP Main Residency Match can participate as a couple. Each partner submits a rank order list, and the algorithm evaluates both lists as a pair so both land at a linked combination. As AAMC Careers in Medicine notes, partners in different match programs or different cycles cannot formally participate as a couple in the algorithm, though they can coordinate applications and interviews in the same geographic area.
Eligible students who go unmatched, or who match for only part of their required training, can enter the NRMP Supplemental Offer and Acceptance Program (SOAP) during Match Week in mid-March to pursue unfilled residency positions. If you are earlier in training and preparing for medical school interviews, see our UTMB John Sealy School of Medicine interview guide.
| Pathway | Who participates | How placement works |
|---|---|---|
| NRMP Main Residency Match | Graduating medical students and eligible physician applicants across most specialties | Computer algorithm pairs applicant and program rank order lists for 3 to 7 years of residency |
| NRMP Couples Match | Any 2 applicants participating together in the Main Residency Match | Each partner submits a rank order list and the algorithm treats both lists as a pair |
| Specialty and military matches | Applicants to specialties such as urology or U.S. military service residencies | Separate matching services run outside the NRMP Main Residency Match |
| SOAP during Match Week | Eligible unmatched applicants and partially matched applicants | Match Week process connecting eligible candidates with unfilled residency positions |
Timeline from residency application to Match Day
The algorithm runs in moments, yet preparation begins as early as the fall of your third year of medical school, per the AAMC's How to Apply for Residency Positions guide. Your application portfolio has 6 core parts: you assemble your application or curriculum vitae (CV), letters of recommendation, and personal statement, while your medical school provides your medical school transcripts, Medical Student Performance Evaluation (MSPE), and licensing exam transcript.
Application services such as the Electronic Residency Application Service (ERAS) open as early as the summer before your final year, with completed applications submitted by early fall. Many programs select interviewees first-come, first-served, so applying early protects your interview chances.
Interviews run through the fall and winter of your final year. Applicants and programs certify rank order lists in late winter or early March (March 5, 2025 was the deadline in the 2025 cycle), followed in mid-March by Match Week, SOAP, and Match Day.
- Fall of third year to summer before final year. Draft your CV and personal statement, line up letters, and research programs in Residency Explorer.
- Summer to early fall of final year. Submit your ERAS or specialty application early for first-come, first-served interview review.
- Fall and winter of final year. Complete residency interviews, which the AAMC continues to recommend programs hold virtually.
- Early March to mid-March. Certify your rank order list by true preference, complete SOAP if needed during Match Week, and open results on Match Day.
How medical students rank programs, and why fit leads
Geography and culture shape life long after Match Day: according to the AAMC Report on Residents, 54.2% of physicians who completed residency from 2008 through 2017 practiced in the state where they trained. When ordering lists, applicants weigh education quality, faculty supervision, subspecialty options, location, and patient population, alongside what the NRMP survey calls goodness of fit, often called a program's vibe. In the NRMP 2024 applicant survey, respondents naming goodness of fit a priority climbed from 69% in 2023 to 81% in 2024. By our calculation from that March 2025 AAMC News report, that is a 12-percentage-point jump in a single year.
To compare fit virtually, Residency Explorer launched a section in 2024 matching personal and professional needs against program offerings. Boston University associate dean Angela H. Jackson, MD, also walks torn students through the Idaho exercise: pretend two competing programs are Program A and Program B side by side in Idaho, strip away prestige and city, and see what training differences remain. She advises watching whether residents look engaged in learning and patient care rather than expecting every day to look carefree.
Use our 5-step checklist to turn scattered Zoom impressions into a clean rank order list.
- Record how residents interacted with one another and with faculty.
- Talk to current interns outside formal socials. Ask alumni a year ahead of you for candid feedback on workload and support.
- Run the Idaho exercise on ties. Strip away city and name recognition to see which training environment you truly prefer.
- Leave off programs where you would refuse to train. A match commits you for years, so omit any culture that felt unsafe.
- Audit every pair from top to bottom. Ask yourself which program you would pick tomorrow if both offered you a position.
How residencies differ in PA and nursing programs
Show details
Not every health profession uses a mandatory national match or capped federal funding. In medicine, Medicare-supported residency slots have been frozen since 1997, leaving teaching hospitals to train more than 13,000 residents above federal caps without Medicare support.
For physician assistants (PAs), the Accreditation Review Commission on Education for the Physician Assistant (ARC-PA) states that formal postgraduate PA residencies are not mandatory for physician-PA teams to deliver specialty medical or surgical care. Sponsoring institutions enter ARC-PA postgraduate accreditation voluntarily, progressing from Provisional Accreditation to Continued Accreditation.
In nursing, the Commission on Collegiate Nursing Education (CCNE) accredits entry-to-practice nurse residency programs and nurse practitioner fellowship and residency programs, granting new applicant institutions a maximum initial accreditation term of 5 years after residents have been enrolled for the equivalent of one academic year.
What the match algorithm means for health program and residency interviews
Whether you are applying to a medical, dental, or pharmacy residency match, a PA or nurse practitioner fellowship, or a health professions school that ranks interviewees after interview day, the strategic lesson is the same: your written file earns the invitation, and your interview determines where you sit on the program's rank list.
According to the AAMC's Best Practices for Creating and Conducting Interviews, selection committees assess two dimensions of alignment. Person-organization fit, called applicant-program fit, evaluates how your work style, learning preferences, and goals align with the program's culture and mission. Person-job fit, called applicant-specialty fit, evaluates whether your clinical competencies, communication skills, and attributes match the demands of residency.
To score both fairly, programs rely increasingly on structured interviews with standardized behavioral or situational questions and defined rating scales. Citing a 2022 systematic review by Lin et al., the AAMC notes that unstructured interviews show lower validity and greater bias, whereas structured interviews improve reliability and fairness. In one residency program highlighted by the AAMC, all 12 faculty interviewers found structured scoring easy to use, and interview scores predicted first-year residents' end-of-year performance in professional competency, patient care, and communication skills. Some programs also use station-based scenarios modeled on the Multiple Mini Interview, which you can rehearse with our MMI practice questions with answers guide.
Committees rarely ask how the algorithm works, yet every question tests where you belong on their list. Tie concrete clinical moments to specific features of that program, ask honest questions about resident supervision, and skip hollow promises about ranking every program first.
How to practice structured interviews before rank lists lock
Structured rubrics reward clear behavioral evidence in under two minutes, leaving room for follow-up probing. Run this 4-step drill in the two weeks before your interviews start.
When you want realistic practice out loud, Confetto runs AI mock interviews built for residency, medical, dental, PA, pharmacy, and nursing applicants. You can rehearse traditional one-on-one, panel, or timed MMI formats, answer unscripted follow-up questions tailored to what you just said, and review a rubric-scored breakdown after each session. Start your free week.
- Cover teamwork friction, owning a mistake, caring for a frustrated patient, adapting under pressure, acting on tough feedback, and advocating for a patient.
- Link each story to both fit types. Close with one line showing how you collaborate on a team (applicant-program fit) and the habit you bring to patient care (applicant-specialty fit).
- Record yourself on Zoom. Because virtual residency interviews remain standard, check camera eye contact and trim any answer that passes two minutes.
- Drill unscripted follow-ups. Have a partner push with What specifically did you say next so your stories hold up under structured probing.
Practice question
Tell me about a time on a clinical rotation or health care team when your working style clashed with a colleague, and how that experience shapes the residency environment you are looking for.
See an example answer
On my third-year internal medicine clerkship, I was paired with another sub-intern on a busy inpatient team. I liked updating the shared sign-out checklist right after morning rounds so afternoon cross-cover stayed quiet, while my teammate preferred holding all updates until late afternoon after seeing consult notes. On day three, a nurse paged about a potassium replacement order that looked duplicated because half our morning plan was in the chart and half was still on my teammate's notepad. Instead of blaming him on rounds, I asked if we could grab five minutes after noon conference. I asked what made late-day batching work better for him, and learned he worried about writing incomplete plans before radiology read morning films. We agreed on a two-step routine: flag immediate medication and lab changes right after rounds, and tag pending imaging items for a 3 p.m. huddle. Our senior resident noticed the cleaner handoffs that week. That rotation taught me I thrive in collaborative programs where coresidents address workflow friction directly rather than letting small frustrations build. Example answer written by our team. The applicant is invented.
Structured residency rubrics reward observable past behavior over abstract adjectives. This answer names a concrete clinical risk, shows curiosity before assigning blame, lands on a practical fix, and closes by connecting the story directly to applicant-program fit without reciting slogans.
Frequently asked questions
What mathematical formula powers the residency match algorithm?
The NRMP Main Residency Match builds on the Gale-Shapley stable marriage algorithm developed by David Gale and Lloyd Shapley in the 1960s and analyzed for residency matching by Alvin Roth in the 1980s. Shapley and Roth won the 2012 Nobel Memorial Prize in Economic Sciences for this work.
Can guessing how programs ranked me improve my residency match result?
No. Ordering programs by true preference gives you the best shot at your top choices, and nearly 75% of U.S. MD and DO graduates match at one of their top 3 programs.
How does the Couples Match work in the residency match algorithm?
Any 2 applicants in the NRMP Main Residency Match can register as a couple and submit rank order lists that the algorithm evaluates together as paired choices. Partners applying in different match services or cycles cannot formally link lists in the algorithm, though they can target programs in the same region.
What happens if I go unmatched when the residency match algorithm runs?
Eligible applicants who do not match, or who match for only part of their required training, can enter the NRMP Supplemental Offer and Acceptance Program (SOAP) during Match Week in mid-March to pursue unfilled residency positions.
Do physician assistants and nurses use the same mandatory residency match?
No. According to the ARC-PA, formal postgraduate residency training is voluntary and not mandatory for PAs to practice specialty care, while in nursing the CCNE accredits entry-to-practice nurse residencies and nurse practitioner fellowships that hire directly through health systems or traineeships.
Sources
- AAMC News: 8 things to know about residency and The Match
- AAMC News: Ranking residency programs on vibes
- AAMC: Best Practices for Creating and Conducting Residency Interviews
- AAMC Careers in Medicine: Overview of the Match Process
- AAMC Careers in Medicine: Match Process and Couples Match
- AAMC Students and Residents: How to Apply for Residency Positions
- AAMC Students and Residents: Residency and Fellowship Applicant Interview Preparation Guide
- ARC-PA: Clinical Postgraduate PA Program Accreditation Process
- AACN CCNE: Nurse Residency and NP Fellowship Accreditation Process