Skip to content
Performetic

SEO and GEO

How to handle out-of-stock and discontinued products for SEO

Written by Published Last updated 5 min read
How to handle out-of-stock and discontinued products for SEO

In short

Keep a temporarily out-of-stock product page live, set availability to OutOfStock in structured data and offer alternatives. Redirect a permanently discontinued product with a 301 only when a genuinely similar product exists. If there is no close match and the page has no value, return a 404 or 410. Avoid redirecting everything to the home page.

Contents
  1. How should you handle out-of-stock products for SEO?
  2. How does Google understand stock status?
  3. What should a temporarily out-of-stock page do?
  4. How should pre-order and back-order products be shown?
  5. When should a discontinued product be redirected?
  6. Why is redirecting products to the home page a problem?
  7. Is there a difference between 404 and 410?
  8. What about seasonal products that come back?
  9. How do you make decisions at scale?
  10. Key takeaways

How should you handle out-of-stock products for SEO?

The decision depends on whether the product is coming back. A temporarily out-of-stock product keeps its page live, updates the stock status in structured data and shows alternatives. A permanently discontinued product is redirected with a 301 when a genuinely similar product exists. Pages with no close match and no value return a 404 or 410.

Stock changes constantly in ecommerce, and deleting or redirecting pages every time wastes the search visibility they have built up. Keeping hundreds of "sold out" pages forever is not the answer either, because it frustrates shoppers. The right approach is a clear decision rule for every product.

How does Google understand stock status?

Google's product structured data documentation lists the schema.org values for the availability property inside an Offer. The ones used most in ecommerce are:

Value Meaning When to use it
InStock In stock Products available to buy
OutOfStock Currently out of stock Temporary stockout
BackOrder The item is on back order Coming from the supplier, orders accepted
PreOrder Available for pre-order Not yet released
SoldOut Sold out Limited run, sale finished
Discontinued Discontinued Permanently withdrawn product

Visible page content and structured data must say the same thing. If the page says "sold out" but the markup still says InStock, Google may show incorrect information in results. We cover the overall setup in our Product schema guide. If you list products on Google Shopping, update stock in your Merchant Center feed at the same time.

What should a temporarily out-of-stock page do?

If the product will return within days or weeks, the page should stay live and return a 200 status code. Removing it causes Google to drop it from the index, and visibility has to be rebuilt from scratch when the product returns.

Ways to keep the page useful:

  • Clear stock message: show "currently out of stock" next to the price.
  • Notify me: an email or push alert keeps demand from leaking away.
  • Expected date: if you know when it will be back, say so.
  • Alternatives: show similar products from the same category high on the page.
  • Variant level: if only one size or colour is out, mark that variant as unavailable, not the whole product.

On category pages, moving out-of-stock products to the end of the list lets shoppers see what they can buy first.

How should pre-order and back-order products be shown?

If a product is not yet in stock but you can still take orders, the situation is different. BackOrder covers items coming from a supplier that you can already sell, and PreOrder covers products not yet released. Show a clear message such as "order now, estimated dispatch date" and keep the add-to-cart button active. Being explicit about dispatch timing manages expectations and helps keep returns down. Check that the structured data value matches the on-page message, and that both switch to InStock together when the product arrives. Running pre-order campaigns on the same product page rather than a separate URL means the visibility you build is not lost at launch.

When should a discontinued product be redirected?

If a product will never be sold again, you have three options. The decision table looks like this:

Situation Recommended action Why
A direct successor model exists 301 redirect to the new model The shopper finds the current version
Similar products exist, no exact match 301 redirect to the most relevant sub-category The shopper sees options
The page still earns traffic and links, and has informational value Keep it as an information page marked Discontinued Manuals or spare parts info stay useful
No close match, no traffic, no links Return a 404 or 410 Don't send shoppers to an irrelevant page

According to Google's redirect documentation, permanent redirects (301 and 308) are used as a signal that the target should be canonical, and the target URL is shown in search results. Use permanent redirects only when you are sure they will not be reverted.

Why is redirecting products to the home page a problem?

Bulk-redirecting every discontinued product to the home page looks easy, but shoppers land on an unrelated page instead of the product they wanted. A bulk redirect tries to pile the value of every removed product onto one page, yet it answers nobody's question. A redirect target should genuinely serve the purpose of the original page; if no such target exists, honestly returning a 404 or 410 is the better choice.

Is there a difference between 404 and 410?

According to Google's documentation on HTTP status codes, all 4xx codes except 429 are treated the same: Google's crawlers signal that the content does not exist, and a previously indexed URL is removed from the index. So do not expect a meaningful SEO difference between 404 and 410. What matters is that a removed page really returns a 4xx code rather than a "product not found" page that returns 200, which ends up in soft 404 reports.

What about seasonal products that come back?

For products that return every year in the same season (for example, a winter coat range or school bags), the best approach is to keep the URL. Out of season, the page stays live with OutOfStock or PreOrder status and comes back into stock at the start of the season. Links and visibility earned in previous years are reused every season.

If the product returns each year under a new model code, redirecting the old model's page to the new one with a 301 provides the same benefit.

How do you make decisions at scale?

Reviewing hundreds of out-of-stock products one by one is hard. This process helps:

  1. Export all out-of-stock products from your platform.
  2. Tag each product: coming back, permanently discontinued or seasonal.
  3. For discontinued products, add clicks from the last 16 months in Search Console and any external link data.
  4. Use the decision table above to assign 200, 301 or 404 to each product.
  5. Implement the redirects, remove discontinued products from internal links and update your sitemap.
  6. A few weeks later, check the soft 404 and 404 reports in Search Console.

The process mirrors the steps used for large URL changes; see our site migration guide for more detail.

Key takeaways

  • For temporary stockouts, keep the page live, set availability to OutOfStock and offer alternatives.
  • Page content, structured data and your Merchant Center feed should all say the same thing.
  • Redirect discontinued products with a 301 only to a genuinely related product or sub-category.
  • Avoid mass redirects to the home page; return a 404 or 410 when no relevant target exists.
  • Reuse the same URL every year for seasonal products.

If you would like help building a decision list for the out-of-stock products in your catalogue, the Performetic team can look at it with you as part of a free growth analysis.

Frequently asked questions

Does an out-of-stock product page lose its Google ranking?

As long as the page stays live and returns a 200 status code, it can remain indexed. Shoppers may engage less with an unavailable product, though, so show a clear stock message, a notify-me option and alternatives. For products that will not return for a long time, make a permanent decision.

Is redirecting a discontinued product to its category correct?

If no direct successor exists, a 301 redirect to the most relevant sub-category is usually a good choice because shoppers see similar options. The target must be genuinely relevant. Redirects to a very broad category or to the home page do not help users.

Should I use 404 or 410?

According to Google's documentation, all 4xx codes except 429 are treated the same, and previously indexed URLs are removed from the index. In practice, expect no SEO difference between the two. What matters is that the removed page truly returns a 4xx code rather than a 200.

Do out-of-stock variants need separate handling?

Yes. If only one size or colour is unavailable, do not mark the whole product as sold out. Show stock at variant level and update the availability of the relevant offer in structured data. That way the variants still in stock keep selling and appear in search with accurate information.

Sources

  1. Product snippet structured data (Google Search Central)
  2. Merchant listing structured data (Google Search Central)
  3. Redirects and Google Search (Google Search Central)
  4. How HTTP status codes affect Google's crawlers (Google for Developers)
  5. ItemAvailability (schema.org)

Your ad budget deserves more.

We review your store and ad accounts and send you three concrete growth opportunities, free of charge.

Get a free audit
Get a free audit