A product goes out of stock. The page that spent two years climbing for its keyword is suddenly a liability — and the fastest fix anyone suggests (delete it, redirect it to the homepage, hide it) is usually the one that costs you the rankings. Traffic collapse around stockouts is almost never caused by the stockout itself. It is caused by what the store does to the URL in the week after.
This playbook is a decision sequence: what to do with an out-of-stock product page based on whether the product is coming back, replaced, or gone for good. Every step is grounded in Google’s own documentation on status codes, soft 404s and structured data — no folklore. For the broader technical context this sits in, see our technical e-commerce SEO guide.
Why an out-of-stock page is an asset, not dead weight
A product page that has been live for a while carries three things a new page does not: rankings for its product and long-tail queries, backlinks from reviews and roundups, and a crawl history that tells Google the URL is stable. Throw the page away and you forfeit all three at once. Keep it and you have options — the product may restock, a successor may appear, or the page may simply keep answering the question the searcher had (“is this still made? what replaced it?”).
The one thing you cannot do is nothing. A live URL whose buy button is dead, whose markup still says InStock, and whose body is now three lines of “product not available” is on a path to being treated as an empty page. The rest of this article is the order of operations.
| Situation | What the URL should do | Status code |
|---|---|---|
| Temporarily out of stock, restock planned | Stay live, explain the stockout, offer alternatives or notifications | 200 |
| Discontinued, a successor exists | 301 to the closest substitute or the parent category | 301 |
| Discontinued, category still relevant | 301 to the parent category | 301 |
| Gone for good, nothing comparable | Return not found (or gone) and let the URL leave the index | 404 or 410 |
| Never should have been indexed (staging, test SKU) | Remove and block per technical policy | 404 + cleanup |
1. Temporary stockout? Keep the page live and useful
When stock will return, the page keeps its job: rank, inform, and capture demand until the buy button works again. Do these four things and the page earns its keep through the gap:
Say what is happening, prominently. “Out of stock — expected back the week of March 3” beats a greyed-out button with no explanation. If you don’t know the date, say that too; honesty reads better than a placeholder date that slips twice.
Offer the next-best action. A back-in-stock email or SMS signup converts the traffic you already earned. Links to the two closest alternatives (in stock) keep the session alive. Both add exactly the content that distinguishes a maintained page from an empty one.
Keep everything else intact. Description, specs, images, reviews, shipping info, FAQ. This is the content that holds the ranking — removing it “because the product is unavailable” is self-sabotage.
Keep it linked. If the product is still in your catalog structure, leave breadcrumb and related-product links in place. Orphaning the page accelerates the slide and makes recovery harder to diagnose.
2. Keep availability markup honest
Structured data on a product page includes an availability property, and schema.org defines the values (InStock, OutOfStock, PreOrder, BackOrder, Discontinued, among others — see schema.org’s availability property). Google’s product structured data documentation is where the search-side requirements live, and Google Merchant Center maps the same property to its own accepted values (in_stock, out_of_stock, preorder, backorder) in its structured data documentation.
Three rules keep you out of trouble:
- Markup must match the visible page. If the page says sold out and the markup says
InStock(or the price shown in markup is stale), that contradiction is exactly the kind of misleading structured data Google’s spam policies call out. It is also how stores end up with rich results that embarrass them. - Flip availability at the moment stock hits zero — in your platform, your feed and your markup at the same time. A feed that says in stock while the site says sold out produces the “why does Google show my product as available?” support ticket every time.
- When the product returns, flip it back. Availability is not a one-way switch; a stale
OutOfStockin markup can outlive the stockout in your own dashboards.
3. Avoid the soft 404 trap
Google’s crawling-errors documentation defines a soft 404 as a URL that returns a success status code while telling the user the page doesn’t exist — “or a page with no main content or empty page.” Search Console reports these in the Page Indexing report, and such pages are excluded from Search.
A stripped out-of-stock page is a textbook soft 404 candidate: HTTP 200, near-empty body, error-flavored message. If you see soft 404s appear in Search Console right after a stockout wave, that is the diagnosis. The same documentation gives the three legitimate fixes — return 404/410 when the page is truly gone, 301 when the content moved, or keep the page and make sure it renders with real content rather than a prominent error message. Section 1 of this playbook is how you produce the third outcome on purpose.
One anti-pattern deserves its own warning: Google’s 404-error guidance explicitly says not to redirect removed content to the homepage and not to fake content to keep a URL alive — both read as soft 404s and make a site’s structure harder for Google to process.
4. Discontinued product? Redirect deliberately
When the product is not coming back, a 301 preserves the link equity and gives the searcher somewhere useful to land. The target matters more than the redirect itself:
- Closest successor (the new model, the updated version) is the best target — the searcher’s intent survives intact.
- Parent category is the right target when no single product substitutes. “Women’s trail running shoes” beats a random SKU the searcher didn’t ask for.
- The homepage is the wrong target, for the reason in the Google guidance above: it is a generic destination pretending to be a specific one, and it reads as a soft 404.
Redirect chains are worth one paragraph because they accumulate quietly. If product A redirects to product B, and B later retires, redirect A to the final destination — not to B, which now redirects again. Chains dilute signals and slow crawlers; your redirect map should end in one hop.
5. Gone for good? Let the URL go
If the product is discontinued, has no successor, and the page holds nothing worth keeping (no unique content, no meaningful links), returning 404 or 410 is correct and cheap. Google’s HTTP status code documentation states it plainly: content from 4xx responses is ignored, the URL is removed from the index if it was previously indexed, and 410 is handled the same way as 404. Their crawl budget guidance adds that permanently removed pages should return 404/410 and that soft 404s waste crawl budget by continuing to be crawled.
What not to do here: noindex a dead page “to be safe” (you keep the URL in the crawl queue for no benefit), block it in robots.txt (Google may still index the URL from links, now without ever seeing the page), or serve a 200 with a thin apology page. Dead means dead: one honest status code.
Variants, bundles and seasonal stock
Out-of-stock policy gets complicated at the edges, and the edges are where most stores improvise:
- Variants. If one size or color is out but the parent product sells, the parent page stays fully live — mark just the variant unavailable in options and offer a notify-me link. Taking the whole product down for one out-of-stock size throws away sales and rankings for the sizes you do have.
- Bundles and kits. A bundle is out because one component is? Keep the bundle page if the restock is planned; if the component is discontinued, treat the bundle as a discontinued product (section 4).
- Seasonal goods. The right model is the permanent, refreshable page: keep the seasonal product page live year-round with the availability story told honestly, and the page accumulates authority every season instead of starting from zero. This is the same logic we apply to seasonal category pages — the URL should never be new twice.
The out-of-stock SEO checklist
Work this list the day a SKU hits zero:
- Classify the stockout: temporary, discontinued-with-successor, discontinued-standalone, or catalog error.
- Keep the page at HTTP 200 for anything temporary; write the restock message and date.
- Add a back-in-stock capture and links to in-stock alternatives.
- Update
availabilityin markup, feed and platform to match reality — and fix the price field while you’re there. - Check the page renders with real content (fetch as Google / URL Inspection) so it can’t read as a soft 404.
- For discontinued products: write one-hop 301s to the successor or parent category — never the homepage.
- For truly gone products: 404/410, remove from the sitemap, repair internal links pointing at the URL.
- Monitor the Search Console Page Indexing report for soft 404s in the following weeks.
FAQ
Should I delete out-of-stock product pages? Only when the product is permanently gone, has no successor, and the page carries no unique content or links worth keeping. For temporary stockouts, deleting the page destroys rankings and links you already paid for; keep it live and update it.
Do out-of-stock products hurt my other rankings? Not by themselves. What hurts is the aftermath — thin pages, misleading availability markup, redirect chains and soft 404s spreading across the catalog. Handled per this playbook, a stockout is a page-level event, not a site-level one.
What status code should an out-of-stock page return? If the product is expected back, keep the page at 200 with an honest stockout message. If it’s discontinued with a replacement, return a 301 to the replacement or parent category. If it’s gone for good with nothing to redirect to, return 404 or 410 — Google treats both the same.
Should I show out-of-stock products in search results at all? Keeping the page indexable during a temporary stockout is usually right: the searcher’s question (“is this still sold?”) is still answered, and you keep the ranking for the restock. Remove availability from any listing where you can’t honestly fulfill the order, but don’t hide the page.
How do I stop Google from showing “out of stock” rich results? You don’t — if the page is truly out of stock, showing accurate availability is the system working. What you must avoid is the contradiction: markup that says in stock while the page says sold out. Keep availability in sync and the snippet will follow.
Does redirecting an out-of-stock product to the category page work? Yes, when the product is permanently gone and a single successor doesn’t exist. The parent category preserves the searcher’s intent and concentrates the link equity where the next purchase happens.
What to do next
Out-of-stock handling is one decision tree inside the bigger technical picture — status codes, structured data, crawl budget and internal linking all meet here. If you want the full system, read the technical e-commerce SEO guide or the wider complete guide to e-commerce SEO. And if a stockout wave has already left soft 404s across your catalog, our technical SEO service is built for exactly that cleanup.