Skip to content
CalcTide logo
Time & Date

Expiration Date Calculator

A product made on March 15, 2026 with an 18-month shelf life expires on September 15, 2027. This expiration date calculator adds a shelf life to a production, packaging, or purchase date and returns the exact expiry date, how many days remain, and whether the item has already passed its date. It handles days, weeks, months, and years, and it correctly resolves calendar edge cases like January 31 plus one month, where the target month has no 31st day to land on. The tool covers more than groceries. People use it for canned and packaged food, prescription and over-the-counter medication, cosmetics and sunscreen, cleaning chemicals, contact lens solution, and infant formula, plus non-food items that follow the same start-date-plus-duration pattern, such as passports, warranties, professional certifications, and food-safety inventory logs. Anywhere a label reads "use within 12 months of opening" or "valid for 5 years from issue," the same date math applies. Getting the expiry date right matters for different reasons depending on the item. For food and medicine, an accurate date protects against spending money on something already past its window, or discarding something still fine. For inventory, compliance, and personal documents, an accurate date keeps stock rotation, audits, and renewals on schedule instead of relying on memory or a note stuck to the fridge.

Time & DateBy

Quick answer

Expiration date = production date + shelf life.

Expiration

Expires April 11, 2028 (548 days left)

Expiration date

2028-04-11

Days remaining

548

What this tells you

  • •Expiration date = production date + shelf life.
  • •Days and weeks add exact day counts, so 14 days from July 10 is always July 24 regardless of which months it crosses.
  • •Months and years move the calendar date forward by that many months, keeping the same day of month whenever the target month has enough days.
  • •When the target month is shorter, the date clamps to that month's last day, so January 31 plus 1 month becomes February 28, not March 3.
  • •A whole-year shelf life added to a leap day, February 29, clamps to February 28 the next year, since most years have no 29th.
  • •The days-remaining count compares the computed expiry against today's date and switches to a days-past-expiry count once the item is overdue.
  • •Shelf life for months and years must be a whole number, because calendar months don't split evenly into days the way weeks do.

How to Use

  1. 1Enter the production, packaging, or purchase date shown on the label or receipt.
  2. 2Enter the shelf life number and pick its unit: days, weeks, months, or years.
  3. 3Click Calculate to see the expiration date, a formatted summary, and the days remaining.
  4. 4If the item has already passed its date, the result switches to show how many days past expiry it is instead of days remaining.
  5. 5For products with a separate opened-shelf-life rule, such as sauces or eye drops, run the calculation twice: once for the printed shelf life from the packaging date, and once for the shorter opened-shelf window from the date you opened it.
  6. 6For documents and warranties, use the issue date as the start date and the validity period as the shelf life, the same way you would for a food item.

How It Works

Formula

expiration date = start date + shelf life

For day and week shelf lives, the calculator adds the exact number of days: a 2-week shelf life adds exactly 14 days regardless of which months it crosses. For months and years, it moves the calendar forward the stated number of months while keeping the same day of month wherever that day exists in the target month. A 6-month shelf life from March 15 lands on September 15 because September has 15 days to spare. When the target month is shorter than the start day, such as one month past January 31, the calculator clamps the result to the last day of that month instead of overflowing into the next one, so the answer is February 28 rather than March 3. The days-remaining figure is the rounded difference, in whole days, between the expiration date and today. A positive number means time left, and a negative number, shown as "expired X days ago," means the item is past its calculated date.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

Canned food with an 18-month shelf life

Start Date2026-03-15
Shelf Life18 months
ResultExpires September 15, 2027

18 calendar months forward from March 15, 2026 lands on September 15, 2027, keeping the same day of month because both months have at least 15 days. This is a typical shelf life for shelf-stable canned goods.

Fresh milk, 14 days from packaging

Start Date2026-07-10
Shelf Life14 days
ResultExpires July 24, 2026

