Calculator and Converter

Secret Santa generator

Enter the names of everyone taking part, one per line, and press Calculate to draw a Secret Santa.

Results

Enter your values to see the result.

About this tool

Everybody gives one gift and receives one, nobody draws their own name, and you can list pairs who must not draw each other, such as partners. The result is a table of who gives to whom, and the tool first checks that a valid draw is possible.

How it is calculated
everybody gives one gift and gets one, nobody draws their own name, and pairs you list never draw each other; the draw is made by trying random assignments and backing up when one leads to a dead end. First check there is at least one valid draw at all.
Worked example
With One name per line: Alice / Bob / Carla / David / Emma, the result is: People in the draw: 5.
Good to know
The draw tries random assignments and backs up when one leads to a dead end, so it only returns a draw that satisfies every rule. If your restrictions make a draw impossible, the tool tells you instead of giving an invalid result. Anyone looking at the screen will see all the pairings.

Frequently asked questions

How do I stop two people from drawing each other?

Add a line to the exclusion box with their two names separated by a comma, for example Alice, Bob. That pair will never be matched in either direction.

What if the tool says no draw is possible?

Your restrictions leave no valid way for everyone to give and receive one gift. Remove some exclusions or add more people and try again.

How can I keep the draw secret?

The result shows every pairing on screen, so have one organiser run it and share each person's match privately, or cover the screen while you copy the matches.

Related calculators