Secret Santa With Exclusions — Couples and Households

Three kinds of "not them": a couple, a household that already shares a budget, and the person you had last year. All three are checked before the draw, and a group that cannot work is reported instead of redrawn forever.

CouplesHouseholdsLast year’s pairsLive drawability check

The tool, preset for this page

Add a household after |, a tag after #, and a wish list after >: Ana | Flores #kids > wool socks

Exclusions, circle mode and seed

One pair per line. &, +, a comma or and all work.

Either direction is avoided, so nobody repeats.

Same roster, same rules, same seed → same draw. Reproducibility only.

How to reveal

The draw lands here

Five example names are loaded. Change them, press Draw names, and this panel becomes either the pass-the-phone list, the private links, or the printable sheet.

Nothing is uploaded: the pairing is computed in this tab and saved only in this browser's local storage.

Setting up exclusions in the right order

A plain random draw is fine until the group has structure. Two people who live together do not want to buy for each other; a couple that has been together for years has already solved the "what do I get them" problem. Real exchanges need rules, and most free generators quietly ignore them.

This page preloads a seven-person group with two households, two couples and one person on their own, so you can see the effect immediately. The badge under the name list re-runs the feasibility check on every keystroke: green means a valid draw exists, red names the exact constraint that makes it impossible.

The important property is that constraints are never "best effort". A pairing either satisfies every rule or the draw does not happen. If a household is more than half the group, the tool says so in one sentence rather than producing a draw that quietly breaks the rule.

  1. Write the roster first, one person per line. Append "| Household" to everyone who shares a kitchen — that single label covers the "nobody draws within their household" rule for the whole group.
  2. Add couples in the exclusions box as "Ana & Ben". The rule is symmetric, so it does not matter which name comes first. Any of &, +, -, comma or "and" works as the separator.
  3. Paste last year's pairs into the last-year box if you have them. Both directions are avoided, so nobody repeats the same gift idea two years running.
  4. Press Draw. If the badge is red, the message names the blocking rule — split the household, drop one exclusion, or add a person outside the block.

What the drawability check actually does

The rules define an allowed set for each giver: everyone except themselves, anyone in their household, anyone excluded as a couple, and last year's partner. A draw exists exactly when those sets contain a perfect matching — a way to give every giver a distinct recipient. That is a classic bipartite matching problem, and it is solved in full rather than sampled.

Because the matching is complete, "impossible" is a proof, not a timeout. The tool can tell you that a household of four out of seven people can never work: those four must all draw from the other three, and three recipients cannot absorb four givers. No amount of redrawing would have found a valid pairing.

Randomness lives in the order the matching explores, seeded from a number shown under "advanced". Same roster, same rules, same seed gives the same draw — useful when you need to reproduce a result you already printed.

Frequently asked questions

How many exclusions can I add?

As many pairs as you like, one per line, plus one household label per person. The only limit is feasibility: at some point the exclusions leave somebody with no possible recipient, and the tool tells you who.

Why can a household not be more than half the group?

Everyone in a household must draw someone outside it, and each of those outside people can only receive one gift. Four people in a household of seven would need four distinct recipients from the three people outside — impossible. Exactly half works, because the two halves can swap.

Can I avoid last year without knowing the pairs?

You need the pairs to avoid them — the tool has no memory between visits. If you still have last year's printable slips or CSV export, paste the giver-recipient lines into the last-year box.

Are the exclusions saved?

The whole group, including exclusions, is saved in this browser's local storage so a reload does not lose the roster. "Forget this group" deletes it. Nothing is uploaded, so exclusions never leave the device.