Skip to content

Tracking Expiration Dates in Shopify

Shopify has no expiration date field. The workarounds (metafields, tags, separate variants), where they fail, and how makers track best-before by batch.

By Koa Sterling. Product specialist at TaroStack and small business owner. Yes, I am a real human, and I actually sit in front of a computer and write these articles. Reviewed October 27, 2026 · 3 min read

Shopify doesn't track expiration dates. It counts each variant as one pile of identical units, so 40 jars made in two batches with two best-before dates are just 40 jars. The common workarounds are a metafield with a date, tags, or a separate variant for each batch, and each breaks down once you have more than one batch on the shelf. Tracking expiry properly means tracking batches (lots), with a date on each, and selling the oldest first.

The short version

  • No expiry field in Shopify's inventory, and no per-batch counts.
  • A metafield holds one date per product or variant, not one per batch.
  • A variant per batch works for one or two batches, then clutters the store.
  • Shopify can't sell oldest-first. That's a packing habit or an app.
  • Expired stock leaves with Adjust by. Shopify has no "expired" reason, so pick one and add a note.

The workarounds and their limits

Workaround How Breaks when
Metafield A date field on the variant Two batches with different dates are on the shelf
Tags "exp-2026-12" on the product Same, and tags don't count units
Variant per batch "Batch Nov" and "Batch Dec" as options Every batch adds a variant; old ones linger; customers see them
Spreadsheet Batch, date, quantity Someone forgets to update it after packing

A made-up example: two batches, one shelf

Waiʻanae Granola makes Mango Coconut in batches of 120 bags with a 4-month best-before. On November 1 the shelf has 30 bags from July (best before November 20) and 120 from October (best before February). Shopify says 150.

With only Shopify, packers grab whatever's at the front, and in late November 18 July bags are still there, past date. With batches tracked, the July bags are picked first and the owner gets a warning on November 10 that 22 bags won't sell in time; they go into a discounted bundle instead of the bin.

Handling expired stock in Shopify

When stock expires, take it out of what customers can buy:

  1. Use Adjust by to move the expired units to Inventory removal, and write the reason in a note. Shopify's reasons don't include "expired", so use Correction or Damaged consistently and say why.
  2. Or, while you decide, move them to Unavailable > Other, so they stay counted but can't sell.

Shopify unavailable inventory covers the states.

Showing dates to customers

Some shoppers want to know a product's date before buying, especially for food and skincare. A product metafield can show a "best before at least" date on the product page, if you update it as batches change. Keep it conservative: show the earliest date you might ship.

Where this stops working

Every workaround stores a date somewhere Shopify ignores. Shopify won't stop a past-date unit selling, won't pick oldest first, and won't tell you what's about to expire. And none of them tie a date to the ingredients: if the coconut flakes expire before the granola does, the granola's date is wrong. Shopify lot numbers and FEFO vs FIFO cover the real fix.

How TaroStack does it

TaroStack for Shopify runs inside your Shopify admin and gives every batch a lot code, production date and best-before date, and every ingredient its supplier's dates. It uses first-expired-first-out by default, keeps holds and quarantine out of what can be sold, and forecasts what will expire unsold and what it will cost. Finished batches go onto your Shopify location as one count, with the dates kept behind it. Free for 14 days.

Questions people also ask

Can Shopify track expiration dates?

Not natively. You can store a date in a metafield, but Shopify won't count units by date or act on it.

How do I stop selling expired products in Shopify?

Move expired units out of available, with Adjust by. Shopify won't do it automatically.

What's the best way to track batches in Shopify?

With an app that tracks lots. Shopify batch tracking compares the options.

Sources

  1. Shopify Help Center: Understanding inventory states · read October 27, 2026
  2. Shopify Help Center: Adjusting inventory quantities · read October 27, 2026
  3. Shopify Help Center: Adding variants · read October 27, 2026
  4. Shopify Help Center: Hiding out of stock products · read October 27, 2026

We use AI to help with the research for these articles. Every one is read, checked against its sources and edited by Koa before it's published. Spot a mistake? Tell us and we'll fix it and say so. How we write these.

Let’s get your stack in order.

TaroStack for Shopify

Free for 14 days.