Food Shelf Life Calculator
A food shelf life calculator adds a storage life to the day you packed or bought the food and gives you a date to use it by. Here is the method, a worked cupboard, and the planning ranges the free calculator uses.
The sum the calculator does
A shelf life calculator for food does one sum. Take the day you packed the food, or the day you bought it if you did not pack it, and add the storage life for the way you are keeping it. The result is a planning date: the day to aim to use that container by.
White rice kept sealed in an ordinary pantry is planned at 24 months in Prepparia's calculator. Rice packed on 26 October 2026 is planned for use by 26 October 2028. The same rice sealed in a mylar bag with an oxygen absorber and kept cool is planned at 240 months, which lands on 26 October 2046. Brown rice packed the same day and left in the pantry is planned at 6 months, so 26 April 2027. The bran still contains oil, and that oil goes rancid. White rice has had most of that removed.
Those dates are planning ranges for food that stays cool, dry and sealed. They are not a manufacturer's expiry and they are not a promise the food is still good. If the pack already has a use-by or a best-before date, use that and ignore the calculator.
How to calculate a date
Do this once per container. A cupboard of forty items is forty small sums, which is what the calculator is for.
-
Step 1
Read the pack first
If there is a use-by or best-before date you trust, copy it. Stop there.
-
Step 2
Write the start date
Use the day you sealed the container, or the day you bought it.
-
Step 3
Match the storage
A mylar figure applies only while the bag stays sealed, with an oxygen absorber, somewhere cool. A pantry figure is a normal cupboard. Fridge and freezer lines are only there for foods that have them.
-
Step 4
Add the months and label it
Put that date on the container, large enough to read on the shelf. Then sort the list soonest first and cook from the top.
One cupboard, worked through
A household packs or buys all of this on 26 October 2026 and wants a single rotation list.
| Food | How it is stored | Planning life | Date to aim for |
|---|---|---|---|
| White rice | Pantry, sealed | 24 months | 26 October 2028 |
| White rice | Mylar, oxygen absorber, cool | 240 months | 26 October 2046 |
| Brown rice | Pantry, sealed | 6 months | 26 April 2027 |
| White flour | Pantry, sealed | 12 months | 26 October 2027 |
| Peanut butter | Pantry, sealed | 6 months | 26 April 2027 |
| Peanut butter | Fridge | 12 months | 26 October 2027 |
| Vegetable oil | Pantry, sealed | 12 months | 26 October 2027 |
| Canned tomatoes or fruit | Pantry | Prefer 12 to 18 months | April to April, the following year |
The fruit row is the one to be careful with. The calculator's canned-fruit line is 24 months, which is a round planning figure. The USDA quality guide for high-acid tins, including most fruit and tomatoes, is shorter: 12 to 18 months. When the two disagree, follow the USDA figure for fruit and tomatoes, and follow a printed date when the tin has one. Canned meat at 48 months and canned vegetables at 36 months sit inside the USDA's two-to-five-year range for low-acid food.
On this list the peanut butter and the brown rice need eating first. The mylar rice can be left alone. That order is the whole point of doing the sums together instead of guessing from the front of the cupboard.
Planning ranges in the calculator
These are the figures built into the food shelf life calculator. They assume the food stays cool, dry and sealed. Quality falls off before the date, and it falls off quickly once a pack is opened. Sugar, honey and salt have no practical expiry in the calculator if they stay dry and clean.
| Food | Pantry, sealed | Mylar, cool, with oxygen absorber | Fridge | Freezer |
|---|---|---|---|---|
| White rice | 24 months | 240 months | ||
| Brown rice | 6 months | 12 months | 12 months | |
| Rolled oats | 12 months | 24 months | 24 months | |
| Dry pasta | 24 months | 120 months | ||
| White flour | 12 months | 60 months | 24 months | |
| Dry beans | 24 months | 240 months | ||
| Dry lentils | 24 months | 240 months | ||
| Milk powder | 18 months | 48 months | ||
| Vegetable oil | 12 months | 18 months | ||
| Peanut butter | 6 months | 12 months | 24 months | |
| Instant potato | 12 months | 60 months | ||
| Wheat berries | 24 months | 240 months | ||
| Cornmeal | 12 months | 24 months | 18 months | |
| Canned vegetables | 36 months | |||
| Canned meat or fish | 48 months | |||
| Canned fruit | 24 months |
Heat shortens all of these. A tin or a bag above a cooker, next to a boiler or in a hot loft will not last the pantry figure. Fatty foods (brown rice, flour, oats, oil, peanut butter, cornmeal) are the ones that disappoint first.
What to do with the date
Write it on the lid or the front of the container, not on the base where the manufacturer's stamp already hides. A list sorted soonest-first then tells you what to cook this month. Prepparia keeps that list on the device, so it still opens if the network is down, and it can print a label with the same date. The list is only useful if it matches the shelf. When they disagree, trust the shelf and correct the list.
A restaurant or a café should not use these pantry ranges for food it prepares and serves. High-risk food needs the manufacturer's use-by date, or the use-by date in that kitchen's own food safety system. That is a different job, covered in the foodservice date tracking guide.
Shelf life calculator questions
How does a shelf life calculator work?
It adds a storage life, in months, to the day you packed or bought the food. The storage life depends on the food and on whether it is in a pantry, a sealed mylar bag, a fridge or a freezer. The result is a planning date, not a safety certificate.
Is a shelf life calculator the same thing for any food?
The sum is the same. The months are not. White rice in a pantry is planned at 24 months in this calculator. Brown rice in the same cupboard is planned at 6 months. Sugar, honey and salt are treated as stable if they stay dry and clean.
Should I ignore the best-before date and use the calculator?
No. Use a printed use-by or best-before date when you have one. Use the calculator for food you packed yourself, or when the printed date is missing or unreadable.
Why is canned fruit shorter than the calculator's 24 months?
The USDA gives high-acid foods, including most fruit and tomatoes, 12 to 18 months for quality. The calculator's 24-month canned-fruit line is a round planning figure. Follow the shorter USDA range for those tins.
Can a café use this as its date system?
Not for food it prepares and serves. Those dates are safety dates. A long-term pantry range is for sealed dry stores at home. Kitchens need the labelling method in the foodservice guide.
Where this comes from
The month figures in the table are the planning ranges in Prepparia's shelf life calculator. They are estimates for cool, dry, sealed food, not the result of a laboratory test published here. Canned-food quality times are from the USDA FSIS shelf-stable food page. How to read use-by and best-before dates in the UK is from GOV.UK food labelling guidance.
Related guides
How long does canned food last?
USDA quality times for high-acid and low-acid tins.
How to label and track your food stock
Put the date you just calculated where you can see it.
How to rotate stored food
Cook from the soonest date.
Foodservice date tracking
Kitchens follow use-by dates, not a 20-year pantry estimate.
Add the foods you actually own and sort them by the date to use them.