11/24/2026
Secret Santa Exclusions: Keep Couples From Matching
List each couple as an excluded pair and draw. For pair exclusions you can guarantee a valid draw exists: if nobody is excluded from more than half the group minus one person (n/2 - 1, where n is the group size), a draw always exists. Past that point it can fail, and the cause is a counting rule, not bad luck.
What exclusions do to the odds
A plain Secret Santa has everyone give one gift, everyone receive one, and nobody draw themselves. For 6 people, 265 of the 720 possible arrangements qualify. A brute-force count over all 720 arrangements gives 265.
Now make them three couples who cannot draw each other. Inclusion-exclusion over the forbidden pairings gives 80 valid draws, and a brute-force check of all 720 arrangements agrees. With 4 people in 2 couples, exactly 4 draws survive.
| Group | All arrangements | No self-draws | No self or partner |
|---|---|---|---|
| 4 people, 2 couples | 24 | 9 | 4 |
| 6 people, 3 couples | 720 | 265 | 80 |
| Share of arrangements, 6 people | 100% | 36.8% | 11.1% |
The practical effect, if you redo the whole draw whenever anyone pulls a bad match: about 2.7 tries on average without couples (720 / 265) and 9 with three couples (720 / 80). That is the cost of throwing the entire draw away. A hat user who only puts back the one bad pull does less work, but every redraw still reveals who was nearly drawn.
Why a swap can slip through
Excluding a couple does not stop two friends from buying for each other. Of the 4 valid draws for two couples, 2 are mutual swaps (Ana buys for Cy while Cy buys for Ana, and likewise for the other two) and 2 are one 4-person loop. At 6 people with three couples, 32 of the 80 valid draws, or 40%, contain at least one mutual swap.
| Method | Stops couples | Detects an impossible draw | Mutual swaps |
|---|---|---|---|
| Hat, redraw on a bad pull | By hand | No, you loop forever | Possible |
| Shuffle into one circle, each buys for the next | Only by reshuffling | No, and it can reject groups that do have a draw | Never (3 or more people) |
| Generator with exclusion list | Yes | Yes | Possible unless you exclude the pair |
The circle method only allows single loops, so exclusions can rule out every circle even when ordinary draws exist.
When a draw is impossible
A draw exists exactly when every set of givers, taken together, is allowed to buy for at least as many different people as the set has members. If some set of givers has fewer allowed recipients than members, no shuffle can work. Mathematicians know this as Hall's marriage theorem.
Smallest failure: 3 people, Ana and Ben are a couple, Cy is single. Ana can only buy for Cy. Ben can only buy for Cy. The set {Ana, Ben} has 2 members but only 1 allowed recipient, so no draw exists no matter how many times you shuffle.
A larger one, in 5 people. Ana is excluded from Ben, Cy and Di, and Ben is excluded from Cy and Di (so Ben is also kept from Ana). Ana can only buy for Eli, and Ben can only buy for Eli: two givers, one allowed recipient, no draw. In the generator that is five lines (Ana - Ben, Ana - Cy, Ana - Di, Ben - Cy, Ben - Di), and it answers "No draw works with those exclusions. Remove one and try again."
| Setup (5 people) | Draw exists? | Why |
|---|---|---|
| No exclusions | Yes, 44 | Plain Secret Santa |
| 2 couples, 1 single | Yes, 16 | Everyone has 3 or 4 options |
| Ana and Ben both limited to Eli | No | Two givers share one allowed recipient |
The guarantee rule
The rule applies to what the generator takes, which is pair exclusions that block both directions. If every person is in at most n/2 - 1 pairs, every giver has at least n/2 allowed recipients and every recipient has at least n/2 allowed givers, and that is enough for a draw to exist. It is sufficient, not necessary. It follows from the counting condition above, and a brute-force check over every possible set of pairs for 3 to 6 people found no failures. Larger sizes rest on the derivation, not on enumeration.
| Group size | Pairs per person that always work |
|---|---|
| 3 | 0 |
| 4 or 5 | 1 |
| 6 or 7 | 2 |
| 10 | 4 |
Couples alone never break a group of 4 or more, because each person is in one pair. They break 3 people, as shown above. Going beyond the rule does not always fail. In a 5-person group where Ana is paired with Ben, Cy and Di, Ana can only buy for Eli, and only Eli can buy for her. Ben, Cy and Di then rearrange among themselves in 2 ways, so two draws exist.
The rule does not cover one-way blocks, which the tool cannot make. If four of five people each avoid only Eli, nobody is left to buy for Eli and there is no draw, even though each person excludes just one name.
Doing it in the generator
The Secret Santa generator takes names one per line (3 to 40) and a second box of pairs written like Ana - Ben. Each line blocks both directions. Pairs are split at any hyphen, & or +, so a name that contains one of those, such as Mary-Jane, cannot be used in the pairs box. It searches in a random order and backs out of dead ends, so if a valid draw exists it finds one. If none does, it says "No draw works with those exclusions. Remove one and try again."
Running the generator's own drawing code 1,000 times each on two groups, 6 names in 3 couples and 5 names in 2 couples plus a single, returned only valid draws, and none failed. It does not pick uniformly among valid draws, so the mutual-swap rates above describe the full set of draws, not what the tool hands you.
To avoid repeat matches or mutual swaps, add last year's pairs, or any swapped pair, to the same box. Matches are not listed on screen: each person taps their name, or the host copies a link that holds one person's match. The draw lives in the page address, so nothing is emailed or stored.
Two buttons look alike. Draw again keeps the same names and exclusions and gives everyone a new match, after a confirmation. To change the names or the pairs, because someone dropped out, use Start over. If the group would rather open and steal gifts than draw names, the White Elephant tracker runs the turn order and enforces a steal limit.
Sources
- The Secret Santa generator's own source, read for tool behavior and run for the 1,000-draw check
- Counts (265, 80, 4, 16, 44, 32 of 80, the rule over 3 to 6 people) computed by brute force over all arrangements
- Wikipedia: Derangement, the name for a draw where nobody gets themselves, with 265 as the count for 6 people
- Wikipedia: Hall's marriage theorem, the condition behind when a draw is impossible
Researched and drafted with AI, then reviewed and edited by the site's editors.