Shelf Life Calculator

Common shelf lives:
* Month and year shelf lives follow the calendar (falling back to the last day of the month). Results are a reference - always confirm against the packaging.

Shelf Life Calculator Features

Three Calculation Modes

Expiry date from production date and shelf life, days remaining from two dates, or the production date worked backwards from an expiry date

True Calendar Months and Years

Months and years advance on the calendar and clamp to the last valid day, avoiding the drift you get from multiplying by 30

Days Remaining & Expiry Alerts

See days left or days overdue instantly, with a warning when an item is close to its expiry date

Shelf Life Progress Bar

A progress bar shows how much of the shelf life has been used, making it easy to use older stock first

Quick Shelf Life Presets

One-click presets for 7/30 days and 6/12/18 months, 2/3 years, plus free entry for anything else

Private Local Calculation

Everything runs in your browser - dates and product details never leave your device

How to Use the Shelf Life Calculator

1

Pick a Mode

Choose Expiry date if you know the production date and shelf life, Days remaining if you have both dates, or Find production date if only the expiry date is known.

2

Enter the Production Date

Pick the date printed on the package with the date field; you can also type it directly as year-month-day.

3

Enter the Shelf Life and Unit

Type the shelf life number and choose days, months or years - or use a preset button such as 18 months.

4

Read the Result

The result card shows the date with its weekday, days remaining or overdue, and how much of the shelf life has been used, with a near-expiry or expired badge.

Shelf Life Calculator Use Cases

Pantry Stock Rotation

Check the expiry date of bulk purchases and use the progress bar to eat oldest stock first

Baby Formula & Food

Infant formula and baby food have short shelf lives; confirm the expiry date before buying or opening

Cosmetics & Skincare

Unopened skincare lasts around three years, but opened products follow the period-after-opening symbol - work it out precisely

Medicine Cabinet Checks

Review the family medicine box every few months and clear out anything that has expired

Discounted Near-Expiry Goods

Buying reduced near-date items? Count the days remaining first and confirm you will finish them in time

Online Order Disputes

If a delivery arrives already expired, the calculated dates and days overdue can support your claim

Shelf Life Facts

How shelf life is calculated

Expiration date = production date + declared shelf life. Day-based shelf lives add days directly; month and year shelf lives follow the calendar rather than 30-day blocks. Examples: 2025-03-15 + 18 months = 2026-09-15, and 2025-01-31 + 1 month = 2025-02-28 because February has no 31st, so the calculator uses the month's last day. That last rule is exactly why hand counting drifts by a few days.

Shelf life, use by and best before

Shelf life is the period the manufacturer guarantees the product's quality. Best before highlights optimal quality and flavour, while use by is a firmer safety deadline. Where a product prints only a best-before date, treat the period after it more cautiously, and always prioritise the printed date over any calculation.

Storage conditions and opening

Printed shelf life assumes specific storage conditions such as "store in a cool, dry place" or "keep refrigerated at 0-4 °C". Heat, moisture and light shorten real usable life, and once a package is opened the period drops further. Many products add an instruction like "refrigerate after opening and consume within X days", which overrides the original date.

Near-expiry versus expired goods

Near-expiry (short-dated) items are still within their shelf life and are generally fine when packaging is intact and storage has been correct - many retailers discount them. Once the expiry date has passed, food should not be sold or eaten. A shelf life calculator lets you tell the two apart quickly at home or in the store.

Typical Shelf Lives Reference

Product Typical shelf life (unopened) Notes
Fresh milk / yogurt3 – 21 daysKeep refrigerated, use soon after opening
UHT milk / drinks6 – 12 monthsCool and dark; refrigerate after opening
Bread / cakes3 – 30 daysQuality drops noticeably near the end
Biscuits / snacks9 – 12 monthsWatch for moisture and damaged packaging
Canned / vacuum packed2 – 3 yearsNever use if bulging or leaking
Rice, flour, cooking oil12 – 18 monthsCool and dry; keep oil out of light
Powdered infant formula18 – 24 monthsUsually use within 1 month of opening
Supplements / vitamins24 – 36 monthsStore as labelled, keep sealed
Cosmetics (unopened)about 36 monthsAfter opening, 6-12 months typical
Medicines (unopened)24 – 36 monthsFollow the printed expiry date

Shelf Life Calculator FAQ

Q: How is shelf life calculated?
A: Expiration = production date + shelf life. Day units add days; months and years follow the calendar (2025-01-31 + 1 month = 2025-02-28).
Q: How do I get the expiry date from a production date and shelf life?
A: Use the Expiry date mode and enter both values; the tool returns the date, weekday and days remaining. Already have the expiry date? Use Days remaining.
Q: Does shelf life start from the production or packing date?
A: Normally the printed production date, which for most products is the packing or filling date. A directly printed use-by or best-before date takes precedence.
Q: Is food safe after the expiry date?
A: Products past their use-by or expiry date should not be eaten; cosmetics and medicines should also be discarded. Near-expiry items stored correctly are generally still fine.
Q: What is the difference between shelf life and best before?
A: Shelf life is a quality guarantee period; best before concerns optimal quality, use by is a firmer safety deadline. Treat only-before-date products strictly.
Q: Does shelf life change after opening?
A: Yes - the printed period assumes unopened storage. Follow any "use within X days after opening" instruction on the pack.
Q: Is my data uploaded to a server?
A: No. Calculations run locally; nothing is uploaded and no sign-up is needed. Always check the packaging for the authoritative date.