Taskcover Agency logo

Technical SEO

Out-of-Stock and Discontinued Products: What to Do

The short answer

When a product is out of stock but coming back, keep its page, say so clearly and update the availability in your product data. When a product is gone for good, redirect the page with a 301 only if a clear replacement exists. If nothing replaces it, return a 404 or 410 so Google drops the page.

Key takeaways

  • A product that is coming back keeps its page, with the stock status shown honestly.
  • For a removed page, Google's guidance is a 404 or 410 when nothing replaces it and a 301 redirect when a clear replacement exists.
  • Sending every retired product to the home page is not what that guidance describes.
  • The page, the product data in its code and the Merchant Center feed must all give the same stock status.
  • In Merchant Center, a product you no longer sell comes out of the feed. It is not marked out of stock.

Written byJamiez NguyenFounder & CEO

Reviewed byJohn EdwardCTO

Updated

Fact-checked

Reading time9 min

In this guide

This guide is for store owners working out how to handle out-of-stock product pages for SEO without losing the visits those pages earn. It covers the choice for each case, how to tell whether your store is getting it wrong, and what to ask your developer or platform. The practical detail follows. It is one part of eCommerce SEO. If you would like your catalogue checked, see our eCommerce SEO service.

What should you do with out-of-stock product pages for SEO?

Decide by one question: is the product coming back? What the page should do follows from the answer. The table sets out the five situations a store meets.

What to do with a product page, by situation.
SituationWhat the page doesProduct data and feed
Out of stock, coming backStays live. Says it is out of stock, when it returns if you know, and shows alternativesAvailability set to out of stock in both places
Sold out, but you take orders for later deliveryStays live. Says when the order will shipBack order or pre-order, with the date in the feed
Gone for good, and a clear replacement existsRedirects to the replacement with a 301Old product removed from the feed
Gone for good, but the page still helps peopleStays live as an information page with no buy button: the manual, spare parts, the model that followedMarked discontinued in the page's code and removed from the feed
Gone for good, with nothing left to offerReturns a 404 or 410Removed from the feed, the sitemap and your category pages

Google's guidance on fixing soft 404 errors separates two cases. If you removed the page and there is no replacement page on your site with similar content, return a 404 or 410. If the page has moved or has a clear replacement on your site, return a 301 permanent redirect.

SourceGoogle Search Central

Status code

The number a web server sends back with every page. 200 means the page loaded. 301 means it has moved for good. 404 means not found and 410 means gone. Visitors never see the number, but Google does.

How would you notice a problem?

Most stores find out from a customer, which is the expensive way. These signs show up earlier.

  • Shoppers arrive from Google on a product that looks available, and learn at checkout that it is not.
  • You click an old product in Google's results and land on your home page or a category, with no explanation.
  • A deleted product's address shows a friendly "sorry, not found" message while the server still reports success. Google calls that a soft 404.
  • Search Console's Page indexing report shows product addresses under Soft 404, or more under Not found (404) and Page with redirect than you expected.
  • Merchant Center reports that the availability in your feed does not match your product pages.

Should you delete out-of-stock products?

No, not while the product is coming back. Google removes a page from its index once the address returns a 404, so deleting the product means starting again when the stock arrives. Keep the page, and make it honest and useful.

  • State the status in plain words near the price: out of stock.
  • Say when it will be back, if you know. Leave the date out if you would be guessing.
  • Offer a way to be told when it returns, if your store has one.
  • Show two or three close alternatives that are in stock.

Never leave the page claiming the product can be bought. Google's structured data guidelines say the product data in your code must be a true representation of the page, so the stock status there has to change when the page does.

Should a discontinued product get a 404 or a redirect?

Redirect only when a clear replacement exists. Otherwise let the page return a 404 or 410. That is the line Google's guidance draws, and it rules out the common shortcut of sending every retired product to the home page.

Google does not define a clear replacement, so here is the test we use. Would a shopper who wanted the old product be satisfied by the new page? The next model of the same kettle passes. In our view, the kettles category does not.

  • A 404 and a 410 lead to the same result. Google says it treats all 4xx errors alike, apart from 429: a page that was indexed is removed from the index, and Google visits the address less and less often.
  • A 301 is the permanent kind of redirect. Google uses it as a signal that the new address should become the main one. A 302 is temporary and does not send that signal.
  • A not-found page can still be helpful. Google says custom 404 pages are created solely for users, and suggests links to popular content and the home page. The server must still send the 404 code.
  • Dead pages that report success have a cost. Google's crawl budget guidance says soft 404 pages will continue to be crawled.

Some discontinued products keep earning their page. If people still look for the manual, the spare parts or the model that replaced it, keep the page as information, remove the buy button and say plainly that the product is no longer sold. Google's product data has a value for exactly this state: Discontinued. Our guide to 301 and 302 redirects and the status codes that matter explains each code.

How do you keep the page, the product data and the feed in step?

Treat a change in stock as one event that updates three places at once: the visible page, the structured data in its code, and the product feed you send to Google Merchant Center. Trouble starts when one of them lags behind.

