🏷️ Expiration Date Calculator

Add a shelf life to any start date and get the exact expiration date and days left.

-

How to Calculate an Expiration Date

Enter the date the product was made or packed, add its shelf life in days, weeks, months, or years, and the calculator returns the exact expiration date, how many days remain from today, and a plain-English status: good, expires soon, expires today, or expired. Leave "check on" empty to measure from today, or set it to audit stock as of a past or future date.

1

Enter the manufacture or packing date printed on the product.

2

Enter the shelf life and pick the right unit: days for fresh food, months or years for pantry goods.

3

Hit Calculate Expiry for the expiration date, days remaining, and status.

4

Use "check on" to see the status as of any date, useful for inventory audits.

The Method

Expiry = start date + shelf life Days left = expiry - today Month addition clamps to the month's last day (Jan 31 + 1 mo = Feb 28)

Days and weeks add exact day counts; months and years add calendar months, clamping to the last day when the month is short. January 31 plus one month becomes February 28 (or 29 in a leap year), which matches how manufacturers date their products. The status thresholds are practical: 30 days or fewer reads "expires soon" so pantry audits surface what needs attention first.

Worked Example

A product packed March 10, 2026 with an 18-month shelf life expires September 10, 2027, a Friday. Checked on October 16, 2026, that is 329 days remaining: comfortably good. Contrast January 31, 2026 plus one month: February has only 28 days in 2026, so the expiry is February 28, 2026, a Saturday, which was 230 days ago from October 16: expired.

Best Before vs Use By

The two phrases mean different things. "Best before" (or "best if used by") is about quality: the crackers may go stale after it, but they are not dangerous. "Use by" is about safety and applies to perishable foods like deli meat and dairy: after that date, the risk of foodborne illness rises. In the US, infant formula is the one product with federally required dating. For everything else, dates are manufacturer estimates, and your senses plus safe storage matter as much as the stamp.

Pantry Audit Tips

Run your pantry through this calculator twice a year. Enter each item's pack date and shelf life, sort by days remaining, and plan meals around the "expires soon" pile first. The FIFO rule (first in, first out) keeps the system working: new groceries go behind old ones. Most canned goods last 2-5 years, dry pasta 1-2 years, and spices lose potency long before they become unsafe, typically within a year of opening.

Reading Closed Date Codes

Some products, especially cans, use closed codes instead of plain dates: a string like "23256" often means the 256th day of 2023 (a Julian date code), sometimes with the plant code mixed in. There is no single US standard, so the manufacturer's website or customer line is the decoder ring. Once you crack the code for your favorite brand, convert the production date with the method above and add the shelf life from the label. Two minutes of detective work beats guessing.

A Second Worked Example: The Canned Goods Audit

A can of tomatoes packed January 15, 2024 with a 2-year shelf life: expiry January 15, 2026. Checked on October 16, 2026, that is 274 days past the date, status expired. But this is a "best before" date on an intact can, which means quality, not safety: the tomatoes are safe if the can is undamaged, though flavor and texture may have faded. The calculator gives the calendar fact; the label type tells you what to do with it.

Run the same audit on a "use by" date with the same 274-day overrun and the answer is different: discard. Same arithmetic, opposite action. The date math is only half the decision; the label wording is the other half.

US Date Label Rules

In the United States, date labels are largely unregulated. There is no federal requirement for "sell by," "best before," or "use by" dates on most foods; the one exception is infant formula, where the FDA requires a "use by" date. Everything else is manufacturer guidance, and the phrases are not legally defined at the federal level, which is why wording varies by brand.

This is why so much good food gets thrown away: consumers read "best before" as "unsafe after." Food banks and waste researchers consistently find that date-label confusion is a major driver of household food waste. When in doubt about a "best before" date, inspect the food: look, smell, and for cans, check for swelling or damage. The date is a quality promise, not a poison timer.

Common Expiration Mistakes

First: treating "best before" as "use by." Quality dates are about taste; safety dates are about risk. Learn which one you are reading. Second: ignoring the opened clock. An unopened jar lasts months; opened, the label usually says "refrigerate and use within" a week or two, and that second clock is the one that matters.

Third: the freezer myth. Freezing pauses quality loss but the clock restarts on thawing; "frozen on the use-by date" is fine, "thawed for a week" is not. Fourth: medicine-cabinet dating. Medications lose potency after expiry and some become unsafe; unlike canned tomatoes, expired drugs deserve the trash. Fifth: the month-clamp surprise. January 31 plus one month is February 28, not March 3; the calculator clamps correctly, but hand-added dates often overshoot.

The Sniff Test vs the Date: What Food Safety Experts Say

With one exception, US date labels are about quality, not safety. "Best if used by" means peak flavor; the food is usually fine after. "Use by" on infant formula is the single federally required date, and formula past that date should not be used. For everything else, the USDA's rule is blunt: if perishable food has been refrigerated properly and shows no signs of spoilage, the date is advisory. But "when in doubt, throw it out" still applies to meat, dairy, and anything that smells off, because pathogens do not always announce themselves. The calculator tells you where the date falls; your nose and the storage history tell you the rest.

Freezer Math: How Freezing Pauses the Clock

Freezing to 0Β°F stops the expiration clock for safety purposes: the USDA states frozen food remains safe indefinitely. Quality is the real limit: most meats hold 3 to 4 months before freezer burn and texture loss set in, poultry up to a year, and soups or stews 2 to 3 months. The trick is labeling with the freeze date, because a mystery package from 2023 is getting thrown out regardless of what the science says. Freeze in portion sizes, squeeze out the air, and write the date in marker; future you will be grateful.

Frequently Asked Questions

How do I calculate an expiration date?

Add the shelf life to the manufacture or pack date: 18 months after March 10, 2026 is September 10, 2027. The calculator above does the addition, handles short months like February, and shows days remaining and a status.

What is the difference between best before and use by?

Best before is about quality (staleness, flavor); use by is about safety and appears on perishables. In the US only infant formula has federally mandated dating; other dates are manufacturer guidance.

What happens when you add a month to January 31?

You get February 28, or February 29 in a leap year, because February has no 31st. The calculator clamps to the month's last day, which matches how manufacturers compute month-based shelf lives.

How long do canned goods last?

Typically 2-5 years in a cool, dry pantry, though quality peaks earlier. High-acid foods like tomatoes skew shorter; low-acid foods like beans skew longer. Discard cans that are bulging, leaking, or deeply dented.

Do spices expire?

They do not become unsafe, but ground spices lose flavor within about a year of opening and whole spices within 2-3 years. If you cannot smell the spice, it is done flavoring your food.

What does the 'expires soon' status mean?

Thirty days or fewer remaining. It is a pantry-management flag, not a safety verdict: plan meals around those items first or donate them while they are still good.

Can I eat food past its best-before date?

Often yes if it was stored properly and shows no signs of spoilage, since best-before is a quality date. Use-by dates on perishables deserve more respect. When in doubt, throw it out: the savings are never worth food poisoning.

How should I store food to reach its full shelf life?

Cool, dry, dark, and sealed: heat, moisture, light, and air are the four enemies. A pantry around 50-70 F works for most shelf-stable goods; refrigerate or freeze perishables promptly.