If properly stored, it can last for up to 5 days in the refrigerator. To maximize the shelf life of your key lime pie, store it in the refrigerator in an airtight container or wrap the baking dish tightly with plastic wrap or aluminum foil. Key lime pie is best enjoyed during the first 3 days after baking.