I had bought some foodstuff which I intended to eat, and it was not my intention to trade in them. A full year or two passed while these foodstuffs were in my possession, as I did not need to consume them. Is there any Zakat due on these foodstuffs?
If the reality is as you mentioned, and you bought these foods with the intention of eating them and not to trade in them, and it happened that you did not use them and they remained with you to be used in the future, then no Zakat is due on them.
However, if you bought them with the intention of trading in them, or if you bought them (though you were not in need of them) merely to avoid paying the Zakat on money, then you must pay the Zakat on these foodstuff’s value with the passage of one year, and times it with 2.5%.
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.