How to Organize a Secret Santa with Google Forms
Quick answer: Google Forms collects names, wishlists, and sizes perfectly well, but it has no built-in gift-exchange randomizer — that part has to happen in the connected Google Sheet. Shuffle names with a =RAND() helper column, sort by it, assign each person to give to the next name in the shuffled list, check for self-matches, then tell each person their match privately instead of sharing the whole sheet.
Every office and family group chat rediscovers the same problem in November: someone needs to collect who's participating, what everyone wants, and then figure out who buys for whom without anyone seeing the full list. Google Forms handles the first two parts well. It does not have a gift-exchange feature, a "shuffle and pair" button, or anything resembling a Secret Santa mode — despite what a quick search might suggest. This guide covers the accurate workflow: collecting entries with a form, then doing the actual randomization in Sheets.
A faster route: start from one of FormMaker's ready-to-use templates and create it as a real Google Form in your account, then edit anything.
Step 1: Build the signup form
Keep it to the fields you'll actually use later. A solid Secret Santa signup form includes:
- Name — short answer, required.
- Email address — short answer, required, so you can notify people individually later. Turn on "Collect email addresses" in Settings so this happens automatically and reliably instead of relying on a typed-in field.
- Wishlist — a paragraph question ("List 3-5 gift ideas, a price range, or things to avoid"). Open text works better here than multiple choice; people give more useful detail when they're not boxed into checkboxes.
- Sizes — if the group tends to give clothing, add a multiple-choice or dropdown question for shirt size, and another for shoe size if relevant. Mark these optional if not everyone will need them.
- Budget cap — worth stating as form description text ("Gifts should be $20-$25") rather than a question, since it's the same for everyone.
Set a response deadline in the form description and, if your group is prone to stragglers, use "Limit to 1 response" so nobody accidentally submits their wishlist twice and confuses the sheet.
Step 2: Let responses collect into Sheets
Click the Responses tab and link to a Google Sheet (the green Sheets icon). Every submission lands as a new row with name, email, wishlist, and sizes side by side — this becomes both your matching source and, later, each giver's cheat sheet for their assigned person.
Step 3: Why Google Forms can't do the matching itself
It's worth saying plainly: there is no setting, add-on toggle, or hidden feature in Google Forms that randomly pairs respondents for a gift exchange. Forms is a data-collection tool — it captures what people type, in the order they submit it. Anything involving logic across rows (like "make sure nobody draws themselves") has to happen after the fact, in Sheets or with a script. Third-party Secret Santa generator sites exist for exactly this reason, but if you'd rather keep everything inside your own spreadsheet, the formula method below takes about five minutes.
Step 4: Randomize pairs with a RAND() formula
This is the simplest reliable method, no scripting required:
- In a new column next to your list of names, add
=RAND()in every row and fill it down. Each row now has a random number. - Select the name column and the random-number column together, then sort the range (Data → Sort range) by the random-number column. This shuffles the name order into a random sequence.
- In a new "Assigned to" column, set each person's match to the next name down in the shuffled list — row 1 gives to row 2, row 2 gives to row 3, and so on, with the last row wrapping around to give to row 1.
- Scan the final list for any row where the giver and the "assigned to" name are the same person. With distinct names the shift method can't produce one, so a self-match means someone signed up twice — remove the duplicate row and redo the assignment.
For groups that want a stronger no-self-match guarantee, or that have exclusions (like couples who shouldn't draw each other), a short Apps Script derangement function is worth the extra setup: generate a random permutation, check that no index maps to itself (and optionally that no pair maps to an excluded partner), and re-roll the permutation if it fails, all in a loop that runs in under a second.
Step 5: Notify each person privately
This is the step people skip and regret — never share the master pairing sheet with the whole group, since that spoils everyone's match instantly. Two options:
- Manual: Copy each person's single assignment and email or message it to them one at a time. Fine for small groups of under 10.
- Scripted: Write a short Apps Script that loops through the sheet and uses
MailApp.sendEmail(email, subject, body)to send each participant only their own match and the recipient's wishlist. Run it once from the Apps Script editor attached to your response sheet, and everyone gets notified in seconds without you touching each email individually.
Either way, double-check the sheet isn't shared with edit or view access open to the whole group before you send notifications — a stray share link is the most common way a Secret Santa gets spoiled early.
Handling last-minute additions or dropouts
If someone joins after you've already generated matches, the cleanest fix is usually to re-shuffle everyone rather than trying to slot one extra person into an existing chain — a single insertion can create a self-match or leave someone giving two gifts. For a dropout, remove their row, re-run the RAND() shuffle, and re-notify. It's a two-minute redo, which is part of why keeping the whole process in one Sheet (rather than doing it by hand) is worth the small setup cost.
A worked example: shuffling eight people
Here is the whole method on an illustrative group of eight, so you can see why it works. After linking the form to Sheets, the response tab has the names in column B. Make a new tab called "Draw" and copy the names into column A:
- A1 "Name", B1 "Rand", C1 "Gives to".
- In B2 type
=RAND()and fill down to B9. - Select A1:B9, choose Data → Sort range → Advanced range sorting options, tick "Data has header row", and sort by Rand. The names are now in a random order.
- In C2 type
=A3, fill down to C8, and in C9 type=A2so the last person wraps around to the first. - Select column C, copy, and use Edit → Paste special → Values only. This freezes the assignments.
Because everyone gives to the next person in a shuffled circle, each person gives exactly one gift and receives exactly one. As long as every name in the list is distinct and there are at least two people, nobody can be assigned to themselves — row N always points to a different row. A self-match can only occur if the same person appears twice in the list, which is why removing duplicate signups first matters.
Why paste as values? RAND() recalculates every time the sheet changes. The sort has already fixed the order, so the assignments in column C are stable, but freezing them removes any doubt and lets you delete the Rand column safely.
One property worth knowing: the shift method always produces one big loop (A gives to B, B to C, and so on back to A). Some groups prefer that — it can be revealed as a chain at the party. If you want smaller, less predictable loops, use the Apps Script approach below.
Handling exclusions such as couples or housemates
Families and offices often want rules like "spouses don't draw each other" or "don't draw your own manager". The simple shift method can't guarantee those, but you can check for them:
- On the signup form, add an optional short-answer question: "Anyone you shouldn't be matched with? (e.g. partner)". Alternatively, keep an "Exclude" column you fill in yourself.
- After assigning, add a check column:
=IF(C2=D2,"CLASH",""), where D holds that person's excluded name. - If any row says CLASH, re-sort by a fresh
RAND()column and re-assign. With a few exclusions in a group of eight or more, a clean draw usually comes up within a few tries.
Seat excluded pairs apart by design if you want a one-shot solution: after shuffling, check that no excluded pair sits in adjacent rows (including last-to-first). If a pair is adjacent, move one of them a few rows down before assigning.
An Apps Script that draws and emails in one go
For groups that want exclusions handled automatically and nobody (including the organizer) to see the pairings, a short script can shuffle, verify and send. A sketch of the logic, attached to the response spreadsheet via Extensions → Apps Script:
function drawSecretSanta() {
const sh = SpreadsheetApp.getActive().getSheetByName('Draw');
const rows = sh.getRange(2, 1, sh.getLastRow() - 1, 3).getValues(); // name, email, exclude
for (let attempt = 0; attempt < 1000; attempt++) {
const order = rows.map((_, i) => i).sort(() => Math.random() - 0.5);
const ok = order.every((g, k) => {
const r = order[(k + 1) % order.length];
return rows[g][0] !== rows[r][0] && rows[g][2] !== rows[r][0];
});
if (!ok) continue;
order.forEach((g, k) => {
const r = order[(k + 1) % order.length];
MailApp.sendEmail(rows[g][1], 'Your Secret Santa match',
'You are buying for ' + rows[r][0] + '.');
});
return;
}
throw new Error('No valid draw found — check exclusions.');
}
Notes: the sort-by-random shuffle is fine for a party but not statistically perfect; swap in a Fisher–Yates shuffle if that matters to you. Test first by replacing MailApp.sendEmail with Logger.log and using a list of your own addresses. The first run asks you to authorize the script to send email as you, and consumer Gmail accounts have a daily email quota for scripts — fine for a family or office group. Our Apps Script guide covers triggers and permissions.
Make the notification email useful
The most helpful match email contains everything a giver needs, so they never have to ask the organizer (which would reveal who they drew). Include:
- The recipient's name and their wishlist answer.
- Sizes, if collected, and any "please avoid" notes (allergies, no candles).
- The budget, the exchange date and the shipping or drop-off address for remote groups.
- A reminder not to reply-all or forward.
To include the wishlist, look it up from the response tab by email, or add the wishlist as a fourth column in the Draw tab before running the script.
Remote and mixed groups
For distributed teams, the hardest part is shipping. Add an optional paragraph question for mailing address, with a description explaining that only the person who draws them will see it — and then honor that by never sharing the sheet. If people would rather not share home addresses, suggest digital gifts or ship-to-office options and say so in the form. Set the "ship by" date about a week before the reveal call, adjusted for your carriers and holidays.
Use cases by group
- Offices and HR. Keep it opt-in, state the budget clearly so nobody feels pressured, and restrict the form to your organization. An HR-run exchange should avoid collecting anything beyond name, email, wishlist and optional sizes. See Google Forms for HR for other employee workflows.
- Teachers and classrooms. For a student gift swap, you may prefer to collect only first names and a class period, and run the matching yourself on paper slips or in Sheets, then hand out matches in sealed envelopes. Check your school's policy before collecting students' personal email addresses.
- Families. Exclusions for couples and households are the main need; the CLASH check or the script handles them.
- Clubs and nonprofits. A gift exchange is often bundled with a holiday party signup. Combine it with RSVP questions — the RSVP template guide and the potluck sign-up guide show how.
Common mistakes
- Sorting only the name column. If you sort names without the rest of the row, wishlists and emails no longer line up with the right person. Copy names (and emails) into a separate Draw tab, or sort the whole row range together.
- Duplicate signups. Someone who submits twice appears twice in the circle and can end up giving two gifts or, rarely, drawing themselves. Remove duplicates by email before the draw (Data → Data cleanup → Remove duplicates).
- Drawing before the deadline. Late joiners force a full re-draw. Close the form (switch off Accepting responses on the Responses tab) before you shuffle.
- The organizer seeing everything. If the organizer is also playing, let the script email matches without displaying them, or ask a non-participant to run the draw.
Accessibility and data quality
Use plain labels ("Your wishlist", "Shirt size") and dropdowns for sizes so values are consistent. Keep the form short and mobile-friendly — most people will fill it out on their phone from a group chat. Put the budget, deadline and exchange date in the description as text, not just in a header image, so everyone, including screen-reader users, sees them.
FAQ
Can Google Forms randomly pair people for a Secret Santa?
No. Google Forms has no built-in gift-exchange or random-pairing feature. It's great for collecting names and wishlists, but the actual matching has to happen afterward, usually in the connected Google Sheet with a formula or a short Apps Script.
How do I randomly assign Secret Santa pairs in Google Sheets?
Add a helper column with =RAND() next to each participant's name, sort the range by that column to shuffle the order, then assign each person to give to the next name in the shuffled list, wrapping the last person back to the first. Remove duplicate signups first, and nobody can land on themselves.
How do I stop someone from being matched with themselves?
The RAND()-and-shift method can't produce a self-match as long as every name in the list is distinct, so remove duplicate signups before assigning and check the final list once. An Apps Script derangement snippet can also check and re-roll automatically.
How do I tell each person their match privately?
Don't share the full pairing sheet with the group. Either email each person their single assigned match individually, or use a short Apps Script that emails everyone their own match automatically using MailApp.sendEmail.
Can I collect wishlists and clothing sizes in the same form?
Yes. Add short-answer or paragraph questions for a wishlist, and multiple-choice or dropdown questions for sizes. All of it lands in the same response row per person, so whoever draws them has everything they need in one place.
Can the shift method ever match someone with themselves?
Not if every name in the list is distinct and there are at least two people. Each row gives to the next row in a shuffled circle, so nobody points to their own row. Self-matches only happen when the same person appears twice, so remove duplicate signups first.
How do I keep couples from drawing each other?
Add an "exclude" name per person, then a check column such as =IF(C2=D2,"CLASH","") after assigning. If any row says CLASH, re-shuffle and re-assign, or use an Apps Script that retries until no exclusion is broken.
How can the organizer take part without seeing the matches?
Use an Apps Script that shuffles and emails each person their match directly without writing pairings to the sheet, or ask someone who isn't participating to run the draw and send the emails.