How to Handle Out-of-Stock Products for SEO on E-commerce Sites

Every e-commerce site hits the same wall: a product sells out, and someone asks the dreaded question “should we just delete the page?”. The wrong answer quietly burns rankings, backlinks and internal link equity that took years to build. The right answer depends on one thing only: is the product coming back?

This guide gives you a decision tree for out of stock products SEO, then the on-page tactics that keep those URLs earning traffic while the item is unavailable. No generic “it depends” advice: rules, examples, schema and a monitoring routine.

The short answer (TL;DR)

  • Coming back within a few weeks or months? Keep the URL live, keep it indexable, update the page and the schema to OutOfStock, add a back-in-stock signal.
  • Discontinued but you sell a close replacement? Keep it live for a while with alternatives, then 301 redirect to the successor product once traffic and links justify it.
  • Discontinued, no replacement, no links, no traffic? Return 410 Gone and clean up internal links.
  • Seasonal? Never delete. Keep the URL permanently and repurpose the page off-season.

Rule of thumb: deleting a URL is the only decision you cannot undo cheaply. Everything else is reversible. See https://webspero.com.

out of stock warehouse shelf

Why deleting out-of-stock pages costs you money

Product URLs are rarely “just” product URLs. They accumulate:

  • External backlinks from reviews, forums, roundups and press coverage
  • Internal link equity from categories, collections, blog posts and related-product modules
  • Long-tail rankings on model numbers, SKUs, brand + product queries that convert extremely well
  • Historical engagement signals Google has associated with that URL over time

Bulk-deleting a few hundred sold-out SKUs typically produces a wave of 404s, a drop in crawl efficiency, orphaned internal links and lost category-level relevance. On large catalogues, the loss is rarely a single page: it is the aggregate long tail that used to bring qualified visitors who then bought something else.

There is also a second problem nobody talks about: a live product page with an Add to cart button that does nothing, no price, no explanation and no alternative is a bad experience. Google can treat thin, unhelpful, permanently unavailable pages as soft 404s, and searchers bounce. Keeping the page is only the right call if you also retool the page.

The decision tree for out-of-stock product pages

Ask these four questions in order. Stop at the first one that gives you a clear answer.

Question 1: Will this exact product be back in stock?

Yes, within roughly 0 to 6 months → Keep the URL. Keep it indexable. Do not noindex, do not redirect, do not remove it from your sitemap. Update the page (see the on-page section below).

Yes, but in more than 6 months (seasonal, annual restock) → Keep the URL permanently and repurpose it off-season: buying guide content, sizing information, waitlist, related in-season products. Seasonal URLs that stay live for years rank far faster when the season returns than freshly created ones.

No, never → Go to Question 2.

Question 2: Does the page have SEO value worth saving?

Check three data points before touching anything:

  1. Referring domains pointing to the URL (any decent backlink tool)
  2. Clicks and impressions over the last 12 months in Google Search Console
  3. Assisted revenue: sessions that landed on that page and converted elsewhere on the site

If the page has backlinks, meaningful impressions, or drives assisted revenue, it has value. Go to Question 3. If it has none of the three and never really did, go to Question 4.

Question 3: Is there a genuinely equivalent replacement?

Yes → 301 redirect to the successor product page (new model, same product different pack size, same item under a new SKU). A 301 to a truly equivalent product passes the signals and lands the user on something they can buy.

No exact successor, but a relevant category → two acceptable options:

  • Keep the page live as a discontinued product page with a clear notice and 3 to 6 alternatives (best when the page still gets branded or model-number searches)
  • 301 to the tightest matching category or subcategory (best when the page gets few direct searches but holds links)

Never redirect en masse to the homepage. Irrelevant redirects get treated as soft 404s and you lose the equity anyway.

Question 4: No value, no replacement

Return 410 Gone, remove the URL from your sitemap, and remove every internal link pointing to it. 410 tells Google the removal is intentional and permanent, and those URLs typically drop out of the index faster than with a 404. Functionally both work, 410 is just cleaner and faster.

out of stock warehouse shelf

Decision table: every common scenario

