USDA's FoodKeeper has no entry called homemade mayonnaise. Its nearest one is "Aioli, homemade", and it gives that 3 to 4 days in the refrigerator. Beside it, the tool gives raw egg yolks 2 to 4 days and egg salad 3 to 4. Commercial mayonnaise is in a different league in the same tool: 3 to 6 months unopened in the pantry, and 2 months in the refrigerator after opening. So the two-month date in the trigger was a commercial product's date put on a homemade one. The recipe looks the same on paper, oil and egg yolk and acid, but the tool gives the two very different lives, and it doesn't say why. FDA's egg safety page adds the other half: for recipes where the egg is raw when served, use pasteurized eggs. Below are the tool's entries, FDA's advice on the eggs, what the federal standard says mayonnaise is, the eggless question, and a sheet that turns a made-on date into a use-by date.
The short version
- Nearest FoodKeeper entry, homemade aioli: 3 to 4 days refrigerated.
- Raw egg yolks or whites: 2 to 4 days refrigerated. Egg salad: 3 to 4 days.
- Commercial mayonnaise: 3 to 6 months unopened in the pantry, 2 months refrigerated after opening.
- FoodKeeper has no room-temperature time for the homemade kind.
- FDA: for dishes with raw or undercooked egg, use pasteurized shell eggs or pasteurized egg products.
- FDA: no more than 2 hours out of the refrigerator, 1 hour above 90 F, for egg dishes.
- No FoodKeeper entry for eggless or vegan homemade mayonnaise.
- TaroStack keeps each batch with its date and the egg lot that went in. More below.
The entries
FoodKeeper is on FoodSafety.gov. It was developed by USDA's Food Safety and Inspection Service with Cornell University and the Food Marketing Institute.
| Entry | Pantry | Refrigerated |
|---|---|---|
| Aioli, homemade | 3 to 4 days | |
| Eggs, raw whites or yolks | 2 to 4 days | |
| Egg salad | 3 to 4 days | |
| Salad dressing, homemade | 2 weeks | |
| Mayonnaise, commercial | 3 to 6 months, from purchase | 2 months, after opening |
Aioli is garlic mayonnaise, so I've read the aioli entry as the answer for plain homemade mayonnaise too. That's my choice, and the sheet labels it as mine. The homemade salad dressing entry, at 2 weeks, doesn't say whether it has egg in it. I wouldn't use it for something that does.
The times are for "freshness and quality", in the tool's words, and they're written for a household.
Why the jar is different
The commercial entry carries a tip:
Shelf-stable commercial mayonnaise is safe when stored at room temperature after opening. Quality, not safety, is the reason the labels on these products suggest that they be refrigerated after opening.
That sentence is about the commercial product by name. Nothing like it is attached to the homemade aioli entry, which has a refrigerated time and nothing else.
The federal standard, 21 CFR 169.140, says what the commercial food is:
- an emulsified semisolid food made from vegetable oil, an acidifying ingredient and an egg yolk-containing ingredient,
- not less than 65 percent vegetable oil by weight,
- the acid being vinegar at not less than 2.5 percent acidity, or lemon or lime juice at not less than 2.5 percent.
The standard is about composition and naming. It says nothing on dates. The copy I read carries a link to an amendment published on October 13, 2026, which I haven't read.
So I can't point to a rule that explains the gap between 4 days and 2 months. What I can say is that the tool gives a factory's product one life and a kitchen's another, and a kitchen can't borrow the factory's.
The eggs
FDA's page on egg safety says fresh eggs, "even those with clean, uncracked shells, may contain bacteria called Salmonella". Its advice for recipes like this one:
For recipes that call for eggs that are raw or undercooked when the dish is served — like Caesar salad dressing and homemade ice cream — use either shell eggs that have been treated to destroy Salmonella, by pasteurization or another approved method, or pasteurized egg products.
Mayonnaise isn't named in that sentence, but its yolk is raw when it's served, so it's the same case as the Caesar dressing. The page's other lines that apply:
- Keep eggs at 40 F or below.
- Don't leave egg dishes out of the refrigerator for more than 2 hours, or more than 1 hour above 90 F.
The two kinds of egg are compared on pasteurized eggs vs regular eggs.
Eggless and vegan
FoodKeeper has no entry for a homemade mayonnaise without egg, and I haven't read a government page that gives one a time. Taking the egg out removes FDA's raw-egg concern. It doesn't make the tub a commercial product, and I wouldn't give it the commercial 2 months either.
In a shop
FoodKeeper is a household tool. A sandwich shop is a food business, and its health department has rules on raw egg in ready-to-eat food and on dating what the kitchen prepares. I haven't read those today. Where they're stricter, they govern. The model rule on dating is described on date marking in the Food Code.
What I'd do in the trigger's kitchen until the inspector has answered:
- Make it with pasteurized yolks or pasteurized egg product.
- Make a pint, not a gallon, so it's gone in three days.
- Date the tub the day it's made, with the use-by beside it.
- Keep it cold on the line, in a small insert that's swapped, not topped up.
Selling it in jars is a different undertaking, with a process that has to be designed and checked. See HACCP plan for mayonnaise and mayonnaise business plan.
Get the sheet
Download the Homemade mayonnaise use-by sheet. Two sheets and a read-me: FoodKeeper's times for homemade aioli, raw yolks, egg salad, homemade dressing and commercial mayonnaise, and a row for each tub or jar with the date it was made or opened. The sheet takes the shorter end of FoodKeeper's time, gives a use-by date, and flags what's past it. Five made-up tubs are filled in. It's an ordinary Excel file with no macros, and it works in Google Sheets, LibreOffice and Numbers.
Where this stops working
Three days is short enough that the date on the tub matters every shift. A sheet somebody fills in on Friday is two tubs behind.
How TaroStack does it
TaroStack doesn't set a shelf life or approve a recipe. It keeps each batch with its date and what went into it.
Each delivery comes in as a lot from a named supplier, with the supplier's lot code and its dates. Each recipe lists its ingredients, and each batch records which lots it used, automatically. One report walks any lot to the batches it went into and the customers who got them.
| The job | Tape and a marker | In TaroStack |
|---|---|---|
| When each tub was made | On the lid, if someone wrote it | A lot for each batch, with its date |
| Which eggs went in | Whatever was open | The egg lot on the batch record, automatically |
| Which tub to use first | The one in front | First-expired-first-out by default |
| What's about to pass | Found on Monday | An alert for lots expiring |
Recipes and batches are on every plan, from $9.99 a month (5 recipes) or $39 a month (50 recipes). The first 14 days are free, with no credit card. If you'd like a hand setting up, ask, and we'll do it with you.
