Homemade cookie dough lasts three to five days in the refrigerator. Premade or store-bought cookie dough lasts around two weeks past the sell-by date in the refrigerator.
Cookie dough lasts the longest when it is stored properly. The best way to store cookie dough in the refrigerator is by placing it in a small, airtight container. Cookie dough can be frozen to extend its shelf life. Generally, cookie dough has a shelf life of six to 12 months when stored in the freezer. Cookie dough that has darker, dried edges or smells bad is spoiled and should be discarded immediately.