Shelf Life Calculator
Production date plus shelf life gives the expiry date: 15 March 2026 plus 18 months is 15 September 2027. Type the dates you have, or a date as it is printed on the pack. The calculator gives the missing date, the days and share of the shelf life left, and the expiry date ready to print on a label. Many lots? Paste a list.
By The eancheck teamPublished
Label and date options
Using an AI assistant?
How to calculate an expiry date · How to read expiration dates · Shelf life left · A list of lots
How to calculate an expiry date
Add the shelf life to the production date: whole months first, then days. 15 March 2026 plus 18 months is 15 September 2027. When the new month has no such day, the date moves to the last day of that month, so 31 January plus one month is 28 February.
Expiry date = production date + shelf life
A shelf life in days or weeks is a plain count of days: 15 March 2026 plus 730 days is 14 March 2028, one day short of two years, because 2028 has a 29 February. A shelf life in months or years follows the calendar, and no standard defines what to do at a month end. Software does it one way: Oracle's Java date library and PostgreSQL keep the day of the month and use the last day of the new month when the day does not exist. The calculator does the same and says so under the result.
| Production date | Shelf life | Expiry date |
|---|---|---|
| 31 January 2027 | 1 month | 28 February 2027 |
| 31 March 2027 | 1 month | 30 April 2027 |
| 31 August 2027 | 6 months | 29 February 2028 |
| 29 February 2028 | 12 months | 28 February 2029 |
| 30 January 2027 | 13 months | 29 February 2028 |
A month is not 30 days. In our test on 22 November 2026, Omni Calculator's expiration date calculator, one of the five tools we opened from the Google top 10, gave 13 September 2027 for 15 March 2026 plus 18 months, because it appears to count a month as about 30.4 days. On a pack the two days matter: the earlier date throws away good stock, a later one would sell stock past its date.
Does the shelf life include the production day?
No standard says. The calculator counts the production day as day 0, so a 10-day shelf life from 1 March ends on 11 March. If your quality system counts the production day as day 1, tick "The shelf life counts the production day" under Label and date options: every expiry date moves one day earlier.
How to read expiration dates on a pack
Read an expiry date with only a month and a year as the last day of that month. EXP 11/2026 on a medicine means the product is in date to 30 November 2026: Health Canada's labelling guidance assumes the last day of the month, and EU package leaflets say the expiry date refers to the last day of the month. On EU food the words show it: "Best before end" is used when the date has no day.
Amazon reads it the other way. Its help page for expiration-dated products says a date written MM-YYYY is read as the first day of that month, so 11-2026 on an FBA unit is 1 November 2026.
The calculator reads a production date with only a month and a year, such as MFG 03/2026, as the first day, 1 March 2026, so the expiry date it gives is the earliest it can be.
GS1 dates in brackets
A date on a GS1-128 label or in a GS1 DataMatrix follows an Application Identifier, the number in brackets. The date is always six digits, year, month and day: (17)270915 is 15 September 2027. The GS1 General Specifications give the dates these AIs:
| AI | Date | Example |
|---|---|---|
| (11) | Production date | (11)270915 |
| (13) | Packaging date | (13)270915 |
| (15) | Best before date | (15)270915 |
| (16) | Sell by date | (16)270915 |
| (17) | Expiration (use by) date | (17)270915 |
Day 00 means the last day of the month, with February counted right in a leap year: (17)280200 is 29 February 2028. Since 1 January 2025 the GS1 General Specifications forbid day 00 in the production and expiry dates of regulated healthcare products; GS1 Sweden explains the change. The two-digit year is read within 49 years back and 50 years ahead of the current year, so in 2026 the year 76 is 2076 and 77 is 1977. To read every field of a label, not only the dates, use the GS1-128 parser.
Slashes, dots and day numbers
05/06/2026 is 5 June in most of the world and May 6 in the USA. The calculator reads such a date the way your browser's language suggests, says how it read it, and offers the other reading in one click. A date with dots, such as 05.06.2026, is always day first. Five digits such as 26325 are usually a Julian code, the year and the day of the year: read those with the Julian date converter.
How much shelf life is left
Divide the days left by the whole shelf life. The lot made on 15 March 2026 with an 18-month shelf life has 549 days from production to expiry. On 22 November 2026 297 of them are left, so just over 54% is left (54.098%). The calculator rounds down, so a lot is never shown at a minimum it has not reached.
Percent left = days left ÷ total days × 100
A distribution centre checks this at goods-in. Retailers set a minimum life on receipt (MLOR) for each product, and the figures are their own: the European Commission's 2018 market study found bread with the highest requirement, at least 86% of its date life left on delivery. In Japan the one-third rule is a trade custom: deliver before a third of the time to the best-by date has passed, sell before two thirds have passed.
Type a minimum in the calculator as a share (2/3, 70%) or as a time (105 days, 3 months). With 2/3 as the minimum, the same lot needs 366 days left. It last met that on 14 September 2026 and on 22 November 2026 it is 69 days short. The result also lists the last day with 2/3, 1/2 and 1/3 left for every lot.
Amazon sets its own limits for expiration-dated products sent to its warehouses. Its food and beverage page says units within 50 days of the expiry date are removed for disposal. The minimum on arrival differs between Amazon's pages, so check the current figure for your category in Seller Central before you ship.
How to print the date on a label
Inside the EU, a best-before date shows as much of the date as the shelf life needs. Regulation 1169/2011, Annex X, sets three steps:
| Shelf life | The date shows | Example |
|---|---|---|
| Up to 3 months | Day and month | Best before 15.05 |
| Over 3 months, up to 18 months | Month and year | Best before end 08.2027 |
| Over 18 months | Year | Best before end 2027 |
A shorter form can run past the real date. A lot that expires on 15 September 2027 printed as "best before end 09.2027" would gain 15 days, so the calculator gives the safe month, August, or the full date. A use-by date always has the day and the month, and the regulation treats food past it as unsafe. GOV.UK puts the difference plainly: use-by dates relate to safety, best before dates to quality.
In the USA, the FDA says federal law asks for no quality date on packaged food except infant formula, and it supports "Best if Used By" as the standard phrase. For cosmetics sold in the EU, Regulation 1223/2009 asks for a date only when the product keeps for 30 months or less; above that, the pack shows how many months it lasts after opening.
For a barcode, choose the AI by the kind of date: (17) for an expiry or use-by date, (15) for a best-before date, (16) for a sell-by date. Pick it under Label and date options and the calculator writes the element string, ready for the GS1 DataMatrix generator.
Check a list of lots
Paste one lot per line from a spreadsheet or a stock report: a label, then a production date and a shelf life, or two dates, or the expiry date alone. The table gives each lot's expiry date, days left, share left and status for today, and a minimum marks the lots below it.
A label if you like, then a production date and a shelf life, or two dates, or one expiry date. Commas, semicolons or tabs between them, so a column pasted from a spreadsheet works. Up to 500 lines.
What the calculator does not do
It does not know how long a product keeps. The maker sets the shelf life from its own tests of the product, so type the figure from the specification or the pack. It works in whole days from 1900 to 2199, with no time of day. It reads printed dates and GS1 dates, not a maker's own lot code.
Frequently asked questions
What does the expiry date 11 2026 mean?
It means the end of November 2026, so the product is in date up to 30 November 2026. When a medicine shows only a month and a year, Health Canada's labelling guidance assumes the last day of the month. Printed short as EXP 11/26, it is the same date: 26 is the year, not 26 November, and the calculator reads it as 30 November 2026. Amazon is the exception: it reads 11-2026 on an FBA unit as 1 November.
How do you calculate an expiration date?
Add the shelf life to the production date, whole months first and then days: 15 March 2026 plus 18 months is 15 September 2027. Months count on the calendar, not as 30 days, and when the new month is too short the date moves to its last day: 29 February 2028 plus 12 months is 28 February 2029.
How do you read a coded expiration date?
Look for brackets first: a date after (17), (15) or (16) is a GS1 date in the order year, month, day: (17)271100 is the end of November 2027, because day 00 means the last day of the month. Five digits such as 26325 are usually a Julian code, the year and the day of the year. A maker's own lot code needs the maker's key.
Can you use a product after the best before date?
Usually yes for food: a best before date is about quality, a use-by date about safety. GOV.UK says that after the best before date food is usually safe to eat but may not be of the same quality, and that use-by dates tell you when food is no longer safe. EU law treats food past its use-by date as unsafe. For medicines, ask a pharmacist.
What is the difference between shelf life and expiry date?
Shelf life is a length of time, the expiry date is a day on the calendar. The maker sets the shelf life from tests of the product, for example 18 months, and adds it to the production date to get the expiry date printed on the pack: 15 March 2026 plus 18 months is 15 September 2027. The shelf life calculator works in both directions.
How do I calculate the remaining shelf life as a percentage?
Divide the days left by the total days of the shelf life and multiply by 100. A lot made on 15 March 2026 with an 18-month shelf life has 549 days in total. On 22 November 2026 it has 297 days left, so just over 54% is left (54.098%), and the calculator shows 54%. A minimum can also be a time: against 105 days, the same lot has 192 days to spare.
What is the one-third rule for shelf life?
It is a trade custom in Japan, not a law. Japan's Ministry of Agriculture describes it this way: the time from production to the best-by date is split into thirds, retailers do not take in stock after the first third has passed, and they do not sell it after the second third. So a supplier delivers with at least 2/3 of the shelf life left. The ministry names it as one of the causes of food waste.
Is 31 January plus one month 28 February?
Yes, by the rule Java and PostgreSQL use: February has no 31st, so the date moves to the last day of February, 28 February or 29 February in a leap year. No food or medicine standard defines it. A shelf life of months and days adds the months first: 30 January 2026 plus 1 month and 1 day is 28 February plus 1 day, 1 March 2026. Adding the day first would give 28 February.
What date format does Amazon want on FBA products?
MM-DD-YYYY in the USA, such as 03-15-2026, is the numeric form Amazon's help page for expiration-dated products prefers, and its pages for Europe show DD-MM-YYYY. A month and a year alone, such as 03-2026, Amazon reads as the first day of that month. The calculator shows the US and the day-first forms of every expiry date it works out. It prints them with slashes; Amazon's own examples use hyphens.
By The eancheck teamPublished
Questions or corrections? Email the eancheck team.