An uncut, freshly baked pecan pie can be kept at room temperature for two hours before it is served. If the pecan pie is refrigerated, it keeps for up to four days.
The pecan pie must be refrigerated after it is cut or if it is intended for serving more than two hours after it is prepared. The moisture content in the pie, as well as the protein content of its ingredients, may lead to rapid multiplication of bacteria if the pie is allowed to sit out at room temperature.
A pecan pie can be kept in the freezer for up to two months. The pie should be stored in a heavy-duty freezer bag or wrapped in plastic freezer wrap or aluminum foil before it is frozen.