Assume I have the following ingredient all expiring tomorrow:

  • Mushrooms
  • Paneer (Cottage cheese)
  • Basmati rice

If I make a dish with these 3 ingredients (basically put rice, chopped mushroom,chopped paneer, water and some spices in a pressure cooker and wait for 2 whistles), is the expiry of these items somehow extended? Can I now keep this cooked dish in my fridge for another 1-2 days without going bad?

2 Answers 2


The expiring date of the cooked food has nothing to do with the expiring date of the ingredients. They are considered separately. A cooked food has a shelf life of 3-5 days, and this assumes that you followed a safe cooking process, which includes using ingredients which were not expired at the time of cooking.

Cooking does not sterilize food, but it reduces the bacteria currently alive in it. It doesn't kill them all, and it doesn't remove toxins, so it is not a "reset" and you cannot make unsafe food safe by cooking it. But the expiry date is calculated with such a margin that the bacteria which are left after cooking cannot get to dangerous levels too fast, so you still have the regular 3-5 days.

On the other hand, if you have two different ingredients with a long expiry date and cook them together, the new expiry date is not determined by the date of the ingredients, not even by the date of the shortest lived ingredient. It is still 3-5 days.


Generally expiration dates set by producers are determined using microbial activity tests and measured against some acceptable threshold for the product. Microbial activity is essentially the number of microbes (bacteria, yeast, mold, etc.) growing on or in some food. There's no hard rule for saying that some set level of microbial activity will make you sick, but the risk of illness caused by harmful microbes increases as the overall count of microbes rises. So the expiration date is not a magical date upon which the food is definitively spoiled - it's an estimate of when the food will reach a somewhat-arbitrary amount of microbial activity that's considered unacceptably risky to eat by the producer in question.

Cooking is a form of pasteurization, and it will kill most of the microbes present in the food, so you could consider this a means of "resetting" the microbial activity in the food. However, that has some important caveats:

  1. Cooking does not remove toxins produced by some harmful microbes that can make you sick; if there's a risk that those were present in the uncooked food, then the same risk applies to the cooked food.
  2. Cooking damages cell walls and accelerates degradation of the cooked food, causing it to spoil more quickly; the general rule of thumb for cooked foods is about 3-4 days in the fridge. Basically, once you cook a food it's no longer the same product, and the expiration date no longer applies the same way that it did to the uncooked food.

So, like many food safety questions, this is not a question with a single "right" answer - it's a calculation of the risk that the food could make you sick. There is always some slight risk, and there are many other factors besides the food and its expiration date, such as how you stored the food, whether you (or whoever you're feeding) has an immune deficiency that makes them more likely to get sick in general, etc. When you ask "has a food gone bad?" that must be interpreted and answered as a question of "has this food exceeded an unacceptable risk for consumption?" in food safety terms.

Personally, if I felt confident in the safety of all of the ingredients that were expiring, I wouldn't have qualms about a cooked product made from them lasting for another day or two. But, if any of those ingredients were suspect, then they should be thrown out and not used; a dish cooked from them would inherit the same risk as the original ingredients.

This goes doubly for any commercial situation where you are selling the food to someone else; in that case there are specific regulations set by government agencies around the acceptable level of risk.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.