StatGardenREF. DESK
Calculators/Everyday/Check Expiry Date Calculator
Everyday

Check Expiry Date Calculator calculator

Works out the expiry date from a purchase date and shelf life, and how many days remain.

Published 21 August 2026

What this calculator does

Enter a manufacture or purchase date and a shelf life, and this tool works out the expiry date, then tells you how many days remain, or how many days have passed since it expired. It is the same arithmetic whether you are tracking a bag of flour, a bottle of sunscreen or a batch of medication, once you know when it started and how long it is meant to last.

The shelf life on a label is not always given in the same unit, so this lets you enter it in days, weeks, months or years and converts internally. Months are handled calendar-style, so 6 months from 15 January lands on 15 July, not a fixed count of 180 days, which matters when months vary in length.

The formula

FormulaExpiry date = start date + shelf life; Days remaining = (expiry date − today)/86,400,000 ms

The expiry date is the start date plus the shelf life, added in whichever unit you chose. Days remaining is the gap between that expiry date and today, counted from midnight to midnight. A negative gap means the item is already past its date.

TermMeaning
Start dateThe manufacture date, purchase date, or the date the item was opened, whichever the shelf life is measured from.
Shelf lifeHow long the item is expected to stay usable from the start date, in the unit printed on the label or packaging.
StatusA plain read of the days-remaining figure: expired, expiring soon (within a week), or fresh.

The inputs explained

FieldWhat to enter
Manufacture / purchase dateThe date printed as the manufacture or purchase date, or the date you opened the item.
Shelf lifeThe length of the shelf life, in the unit selected next to it.
Shelf life unitWhether the shelf life figure above is in days, weeks, months or years.

When to use it

Pantry and fridge stock

Packaged food often gives a "best before" duration from the packing date rather than a printed expiry date. Entering the packing date and that duration gives a concrete date to write on the container.

Skincare and cosmetics

Many cosmetics list a shelf life in months from first opening rather than manufacture, often marked with a small jar icon and a number like 12M. Using the date you opened it as the start date gives the real expiry, not the printed manufacture date.

Medication and supplements

A pharmacy label sometimes gives a shorter in-use shelf life once opened than the original packaging expiry. Checking both dates against today catches whichever one comes first.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How many days are left at different shelf-life lengths?

The same purchase date, 30 days back, checked against a range of common shelf-life lengths.

Purchased 30 days ago
Shelf lifeExpiry dateStatus
7 days24 Feb 2027Fresh, 185 day(s) left
14 days24 Sep 2027Fresh, 397 day(s) left
30 days24 Jan 2029Fresh, 885 day(s) left
90 days24 Jan 2034Fresh, 2,711 day(s) left
180 days24 Jul 2041Fresh, 5,449 day(s) left
365 days24 Dec 2056Fresh, 11,081 day(s) left
A shelf life shorter than the 30 days already elapsed shows as expired; anything longer still has days left, and the status label switches to expiring soon inside the final week.

Questions

What counts as expiring soon?

This tool flags anything expiring within 7 days as expiring soon, and anything beyond that as fresh. It is a reasonable general cutoff, not a food-safety standard, so always follow the specific guidance on the product itself.

Is a best-before date the same as an expiry date?

Not quite. A best-before date is about quality, the food may still be safe to eat slightly past it. An expiry or use-by date is about safety, and the product should not be used after it. Enter whichever date or duration is printed on your item.

Why does the expiry date land on a different day than I expected for months?

Months are not a fixed number of days, so adding "6 months" moves the calendar month forward by 6 and keeps the same day of the month where possible, rather than adding a flat 180 days. This matches how most shelf-life labelling works.

Can I use this for a warranty or subscription instead of a product?

Yes. The maths is identical for anything with a start date and a fixed duration, such as a product warranty or a membership period, not just perishable goods.

For counting the days to or from any other specific date, see the days until a date calculator.