Key takeaways
- A product that is only out of stock for a while keeps its page, its URL and a 200 status. Google says to keep the page and mark it out of stock.
- Do not noindex it or use the Removals tool. Both take the page out of Google Search.
- The page, the Product structured data and the product feed should all say the same thing about availability and price.
- A product gone for good goes to a genuine replacement, then the closest category or a highly relevant page, and only to the home page as a last resort.
- Write these rules into the product template once, so nobody decides page by page.
Out of stock product pages should stay live. When a product is only temporarily unavailable, keep the page at the same URL, show the status clearly and set its structured data to the right availability value; redirect or remove it only when the product is gone for good. Getting the template to do that automatically is part of technical SEO work for online shops.
I covered stock changes briefly as one step of my ecommerce technical SEO guide, and the rule for discontinued products below is the same one. This article goes into the detail: what the page, the markup and the feed should each say.
I first published this article in 2025 and have rewritten it, removing revenue, click-through and conversion figures I could not trace to any source.
Temporarily out of stock means keep the page
Google’s page on pausing or disabling a website is written for shops that stop selling for a while, and its advice applies to a single product just as well: “It’s better to still allow that page, and mark it out of stock.” It also says to adjust structured data so it reflects the current product availability.
The same page lists what not to do. Returning an error code, adding a noindex robots meta tag or x-robots-tag header, or using the temporary removal tool in Search Console all take URLs out of Google Search. For a product that is coming back, that is the opposite of what you want.
The reason I hold this line is simple. In my experience, deleting a product page and recreating it later throws away the links it has earned, and the new page starts from nothing when the stock returns. Stable URLs that survive a stockout cost nothing.
Pick the availability value that matches the shelf
Product structured data has a field for this. Google’s merchant listing documentation lists the values it accepts for offers.availability and says “Don’t specify more than one value.” The ones that matter for stock changes:
| Situation in the shop | Availability value | Google’s description |
|---|---|---|
| Waiting for a delivery, no orders taken | OutOfStock | The item is currently out of stock. |
| Customers can order now, you ship later | BackOrder | The item is on back order. |
| Not released yet, orders open | PreOrder | The item is available for pre-order. |
| A limited run that has sold out | SoldOut | The item has been sold out. |
| The manufacturer or you stopped it | Discontinued | The item has been discontinued. |
| Only a few left | LimitedAvailability | The item has limited availability. |
Most shop platforms output this markup already. What I check is that it changes when the stock does, and that it agrees with what the shopper sees: the same price, the same availability. A page that says “out of stock” above markup that says InStock is the kind of mismatch to look for, because it can mean the markup is cached or comes from a different source than the page.
If you also send a product feed to Google, the feed is a third place that must agree. When the page, the markup and the feed come from the same stock field, they stay in step without anyone checking them.
What out of stock product pages should show
Keeping the page is only half of it. The page still has to be useful, for the shopper and for Google. Google’s guide to troubleshooting crawling errors describes a soft 404 as a URL that returns a page telling the user the page does not exist, while the server says everything is fine. An out of stock template that hides the description, the images and the price, and leaves a near-empty page, gets uncomfortably close to that.
The fault can lie in the theme rather than the decision: a setting that hides the add to cart block can also hide the content around it. What the page should still show:
- the full description, specifications and images, unchanged;
- a clear status near the price, in plain words;
- a restock date only if you actually know it;
- a way to be told when it is back, if your platform offers one;
- links to the closest alternatives, such as the same product in another size or the next model.
Keep the product in its category listing with an out of stock label rather than dropping it from every list. If it disappears from all internal links, the page is still live but hard to reach.
When the product is gone for good
Discontinued is a different decision, and I use one order for it:
- A genuine replacement, such as the newer model of the same product: redirect to it with a 301.
- No exact replacement: redirect to the closest category or another highly relevant page.
- The home page only as a last resort, if there is no closer or highly relevant page.
Google’s crawling errors guide backs the first step: when a page has moved or has a clear replacement on your site, use a 301. It also warns that redirecting nonexistent URLs to an unrelated page, such as your home page, is treated as a soft 404, which is why the home page sits last and should not become the default for a whole range. If a product is removed with no replacement and nothing on the site is genuinely relevant, the same guide says a 404 or 410 is the correct answer.
Some shops keep a discontinued product page live for a while, because customers still look for the manual or the specifications. That works too, as long as the page says plainly that the product is discontinued and the markup uses the Discontinued value.
Variants, empty categories and the template
Stock rarely runs out for a whole product at once. Usually one size or one colour goes first. Google’s article on URL structure for ecommerce sites says each variant should be identifiable by a separate URL if you want Google to understand it, and that variant pages should carry the canonical product URL. In that setup, one sold-out variant changes the availability of that variant, not the fate of the product page.
Categories are different. The same article says: “If a category has no items, use a noindex robots meta tag.” If your platform removes an empty category from on-site browse and search, it suggests considering a 404 for that page instead. A whole category going empty is rarer than one product selling out, and it deserves a look before the template decides.
That last point matters most. Agree these rules once, write them into the product template and the stock system, and they keep working without anyone deciding page by page. Otherwise each product ends up handled differently by whoever happens to be updating it.
A stockout is a status, not a deletion. The page should say what is true today and still be worth landing on.