The Feast

Home cooking recipes for everyday dinners and easy entertaining

Does Key Lime Pie Need to Be Refrigerated?

· 5 min read · Baking and Desserts

Yes, key lime pie must be refrigerated. Because it contains eggs and often sweetened condensed milk, it is a perishable dessert and should not sit at room temperature for more than two hours total. Refrigeration keeps it safe to eat and also helps it set properly, giving you clean slices.

Why Refrigeration Is Non-Negotiable

Key lime pie is a custard-based pie. The filling is made by combining egg yolks (sometimes whole eggs) with sweetened condensed milk and key lime juice, then baking it just until set. Eggs are a high-protein, high-moisture food that supports bacterial growth, and sweetened condensed milk adds sugars that bacteria can feed on. The U.S. Department of Agriculture (USDA) classifies custard pies as perishable foods that must be refrigerated. Leaving the pie out on the counter for more than two hours—including the time it takes to serve and eat it—puts you in the danger zone (40°F–140°F) where bacteria multiply rapidly.

How Long Can It Sit Out?

The two-hour rule applies to all perishable foods, and key lime pie is no exception. If the room is very warm (above 90°F), that window shrinks to one hour. After that, the pie should be discarded, not re-refrigerated, because bacteria may have already produced toxins that reheating or chilling won't destroy. If you're serving it at a picnic or outdoor event, keep it in a cooler with ice packs or bring it out only right before slicing.

Proper Storage for Maximum Freshness

Refrigerate the pie as soon as it has cooled to room temperature after baking—usually within an hour. Cover it loosely with plastic wrap or aluminum foil, or place it in a cake carrier. A well-covered key lime pie will keep for 3 to 4 days in the refrigerator. The crust may soften slightly over time, but the filling stays safe. Do not freeze a key lime pie that has already been refrigerated for several days; freezing changes the texture of the custard and can cause the crust to become soggy when thawed.

Can You Freeze Key Lime Pie?

Yes, you can freeze an unbaked or baked key lime pie, but it's best to freeze it before it has been refrigerated for long. Wrap the fully cooled pie tightly in plastic wrap, then in foil, and freeze for up to 2 months. Thaw it overnight in the refrigerator, not on the counter. The texture may be slightly less creamy after freezing, but it will still be safe. Do not freeze a pie that has been left at room temperature for more than two hours, as freezing does not kill bacteria.

How to Tell If It's Gone Bad

Signs that your key lime pie has spoiled include:

  • An off or sour smell (beyond the tangy lime scent)
  • Visible mold on the surface or crust
  • Weeping or separation of liquid from the filling
  • A slimy texture on the filling or crust
  • Unusual discoloration, such as gray or greenish spots

If you see any of these, discard the pie immediately. Do not taste it to check.

Food Safety for Pregnant Women and Vulnerable People

Traditional key lime pie contains raw egg yolks that are cooked only briefly during baking. The filling reaches an internal temperature of about 160°F–170°F, which is high enough to kill Salmonella if the pie is baked properly. However, if you are serving the pie to pregnant women, young children, older adults, or anyone with a weakened immune system, consider using pasteurized eggs or a pasteurized egg product to eliminate any risk. Alternatively, use a recipe that cooks the filling on the stovetop before baking, or buy a commercially prepared key lime pie that uses pasteurized ingredients.

Common Misconception: “The Lime Juice Cooks the Eggs”

Some recipes claim that the acid in key lime juice “cooks” the eggs, making the pie safe without baking. That is a myth. While acid can denature proteins, it does not reliably kill bacteria like Salmonella. The only safe way to ensure the eggs are safe is to heat them to 160°F. That's why most key lime pie recipes bake the pie for 10–15 minutes. If you choose a no-bake version that relies on acid, you must use pasteurized eggs or an egg substitute.

Frequently Asked Questions

Can I leave key lime pie out overnight?

No. Leaving it out overnight exceeds the two-hour safe limit, and the pie should be thrown away. Even if it looks fine, bacteria may have multiplied to unsafe levels.

Does key lime pie need to be refrigerated before serving?

Yes, and it's actually better. Chilling the pie for at least 2–3 hours (or overnight) helps it set firmly, making it easier to slice and giving it a creamier texture. Serve it cold straight from the fridge.

Can I reheat key lime pie?

It's not recommended. Reheating will melt the filling and ruin the texture. If you prefer a warmer dessert, let it sit at room temperature for 10–15 minutes before serving, but never reheat it in the microwave or oven.

How long does key lime pie last in the fridge?

Properly covered, it lasts 3 to 4 days. After that, the quality declines and the risk of spoilage increases. Always check for signs of mold or off smells before eating.

Can I use regular limes instead of key limes?

Yes, but the flavor will be less tart and aromatic. Key limes are smaller and more acidic than Persian limes. If you substitute regular lime juice, you may need to add a bit more lime zest to boost the flavor.

Is key lime pie safe to eat if it's slightly underbaked?

No. The filling should be set—it should jiggle slightly in the center but not be liquid. Use a food thermometer to check that the center reaches at least 160°F. If it's underbaked, return it to the oven for a few more minutes.

In this article
  1. Why Refrigeration Is Non-Negotiable
  2. How Long Can It Sit Out?
  3. Proper Storage for Maximum Freshness
  4. Can You Freeze Key Lime Pie?
  5. How to Tell If It's Gone Bad
  6. Food Safety for Pregnant Women and Vulnerable People
  7. Common Misconception: “The Lime Juice Cooks the Eggs”
  8. Frequently Asked Questions