📊
The Secret Santa gift exchange is a beloved holiday and office tradition in Spain. Organizing it on paper often results in people drawing their own names or repeating couples who already trade gifts. According to event planning statistics for 2026, more than 85% of groups now organize these exchanges digitally to speed up the process and easily manage pairing rules.
This interactive calculator lets you run your Secret Santa draw instantly on any device while keeping the assignments secret. If you are hosting a get-together, you can estimate catering drinks with the Event Drinks Calculator or split the final costs easily using our Bizum Calculator.
⚙️ How the Secret Santa Algorithm Works
The generator’s pairing mechanism is built around algebraic constraints known as derangements:
- No Self-Pairings: The system guarantees that no participant is ever assigned to buy a gift for themselves.
- Exclusion Filters: You can specify forbidden matches (e.g., partners who buy each other gifts outside of the exchange). The algorithm evaluates each possible draw and, if an exclusion is matched, discards the permutation and reshuffles the deck.
- Privacy Mode: The application includes a privacy toggle. This enables the group to pass a single smartphone or tablet around. Each participant clicks the reveal box next to their name to see their assignment, and then clicks again to hide it before passing the device to the next person.
📊 Practical Examples of Exclusions-Based Draws
Here are two common scenarios of how family and office groups set up their draws:
- Participants: **Carlos, Sofía, Ana, Luis, Pedro**
- Exclusion: **Carlos-Sofía** (married couple who will buy a separate joint gift)
- Calculation: The algorithm shuffles the names, discarding any arrangements where Carlos is matched with Sofía (or vice versa) and ensuring no self-pairings.
- Participants: **María, Juan, Laura, Diego**
- Exclusions: None
- Calculation: Open draw. The system scrambles the list, validating only that no person has drawn themselves.
❓ Frequently Asked Questions (FAQ)
No. This generator runs entirely client-side in your local browser using standard JavaScript. The names and resulting matches are never uploaded to our servers or stored in any database, ensuring total privacy for your list of participants.
Before running the draw, click "Hide Results". Once generated, the assignments will appear as clickable hidden boxes. Everyone can take turns looking at the screen, clicking their name to reveal their target, and clicking it again to hide it before the next person takes their turn.
This error occurs if there are too many exclusions relative to the number of participants, meaning it is mathematically impossible to find a valid arrangement. To resolve this, try removing some exclusions or adding more participants to the exchange list.
No. The matching algorithm normalizes all input text to lowercase before validating pairings. You just need to ensure that the spelling of the names matches exactly between the participant list and the exclusion fields for the filters to work.