Days add as an exact count, so 14 days after July 10 is July 24 with no calendar-month adjustment involved. Dairy and other short-shelf-life items are almost always tracked in days rather than months.

Medication bought January 31 with a 1-month supply window

Start Date2026-01-31
Shelf Life1 month
ResultExpires February 28, 2026

February has no 31st day in 2026, so the date clamps to the month's last day, February 28, instead of rolling into March. This clamp rule applies whenever the start day is higher than the number of days in the target month.

Sunscreen with a 3-year shelf life

Start Date2025-06-01
Shelf Life3 years
ResultExpires June 1, 2028

Three years adds 36 months, and June has enough days to keep the 1st in the target year. Sunscreen and many other cosmetics commonly carry a 2-to-3-year shelf life measured from the manufacture date.

Document issued on a leap day

Start Date2024-02-29
Shelf Life1 year
ResultExpires February 28, 2025

February 29, 2024 was a leap day, and 2025 is not a leap year, so the calculator clamps the anniversary date to February 28 instead of rolling into March 1. Any yearly renewal issued on a leap day hits this same clamp in every non-leap year.

Contact lens solution, 90 days from opening

Start Date2026-11-20
Shelf Life90 days
ResultExpires February 18, 2027

Omar opens a bottle of lens solution on November 20, 2026 and the label says discard 90 days after opening. Entered as 90 days, the calculator returns February 18, 2027, exactly 90 days later. Had he picked 3 months instead, the result would be February 20, 2027, which is 92 days, because November, December, and January together hold 92 days. Two days rarely matter, but it shows why the unit on the label is the unit to enter.

Vitamins with a 6-week shelf life after opening

Start Date2026-05-01
Shelf Life6 weeks
ResultExpires June 12, 2026

Weeks convert to exact days behind the scenes, so 6 weeks becomes 42 days added to May 1, landing on June 12, 2026. This shorter window matches the opened-shelf-life dates many supplements and liquid medications print separately from their unopened date.

Expiration dates from a March 15, 2026 start

Common shelf-life spans added to one fixed start date, with the calendar days each adds. Days and weeks add an exact count. Months and years move the calendar, so the day count depends on which months the span crosses.

Shelf life enteredExpiration dateCalendar days added
7 daysMarch 22, 20267
14 daysMarch 29, 202614
30 daysApril 14, 202630
6 weeksApril 26, 202642
3 monthsJune 15, 202692
6 monthsSeptember 15, 2026184
12 monthsMarch 15, 2027365
18 monthsSeptember 15, 2027549
2 yearsMarch 15, 2028731
3 yearsMarch 15, 20291,096
5 yearsMarch 15, 20311,826

Computed with the formula above from a start date of 2026-03-15, with the days-remaining count read on the start date itself. The 2-year row adds 731 days rather than 730 because the span crosses February 29, 2028. Label terms in the explainer follow FDA and 21 CFR sources that were checked on the update date. The USDA FSIS Food Product Dating page could not be reached and was not re-verified on the update date.

Best By, Use By, Sell By, and the one date federal law requires

Date labels on US packaged food are voluntary, with one exception. The FDA's May 23, 2019 letter to the food industry states that manufacturers, except for infant formula, are not required by federal law or regulation to put quality dates on packaged food, and it asks industry to standardize on the phrase Best if Used By to mean the date a product will be at its best flavor and quality. USDA FSIS, which regulates meat, poultry, and egg products, describes the same three phrases: Sell By tells the store how long to display the product, Best if Used By marks peak quality, and Use By is the last date the manufacturer recommends for peak quality. None of them is a safety cutoff for shelf-stable food. If a product has been stored properly and shows no change in color, smell, or texture, FDA's position is that it should still be wholesome after the date.

Infant formula is the exception. Under 21 CFR 107.20 the label must carry a Use by date, month and year, chosen by the manufacturer on the basis of testing that shows the formula keeps its required nutrient levels and acceptable quality until that date when stored and prepared as directed. That makes it the only food date backed by a federal requirement, and the one date on this page you should not treat as a soft quality marker.

