Enter participant names
Enter one name per line. The tool will randomly assign each person to give a gift to someone else. No one will be assigned to themselves.
This free Secret Santa Name Picker randomly assigns gift-giving pairs for your holiday exchange. Enter participant names, set spending limits, and generate fair, random assignments. No signup. 100% free.
Enter one name per line. The tool will randomly assign each person to give a gift to someone else. No one will be assigned to themselves.
This tool uses a derangement algorithm to ensure no one gets themselves in the gift exchange. A derangement is a permutation where no element appears in its original position.
The number of possible derangements for n items is given by the formula: !n = n! ร ฮฃ(from k=0 to n) of (-1)^k / k! For 5 people, there are 44 possible valid assignments where no one gets themselves.
The tool takes your list of names, shuffles them randomly, and creates a circular gift-giving arrangement where each person gives to someone else and no one gets themselves. It uses a derangement algorithm to ensure valid assignments.
The algorithm works with any number of participants (minimum 3 for a proper exchange). Odd numbers work just as well as even numbers - everyone will still give and receive one gift.
The current version creates completely random assignments. For exclusions, you would need to manually adjust the results or use a more advanced Secret Santa tool that supports exclusion rules.
The assignments are generated using JavaScript's Math.random() function, which provides pseudorandomness suitable for this purpose. For cryptographic-level randomness, you'd need a different approach, but for Secret Santa, this is perfectly adequate.
Each time you generate assignments, you'll get a different random result (unless by chance you get the same arrangement). You can generate multiple times until you're satisfied with the pairings.
Other calculators in the Fun category:
MaximCalculator provides simple, user-friendly tools. Always confirm Secret Santa assignments with all participants and ensure everyone is comfortable with the arrangements.