Spinach gratin will keep in the refrigerator for up to 3-4 days. Be sure to store it in an airtight container to keep it fresh.