Short answer: a Key lime pie can be made safely, but the filling has to be cooked, or made from pasteurized eggs, or made without eggs. USDA food-safety guidance specifically describes how to do it for Key lime pie. Keep the finished pie in the refrigerator, do not leave it out more than 2 hours, and plan to eat it within about 4 days. Do not rely on freezing a regular Key lime pie.
This page summarizes published food-safety guidance. It is not medical advice. If anyone eating the pie is an infant, young child, older adult, pregnant, or has a weakened immune system, FSIS says they are particularly vulnerable to egg-related illness.
The raw egg question
Traditional Key lime pie filling is egg yolks, sweetened condensed milk, and Key lime juice. FSIS advises everyone against eating raw or undercooked egg yolks and whites, or foods made with them. Some bottle and family recipes say the lime’s acidity “cooks” the yolks; USDA’s published guidance for Key lime pie does not rely on that. It tells cooks to heat the egg yolks with the lime juice to 160°F first.
| If your pie is… | What the guidance says |
|---|---|
| Classic pie, filling baked | Egg dishes should reach 160°F (71°C) in the center, measured with a food thermometer (FSIS, LSU AgCenter). A short bake is a common recipe instruction, and a thermometer removes the guesswork. |
| Raw yolks, filling not baked | Not advised. USDA’s method: heat the lime juice and yolks on the stove to 160°F, stirring constantly, then combine with the condensed milk and pour into a baked crust. |
| Pasteurized in-shell eggs | FSIS says in-shell eggs that have been pasteurized may be used safely without cooking. |
| No-bake with no eggs | No raw-egg concern. Keep it cold like any cream pie. |
| Meringue topping | USDA says meringue-topped pies should be safe if baked at 350°F for about 15 minutes. Skip toppings made from raw beaten egg whites; use whipped cream instead. |
The USDA stovetop method, step by step
- Whisk the egg yolks and the lime juice together in a saucepan.
- Heat over low heat, stirring constantly, until a food thermometer reads 160°F (71°C). LSU AgCenter warns that going well past that risks scrambling the yolks.
- Remove from the heat and combine with the sweetened condensed milk.
- Pour into a baked, cooled crust and chill. A instant-read food thermometer makes this step reliable.
This is the guidance as published for Key lime pie by USDA and LSU AgCenter. The classic recipe on this site is baked instead; if you use it, check that the center of the filling reaches 160°F, and bake a few minutes longer if it does not.
As an Amazon Associate I earn from qualifying purchases. Amazon links use this site’s Associates tag; see the disclosure.
Storing Key lime pie
- Refrigerate promptly. Pies made with eggs, cream, or condensed milk need the refrigerator, and should not be out for more than two hours (University of Illinois Extension).
- Up to 4 days. Extension charts give 4 days in the refrigerator for custard and cream pies; FSIS says 3 to 4 days for dishes containing eggs.
- Cover it. Wrap the pie or move slices to an airtight container.
Can you freeze it?
Extension guidance lists custard, cream, and chiffon-style pies as pies that do not freeze well. Real Simple adds that custard pies can turn watery when thawed and that their layers can separate. Key lime pie is an egg-and-dairy filling closest to that custard category, so the same caution is reasonable. The one published exception is a no-bake pie designed to be eaten frozen (Family Around the Table’s version is frozen up to 4 hours and served firm). The bottled Key lime juice, on the other hand, can be frozen: the Nellie & Joe’s FAQ says it may be frozen, with no more than a year recommended.
Food safety questions
Is key lime pie made with raw eggs?
Some traditional recipes use raw egg yolks and rely on the lime juice and condensed milk to thicken the filling without cooking. USDA food-safety guidance advises against eating raw or undercooked eggs and gives a specific way to make key lime pie safely. Other recipes, including the classic recipe on this site, bake the filling.
Does lime juice cook the eggs in key lime pie?
Some bottle recipes say the lime’s acidity “cooks” the eggs. Acid thickens the filling, but USDA guidance does not treat that as making raw eggs safe; its instruction is to heat the juice and yolks to 160°F, or to bake the pie. If you want certainty, use a food thermometer.
How do I make key lime pie safely with raw egg yolks?
The USDA method is to heat the lime juice with the raw egg yolks in a pan on the stove, stirring constantly, until the mixture reaches 160°F, then combine it with the sweetened condensed milk and pour it into a baked crust. LSU AgCenter repeats the method and warns not to go much past 160°F or the yolks can scramble. You can also use pasteurized in-shell eggs, which FSIS says may be used without cooking, or choose an egg-free no-bake pie.
How long can key lime pie sit out?
No more than 2 hours. Pies made with eggs, cream, or condensed milk should be refrigerated, and University of Illinois Extension says custard or cream-style pies should not be out of the refrigerator for more than two hours.
How long does key lime pie last in the refrigerator?
Extension food-safety charts, drawing on USDA guidance, say custard and cream pies keep up to 4 days in the refrigerator. FSIS says egg dishes should be used within 3 to 4 days.
Can you freeze key lime pie?
Extension guidance points away from freezing a regular refrigerated Key lime pie. University of Maine Extension lists custard and cream pies as pies that do not freeze well, and Real Simple says they can turn watery and the layers can separate. The exception is a no-bake pie written to be served frozen, such as Family Around the Table’s whipped Key lime pie.
Related: classic baked recipe · no-bake version · Key lime pie FAQ · where the pie comes from
Sources
- USDA FSIS, Egg and Egg Product Safety (includes key lime pie guidance)
- USDA FSIS, Shell Eggs from Farm to Table
- LSU AgCenter, Don’t Risk Illness from Raw or Undercooked Eggs
- University of Illinois Extension, Do I Need to Refrigerate the Pie?
- University of Maine Cooperative Extension, Keeping Pies Safe
- Real Simple, How to Store Pie
- Family Around the Table, Whipped Key Lime Pie
- Nellie & Joe’s Famous Key West Lime Juice, FAQ