Ecommerce SEO · Guide

Out of Stock and Discontinued Products: What to Do for SEO

When to keep, redirect or remove product pages that run out of stock or are discontinued, and how to keep your structured data and Merchant Center feed accurate.

Out of stock product page that stays live with a notify me button, alternatives and matching availability markup
Key takeaways
  • Keep temporarily out of stock product pages live, with clear stock status and alternatives.
  • Redirect discontinued products with 301s only to a close replacement or the most relevant category.
  • Mark availability correctly in structured data and in Merchant Center so they match the page.
  • Mass redirects to the homepage are often treated as soft 404s and waste the old page's value.
On this page

Every online store runs out of stock. Sizes sell out, seasonal lines end, suppliers stop making a product. What you do with those product pages decides whether you keep the rankings and links they have built, or quietly throw them away.

This guide covers out of stock products SEO in practical terms: when to keep a page, when to redirect it, when to remove it, and how to keep your structured data and Merchant Center feed in step. It is part of our complete ecommerce SEO guide.

Why out of stock pages matter for SEO

A product page that has been live for a while may have rankings, backlinks, reviews and a history of clicks. Deleting it throws all of that away. Leaving it as an empty dead end is not great either.

Google's John Mueller has said in a Search Central office hours session that when a product is out of stock, Google may treat the page more like a soft 404, and that this can affect its visibility in search. In other words, a page that offers nothing useful can drop, while a page that still helps the visitor has a better chance of holding on.

The goal is simple: keep pages that are still useful, and send search engines and shoppers somewhere sensible when a page is not.

What to do in each situation

Situation What to do Why
Temporarily out of stock, returning soon Keep the page live and indexable; show the status and a back in stock alert The page keeps its rankings and captures demand
Out of stock, accepting orders Mark as backorder with an expected shipping date Shoppers can still buy; Google sees accurate availability
One variant sold out (for example one size) Keep the product live; mark only that variant unavailable The product is still available in other options
Seasonal product returning next year Keep the page live with alternatives and the expected return Avoids rebuilding rankings every season
Discontinued, with a close replacement 301 redirect to the replacement product Passes the old page's value to a page that meets the same need
Discontinued, no replacement, but the page has links or traffic Keep it as an information page with alternatives, or 301 to the most relevant category Preserves value and still helps the visitor
Discontinued, no replacement, no links or traffic Let it return 404 or 410 and remove it from the sitemap Keeps the index clean
Decision flow for product pages: keep if returning, 301 to a replacement, keep an information page, or return 404 or 410
Choose between keeping, redirecting or removing a product page based on stock status and value.

Temporarily out of stock: keep the page working

For products that will come back, the page should stay live and still help the visitor:

  • Show the status clearly near the price, not hidden lower on the page.
  • Offer a back in stock alert by email or WhatsApp, so you capture the demand.
  • Show the expected restock date if you know it.
  • Link to close alternatives, such as the same item in another colour or a similar product.
  • Keep the content. Do not strip the description, images or reviews.

Update the availability in your product structured data so it matches the page. Schema.org supports values such as InStock, OutOfStock, BackOrder and PreOrder:

"offers": {
  "@type": "Offer",
  "price": "1499",
  "priceCurrency": "INR",
  "availability": "https://schema.org/OutOfStock",
  "url": "https://yourbrand.in/products/olive-linen-shirt"
}

Most Shopify themes and WooCommerce SEO plugins update this automatically from your inventory. Check one sold out product with Google's Rich Results Test to confirm. Our guide to product schema and merchant listings covers the rest of the markup.

Keep Merchant Center in step

If your products are in Google Merchant Center, availability must match there too. Google's supported values are:

Feed value When to use it Extra requirement
in_stock You can accept and fulfil orders now None
out_of_stock You are not accepting orders None
backorder Temporarily unavailable but accepting orders availability_date, shown on the product page
preorder Not yet released, accepting orders availability_date, shown on the product page

Google says availability must be consistent across the product page, structured data, checkout and your product data, and a mismatch in any of them can lead to a disapproval. Google also notes that preorder is only for products that have not been released yet; existing products that will return should use backorder. Our Google Merchant Center free listings guide covers feed setup in detail.