Scenario Action Status code Index? Schema availability
Temporarily out of stock, restock date known Keep + restock date + waitlist 200 Yes OutOfStock or BackOrder
Out of stock, restock date unknown Keep + waitlist + alternatives 200 Yes OutOfStock
Seasonal item (off-season) Keep permanently, repurpose content 200 Yes OutOfStock
Pre-order / not launched yet Keep, collect pre-orders 200 Yes PreOrder
Discontinued, direct successor exists 301 to successor product 301 Target only n/a
Discontinued, still gets searches or links Keep as “discontinued” page + alternatives 200 Yes Discontinued
Discontinued, no links, no traffic Remove, clean internal links 410 No n/a
One-off / limited edition, sold out forever Keep if it holds links, else 301 to category 200 or 301 Case by case SoldOut
One variant sold out (a size, a colour) Keep the page, disable that variant only 200 Yes Per-offer availability

On-page tactics for pages you keep

Keeping the URL is only half the job. A page that says nothing but “sold out” is a dead end for users and a soft-404 candidate for Google. Here is what a well-optimised out-of-stock product page contains.

1. Honest, specific availability messaging

Replace the Add to cart button with a clear status block, not a greyed-out button with no explanation:

  • “Back in stock around 12 September” when you know the date
  • “Temporarily unavailable, restock expected in 4 to 6 weeks” when you know the window
  • “This product has been discontinued” plus the reason and the successor, when it is gone for good

Keep the price visible. Hiding the price removes a key relevance signal and frustrates users comparing options. shopify.com goes into the numbers.

2. Correct structured data

Your Product schema must match reality. Mismatched availability is one of the most common causes of rich result and Merchant Center issues.

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Example Product",
  "sku": "EX-1234",
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/example-product",
    "priceCurrency": "EUR",
    "price": "149.00",
    "availability": "https://schema.org/OutOfStock",
    "availabilityStarts": "2026-09-12",
    "itemCondition": "https://schema.org/NewCondition"
  }
}

Useful values:

  • InStock / OutOfStock for the standard cases
  • BackOrder when customers can order now and wait
  • PreOrder for unreleased items
  • SoldOut for limited runs that will not return
  • Discontinued for permanently retired products you keep online
  • LimitedAvailability for low stock

On multi-variant pages, declare availability at the offer level so in-stock variants stay eligible while sold-out ones are marked correctly. And keep your product feed in sync: an out-of-stock item still advertised as available in your feed leads to disapprovals.

3. Alternative product suggestions above the fold

This is the single biggest revenue saver. When a visitor lands on an unavailable product, show 3 to 6 genuinely comparable items before the description, with:

  • Similar price band and specs, not random bestsellers
  • A short reason such as “Same fit, in stock now”
  • Real thumbnails, prices and availability

These modules also feed internal links to your in-stock inventory, which is exactly where you want crawl budget and equity flowing.

4. Back-in-stock signals

  • Email or SMS waitlist with a one-field form. It converts sold-out traffic into a list you own and gives you demand data.
  • Pre-order or back-order where your logistics allow it. A back-orderable product is still a transactional page.
  • Notify counters (“238 people are waiting”) add social proof and reduce bounce.

5. Keep the content, add to it

Do not strip descriptions, specs, reviews, FAQs or images. Reviews and Q&A are often the reason the page ranks. If the product is discontinued, add a short block: what replaced it, what changed, what to buy instead. That turns a dead SKU page into an informational asset that keeps ranking on the model name.

6. Do not orphan the page

Removing every internal link to an out-of-stock product while leaving the URL live is the worst of both worlds: the page stays indexed but loses its internal support and slowly decays. Keep at least one path from the category, or from a “previous models” module.

out of stock warehouse shelf

Category and listing pages: push down, do not hide

Most platforms let you hide sold-out items from collections. That is convenient for merchandising and dangerous for SEO, because it silently removes internal links and, on large catalogues, can leave categories looking empty.

Better approach:

  1. Sort out-of-stock items last instead of hiding them. Users see availability, the links stay.
  2. Label them clearly on the tile (“Out of stock”, “Back in September”).
  3. Only hide when the ratio is extreme, for example when more than half a category is unavailable, and then add a “Show unavailable products” toggle that still exposes links.
  4. Watch category thinness: a category with zero purchasable products should be reviewed, not left as an empty shell.

Should you ever noindex an out-of-stock page?

Rarely. Noindex removes the page from search results but does nothing for users who arrive from other channels, and it wastes the link equity the page holds. Reasonable exceptions:

  • Thin, near-duplicate SKU variants that never should have been separate URLs
  • Massive catalogues where thousands of permanently unavailable pages create real crawl waste and none of them hold links

In both cases, the better fix is usually consolidation (canonical or 301 to a parent product) rather than noindex.

out of stock warehouse shelf

Platform notes

