Stable Matching Calculator
Runs the Gale–Shapley algorithm on two groups that rank each other — mentors and mentees, applicants and positions, roommates-to-rooms — and returns a stable matching: no two people would both rather be with each other than with their assigned partner. Both directions are computed so you can see which side the algorithm favors.
Read the full guide to this tool
Results
Notes
- Gale–Shapley is exact and always terminates with a stable matching, but it is deliberately one-sided: the proposing side gets its best stable partner and the reviewing side its worst. The tool runs both directions so the asymmetry is visible.
- If both directions agree, the instance has a unique stable matching and nobody can argue with it.