Product page, structured data and Merchant Center feed all showing the same out of stock status for one product
Keep the product page, the structured data and the Merchant Center feed saying the same thing about stock.
Free store SEO audit

Want more organic sales from your store?We check your product and category pages, schema, site structure, speed and Merchant Center setup, then send a prioritised fix list.

Get my free store SEO audit →

Discontinued products: redirect, keep or remove

When a product is gone for good, the decision depends on two questions: is there a close replacement, and does the page have value?

Redirect with a 301 when there is a genuine successor, such as a new model or the same product under a new name. The redirect should feel natural to the visitor. Someone looking for last year's linen shirt is happy to land on this year's version.

Do not redirect everything to the homepage. Google often treats mass redirects to irrelevant pages as soft 404s, so the old page's value is not passed on, and the visitor is confused.

Keep an information page for discontinued products that still attract searches or links, such as a popular model people look for by name. Explain that it is discontinued, list the closest alternatives and keep useful details such as specifications or manuals.

Use 404 or 410 for products with no replacement, no links and no traffic. Both tell Google the page is gone. Remove these URLs from your sitemap and from internal links.

Treat a large clear out like a small website migration: export the URLs, decide an action for each one, set up redirects in bulk and monitor Search Console afterwards.

Platform settings worth knowing

Shopify. Each product or variant can be set to continue selling when out of stock, which suits backorders. Many themes can hide sold out items from collection pages or move them to the end. When you change a product's handle, Shopify offers to create a URL redirect automatically. For discontinued products, delete the product or set it to draft, then add a redirect straight away in Shopify's built in URL redirects tool, because Shopify redirects only work from URLs that return a 404. Our Shopify SEO checklist covers related settings.

WooCommerce. The inventory settings include an option to hide out of stock items from the catalogue. Hiding them from category pages is fine, but keep the product pages themselves live if they are temporarily unavailable. Redirects usually need a plugin or server rules.

Out of stock products and category pages

Category pages full of sold out products frustrate shoppers. Move available products to the top, or hide sold out ones from category listings while keeping their product pages live. If a whole category runs empty for a season, keep the category page with helpful content and links to related categories instead of deleting it. Our guide to category page SEO explains how to keep these pages strong.

How to monitor the impact

  • Search Console Pages report: watch for rising soft 404s and "Not found" errors on product URLs.
  • Search Console Performance report: check clicks for products that went out of stock.
  • GA4 landing pages: track sessions and exits on out of stock product pages, and how many visitors click through to alternatives.
  • Merchant Center diagnostics: look for availability mismatch warnings.

A store with good product page SEO can hold rankings through short stock gaps, as long as the page keeps helping the visitor.

Get a catalogue clean up plan

If you have hundreds of sold out or discontinued products and no clear rules, we can help. Our ecommerce SEO team audits product URLs, sets the right action for each and builds redirect maps. Request a free store SEO audit to see where your catalogue is losing value.

Frequently asked questions

Not if they are coming back. Keep temporarily out of stock pages live with clear status, alternatives and a back in stock alert. Delete or redirect only when a product is discontinued.

They can. Google has said an out of stock page may be treated more like a soft 404, which can reduce visibility. Pages that still offer useful content, alternatives and accurate availability are in a better position.

No. Redirect to a close replacement or the most relevant category. Mass redirects to the homepage are often treated as soft 404s and leave visitors confused.

Both tell Google the page is gone. A 410 says it is gone permanently, and Google may drop it slightly faster, but in practice both work. Use either for products with no replacement and no value.

Set the offer's availability to OutOfStock, or BackOrder if you are still taking orders, and make sure the same status shows on the page and in your Merchant Center feed.

Lakshay Kr. Bhatnagar

Founder, BrandMates Studio

Lakshay has spent more than eight years in SEO, answer engine and generative engine optimisation, performance marketing and content strategy, working with brands across India, the Netherlands, the US, Canada, New Zealand and Malaysia. He founded BrandMates Studio in 2025.

Let's map your route.

Tell us where your brand needs to go. We'll come back with a free audit, a plan and a realistic timeline, usually within two working days.

Get a free audit Call