Shopify

  • Setting a product to Draft or unpublishing it makes the URL return 404. If the item is coming back, keep it published and let it show as sold out.
  • Use collection sorting or a metafield-based rule to push sold-out items to the bottom rather than excluding them.
  • Redirects live in Navigation > URL Redirects; they are 301s. Build them only for genuinely equivalent products.
  • Shopify does not natively serve 410s, so a 404 plus removal from the sitemap is the practical equivalent for retired SKUs.
  • Check the theme’s JSON-LD: many themes hardcode InStock. Fix it to reflect real availability.

WooCommerce

  • The “Hide out of stock items from the catalog” setting removes internal links across the site. Use with caution.
  • Enable backorders where possible so the page keeps a transactional purpose.
  • Use a redirect plugin capable of returning 410 for permanently removed products.

Monitoring routine

Set this up once and review it monthly:

  1. Search Console > Pages: track “Not found (404)” and “Soft 404” counts. Sudden spikes usually mean a bulk product deletion happened without SEO review.
  2. Crawl your site and export URLs with a 404/410 status that still receive internal links. Fix the links, not just the URLs.
  3. Redirect audit: confirm no chains longer than one hop and no product redirecting to the homepage.
  4. Availability audit: crawl your product URLs and compare on-page availability with the schema and the feed. Mismatches are common after platform updates.
  5. Out-of-stock traffic report: segment landing pages that are currently unavailable and measure how many sessions still convert thanks to alternative modules. That number justifies the whole strategy internally.
out of stock warehouse shelf

Common mistakes to avoid

  • Bulk 301s to the homepage. Treated as soft 404, equity lost.
  • Deleting first, checking backlinks never. Always pull link data before removal.
  • Redirecting a temporarily unavailable product. When it comes back you have to unwind the redirect and rebuild rankings.
  • Leaving schema on InStock while the page says sold out.
  • Hiding sold-out items everywhere, which orphans URLs and starves categories of internal links.
  • Blank pages with no price, no description, no alternatives. That is a soft 404 waiting to happen.
  • Blocking the URLs in robots.txt to “save crawl budget”. Blocked pages can stay indexed with no content, which is worse.

A simple workflow you can hand to your team

  1. Product goes out of stock → automatic status update on the page and in the schema, waitlist form appears, alternatives module loads.
  2. After 90 days with no restock, the SKU enters a review queue.
  3. Merchandising confirms: returning, discontinued with successor, or discontinued without successor.
  4. SEO checks backlinks, clicks and assisted revenue, then applies the decision table above.
  5. Every removal or redirect is logged with a date so results can be measured later.

FAQ

Do out-of-stock products hurt SEO?

Not by themselves. A well-maintained out-of-stock page with clear messaging, correct schema and useful alternatives keeps its rankings. What hurts is mass deletion, dead-end pages with no content, and availability data that contradicts the page.

How long should I keep an out-of-stock product page live?

Indefinitely if the product returns or if the URL still attracts links and searches. Review permanently discontinued SKUs after about 90 days, then keep, redirect or remove based on their measurable value.

Should I use 404 or 410 for a deleted product?

Both eventually deindex the URL. 410 signals an intentional permanent removal and is generally processed faster, so use it when your platform supports it. Use it only for pages with no links and no traffic.

Can I 301 redirect a sold-out product to a category page?

Yes, when there is no equivalent replacement but the page holds links or traffic. Redirect to the tightest matching subcategory, never to the homepage, and never in bulk without checking relevance.

Should I hide sold-out products on Shopify?

Hiding them removes internal links, which weakens crawl paths. Prefer sorting them to the bottom of collections with a clear availability label. Only hide when a category is overwhelmingly unavailable, and keep an accessible way to reach those pages.

What schema availability value should I use for a discontinued product?

Use https://schema.org/Discontinued for retired products you keep online, and SoldOut for limited runs that will not return. Keep the value consistent with your on-page message and your product feed.

Does noindexing out-of-stock pages help?

Almost never. It removes visibility while keeping the maintenance burden and wasting link equity. Consolidation through canonical or 301, or simply improving the page, delivers better outcomes in nearly every case.

Bottom line

Handling out of stock products SEO well comes down to a single discipline: decide based on whether the product returns, not on gut feeling or a bulk cleanup script. Keep and improve what will come back, redirect what has a true successor, remove only what has neither value nor future. Then make every unavailable page do a job: capture demand with a waitlist, and route shoppers to something they can actually buy today.