Drugs work differently again. For prescription and over-the-counter medicines, 21 CFR 211.137 requires an expiration date determined by stability testing under 21 CFR 211.166, tied to the storage conditions on the label, and shown for both forms when a product has to be reconstituted. The rule exempts a few categories, including homeopathic products, allergenic extracts labeled with no US standard of potency, investigational drugs, and over-the-counter products with no dosage limits that have stability data covering at least three years. A pharmacy's beyond-use date on a repackaged or opened item is a separate, shorter clock, which is why an opened bottle can expire before the printed date.

The calculator sits underneath all of these: it adds a duration to a start date and tells you how many days remain. It does not know whether the span you entered is a quality estimate, a nutrient guarantee, or a stability-tested limit, and it cannot see storage conditions. Cosmetics add one more convention, the open-jar symbol with a figure such as 12M, which counts months from first opening under European cosmetics rules rather than from manufacture, and which US law does not require at all. Match the start date to the clock your product actually runs on, then let the date math do the rest.

Add or subtract any number of days from a date

Common mistakes

  • Counting from the purchase date when the label counts from production. Weeks can pass between the two for shelf-stable goods.
  • Treating best-before as unsafe-after. Best-before marks peak quality, while use-by on perishables is the actual safety line.
  • Ignoring the opened clock. Many products switch to a much shorter life once opened, whatever the printed date says.
  • Picking the wrong unit in the dropdown. Entering "6" as months instead of weeks moves the date roughly four times further out, which matters most on short-shelf items like opened sauces or eye drops.
  • Assuming a whole-year shelf life from a leap day lands on February 29 again. It clamps to February 28 in every non-leap year, so a one-year renewal from February 29 is due February 28, not March 1.
  • Reading days remaining as a safety margin. The count is calendar math only, so an item left in a hot car or a torn package can spoil well before the computed date arrives.

Embed this calculator on your site

Paste this code where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use as long as the credit line stays in place.

<script src="https://calctide.com/embed.js" data-tool="expiration-date-calculator" async></script> <p style="font-size:12px;margin:4px 0 0">Expiration Date Calculator by <a href="https://calctide.com/time-date/expiration-date-calculator/">CalcTide</a></p>

Preview the embed at /embed/expiration-date-calculator/.

Frequently Asked Questions

Add the shelf life to the production date. A March 15 production date with 18 months of shelf life expires September 15 the following year, and this calculator does that addition automatically once you enter both values.
The date clamps to the last day of the target month. January 31 plus one month gives February 28, or February 29 in a leap year, rather than overflowing into March.
No. Best-before is about quality, and food is often still fine after it. Use-by dates on perishable items like fresh meat are the safety cutoff, and this calculator's output should be read against whichever label term your product actually uses.
Usually, yes. Sauces, dairy, and cosmetics switch to a days-or-weeks clock once opened. Look for the open-jar symbol with a month count on the label, and run the calculation again using the date you opened it.
As the whole days from today to the expiry date. An item expiring tomorrow shows 1 day remaining, and an expired product shows how many days past its date it is instead.
Yes. The same date math covers warranty periods, certification renewals, visa or passport validity, and anything else with a start date plus a fixed duration.
Shelf life is the duration, like "18 months," and the expiration date is the specific calendar date you get after adding that duration to the production date. This calculator turns a shelf life duration into a fixed date so you don't have to count months by hand.
No, months and years require a whole number because calendar months have different lengths. If your shelf life is roughly six weeks, use the weeks or days unit instead, since those add exact day counts and accept any whole number.
The calculator clamps to the last valid day of the target month rather than rolling into the next month, and most years don't have a February 29th. Only leap years, like 2028 or 2032, would let a February 29 start date fall on that same day again.
It estimates expiration date calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Time & Date