The places that must agree

  • The visible pageThe stock status in words, and no buy button for something that cannot be bought.
  • Structured data on the pageGoogle accepts ten availability values, among them InStock, OutOfStock, BackOrder, PreOrder, SoldOut and Discontinued, and asks for the single most appropriate one.
  • The Merchant Center feedThe feed has four values: in_stock, out_of_stock, preorder and backorder. Google says they must match the product page and the checkout, and that preorder and backorder need an availability date.
  • Products you no longer sellMerchant Center Help says not to mark these out_of_stock. Remove them from your product data.
  • Automatic item updatesThis Merchant Center setting reads your product page and corrects the price and availability in your listings. Google says it should already be on, and that it does not replace keeping your product data up to date.
  • Stock that moves fastGoogle notes that a page can show a product as unavailable before Merchant Center catches up, and recommends letting Merchant Center update its copy from your website. The Content API, a way for a store to send changes straight to Merchant Center, allows immediate updates.
  • Sitemap and category pagesTake redirected and removed products out of both. If a whole category empties, Google suggests a noindex tag for a category with no items, and says to consider a 404 once the category has become empty.

Product page SEO covers the product data in full, and how to add schema markup shows how to test it.

Related service

A catalogue checked product by product

We review your categories, products, filters and the product details in your code, then tell you what is holding sales back and what to fix first.

See the service

Our services for this

Questions people ask about out-of-stock and discontinued products

How long can a product stay out of stock before its page should go?

We know of no time limit in Google's documentation. Decide by whether the product is really coming back, not by the calendar. Put a review date on every out-of-stock product, and when the honest answer becomes no, treat it as discontinued.

Will 404 errors on old product pages hurt the rest of my store?

Not by themselves. A Google blog post on the subject says 404 errors are a perfectly normal part of the web, and that some addresses returning a 404 does not count against a site in Google's results. The harm comes from the opposite mistake: dead pages that still report success, which Google keeps crawling.

Can I hide a sold-out product with a noindex tag instead?

It is the wrong tool for a product that is coming back. Google says a page marked noindex is dropped entirely from its search results, which is the opposite of keeping the page's place. For a product that is gone for good, a 404 or 410 says so more plainly.

What about links that point to a product I removed?

Fix the ones you control. Menus, category pages, buying guides and blog posts should stop pointing at an address that redirects or returns a 404. For links from other sites, a 301 to a clear replacement sends those visitors on. Where nothing replaces the product, a helpful not-found page with links to related products is the honest answer.

Find out what your old product pages are doing

Send us your store and we will show you which product pages lead nowhere, which still claim stock you do not have, and what we would fix first.

The authors

Who wrote and checked this guide

Jamiez Nguyen, Founder and CEO of Taskcover Agency

Written by

Jamiez Nguyen

Founder & CEO

Jamiez Nguyen founded Taskcover and leads strategy and client growth. He started it in 2017 as a team doing search work behind the scenes for other agencies, then opened it to businesses in the USA, Canada and Australia.

John Edward, CTO of Taskcover Agency

Reviewed by

John Edward

CTO

John Edward leads the technical side of Taskcover: how sites are built, how fast they load, and how search engines read them.

Updated Fact-checked About the people at Taskcover

Sources

Where the facts in this guide come from

Facts last checked on October 12, 2026.

  1. Troubleshoot Google Search crawling errorsGoogle Search CentralChecked on October 12, 2026
  2. How HTTP status codes affect Google's crawlersGoogle Search CentralChecked on October 12, 2026
  3. Redirects and Google SearchGoogle Search CentralChecked on October 12, 2026
  4. Optimize your crawl budgetGoogle Search CentralChecked on October 12, 2026
  5. Do 404 errors hurt my site?Google Search Central BlogChecked on October 12, 2026
  6. Merchant listing (Product, Offer) structured dataGoogle Search CentralChecked on October 12, 2026
  7. Product snippet (Product, Review, Offer) structured dataGoogle Search CentralChecked on October 12, 2026
  8. General structured data guidelinesGoogle Search CentralChecked on October 12, 2026
  9. Availability [availability]Google Merchant Center HelpChecked on October 12, 2026
  10. Allow Merchant Center to update product information automaticallyGoogle Merchant Center HelpChecked on October 12, 2026
  11. Share your product data with GoogleGoogle Search CentralChecked on October 12, 2026
  12. Designing a URL structure for ecommerce websitesGoogle Search CentralChecked on October 12, 2026
  13. Block Search indexing with noindexGoogle Search CentralChecked on October 12, 2026
  14. Page indexing reportGoogle Search Console HelpChecked on October 12, 2026

Free SEO audit

Find out what search could bring your business.

Send us your website. We will show you where you stand, what is holding you back, and what we would do first.

Free, with no obligation.

  1. You send your websiteA short form. It takes about two minutes.
  2. We review itYour site, your competitors and what your customers search for.
  3. You get a clear planWhat to fix first, what it could bring, and what it would cost.

Taskcover uses necessary storage for security and forms. You can choose whether we use preferences, analytics, and marketing measurement.