USDA-based · How this page was made · Last reviewed July 15, 2026 · Sources ↓

Custard Pie

The answer

Custard Pie needs refrigeration and lasts 3–4 days in the fridge. Freezing quality varies — verify exact timing for your recipe.

Caution Pies with eggs, milk, or cream fillings must be refrigerated promptly.

How long it keeps — Baked

Fridge (40°F) 3–4 days safe window
Freezer (0°F) Quality varies — verify exact timing best quality
Room temp 2 hours max then discard
Discard Discard if held above 40°F for more than 2 hours, or above 90°F for more than 1 hour.

How to store custard pie

Custard pies must be refrigerated and keep 3–4 days. This covers cream pies, banana cream, coconut custard, chess pie, buttermilk pie, and any pie whose filling is set with eggs and dairy.

Cool for no more than two hours after baking, then refrigerate covered. These are among the most perishable desserts in a kitchen and should not be left out overnight under any circumstances.

Cover loosely at first so steam escapes, then properly once cold. A tight seal on a warm pie makes the crust soggy and encourages condensation on the filling.

Most custard pies do not freeze well. The custard separates and weeps on thawing as the egg protein network breaks. Meringue toppings are worse — they turn rubbery and weep badly.

If you are serving a custard pie at a gathering, put it out for service and return it to the refrigerator within two hours.

By state & packaging

State Fridge Freezer
Refrigerated promptly 3–4 days Quality varies
Left out more than 2 hours Discard Discard

Why custard pie goes bad

A custard is a suspension of egg protein in milk or cream, set by gentle heat, and it is close to a purpose-built bacterial growth medium: abundant protein, high moisture, near-neutral pH, and no salt, acid, or sugar concentration high enough to inhibit anything.

That is why food safety guidance treats custards more strictly than almost any other dessert, and why the USDA specifies refrigeration for all egg-and-milk-based pies.

The classic risk is Salmonella where the filling is not fully cooked — some cream pie fillings are cooked on the stovetop to a lower temperature than a baked custard reaches — and Staphylococcus aureus introduced by handling during assembly, whose toxin is heat-stable and would survive any reheating.

Meringue-topped pies add a further wrinkle: a soft meringue may not reach a temperature sufficient to pasteurize the egg whites, and it weeps a sugary liquid onto the filling as it sits, which provides yet more growth medium.

The signs are a sour or fermented smell, a filling that has separated and gone watery, surface sliminess, and any mold. Weeping alone can be a texture failure from overbaking, but combined with an off smell it means discard.

Signs it has gone bad

Sour smell
Weeping or watery filling
Mold

FAQ

Can I leave custard pie on the counter?

No. Egg- and dairy-based pies need refrigeration. Discard after more than 2 hours at room temperature.