Skip to content
SEO

Out-of-Stock Product Pages: What to Do for SEO

Whether to 404, redirect, or keep an out-of-stock product page live, what structured data should say, and how to handle a product that's gone for good.

By Ibrahem HelalAI-assisted, reviewed by Jeremy Zava6 min read

Keep a temporarily out-of-stock product page live and clearly marked, at a 200 status, with an accurate OutOfStock schema value. Only remove or redirect the page once the product is permanently discontinued, and redirect to the closest active replacement rather than defaulting to a 404.

This is one piece of the broader ecommerce SEO picture; most of a catalog's SEO value sits in pages that are, at any given time, in exactly this in-between state.

On this page

What should actually happen when a product goes out of stock?

Nothing drastic, most of the time. The page should stay live, the status should update to reflect reality, and the copy should tell the visitor plainly that it's sold out rather than pretending otherwise with a working "add to cart" button that fails at checkout. That page still holds whatever rankings, links, and reviews it accumulated, and all of that survives a stockout that the page handles honestly.

The mistake that actually costs rankings is not the stockout itself. It's removing the page entirely for a restock that's three weeks away, then rebuilding it from scratch once inventory arrives — at which point it is, as far as Google is concerned, a brand-new URL with no history.

That mistake is common because the underlying decision often isn't made by anyone thinking about SEO. A merchandising or operations team unpublishes a sold-out product because an empty product grid looks unfinished, without knowing that the page carried three years of accumulated ranking signal. The fix isn't a policy nobody reads; it's making the default behavior for a stockout the SEO-safe one, so nobody has to remember to make the right call under deadline pressure.

How long is "temporary" before a stockout should be treated differently?

There's no fixed cutoff, but a page that has been marked out of stock for more than two or three months without a restock date starts to look, to both visitors and to Google, less like a pause and more like an abandonment. Traffic to it typically declines over that window even if the page itself never changes, simply because a fraction of visitors bounce off a stale sold-out notice every time they see one.

Set an internal review point — most stores land somewhere around sixty to ninety days — where a still-unavailable product gets a decision: confirmed restock date and a reason to stay live, or reclassified as discontinued and handled with a redirect. Leaving it in limbo indefinitely is the option that costs the most over time, because it neither preserves the page's value cleanly nor frees up the URL and internal links for something that could actually rank.

Should you 404 it, redirect it, or keep it live?

Keep it live for a temporary stockout. Redirect it for a permanent discontinuation, and only 404 it when there is genuinely nothing relevant to send the visitor to instead — which is rarer than most stores treat it as.

Choosing a response by situation
SituationWhat to do
Restocking within weeksKeep the page live at 200, mark it out of stock
Discontinued, direct replacement exists301 redirect to the replacement product
Discontinued, similar category still sold301 redirect to the closest category page
Discontinued, nothing comparable leftLet it 404 or 410 rather than redirecting to an unrelated page

Redirecting every discontinued product to your homepage, which is the default a lot of stores fall into, is close to as bad as a 404. Google's guidance on how status codes are read treats a redirect to an unrelated page as low-value for the visitor even when it technically avoids a broken link [2], and a homepage is rarely what someone searching for a specific model number actually wants.

How do you handle a product that's discontinued for good?

Confirm it's actually permanent before acting, since seasonal and supplier-driven stockouts get misclassified as discontinuations more often than the reverse. Once it's confirmed, pick the redirect target based on what the visitor was actually trying to buy — the direct successor model if one exists, otherwise the category page it belonged to, with a brief note about why.

Avoid a blanket rule that redirects everything discontinued straight to the parent category with no explanation. A visitor who lands there expecting the specific product they searched for, with no acknowledgment of what happened to it, bounces at a rate that erases whatever SEO value the redirect preserved.

Platform defaults vary here, and it's worth checking rather than assuming. A Shopify store leaves a sold-out product's page live by default and simply disables the buy button, which matches the guidance above; other platforms quietly unpublish the page instead, which silently turns a temporary stockout into an accidental 404.

What does structured data need to say?

The availability property in your product structured data and your Merchant Center feed both need to read OutOfStock, not a stale InStock value left over from before the item sold through [1][3]. This matters twice over: it affects any rich result depending on availability, and a feed reporting InStock on something that isn't can trigger a Merchant Center policy issue that pauses listings for the whole account, not just the one product.

This kind of automation is usually a one-time setup task inside a broader ecommerce SEO engagement, not something to rebuild every time a new product type gets added.

Should out-of-stock pages stay in the sitemap?

Yes, while the page is a temporary stockout that's still live and useful — removing it from the sitemap slows down how fast Google notices it's back in stock. Once a product is confirmed permanently gone and redirected, remove its old URL from the sitemap; leaving dead entries in a sitemap indefinitely wastes crawl attention on pages that no longer resolve to anything worth indexing.

This same discipline matters on a WooCommerce store as much as on any platform, since WooCommerce's default behavior for a sold-out product depends on settings that don't always match what's SEO-appropriate out of the box.

How do you turn a sold-out page into something that still converts?

A "notify me when back in stock" email capture recovers some of the value a straight dead end loses. It keeps the page purposeful instead of static, gives you a list to email the moment inventory returns, and, done well, it is also a page still worth linking to from a category listing rather than one worth hiding.

Pair that with two or three genuinely similar in-stock alternatives shown on the same page. This is not a redirect — the original page and URL stay intact — but it gives a visitor a reason to stay on the site instead of leaving for a search result that has what they need in stock right now. Our ecommerce SEO checklist covers where this fits alongside the rest of a store's pre-launch and ongoing technical setup.

Both of these additions also give the page something new to say, which matters more than it might seem. A page that has looked identical for six months, "sold out," with nothing else changing, is a page with no reason for Google to recrawl it any more often than the minimum. An email capture and a rotating set of alternatives, updated as inventory shifts, keep giving the crawler a reason to check back in, which is a small but real advantage over a stockout page that sits completely static.

Questions people also ask

  • Should an out-of-stock product page return a 404?

    Only if the product is genuinely never coming back and you have nothing relevant to redirect it to. A temporary stockout should keep the page live at 200; a permanent discontinuation is usually better served by a 301 to the closest replacement than by a 404.

  • Does Google penalize a store for having out-of-stock pages?

    No, not for the state itself. What hurts is a large share of a catalog sitting out of stock with stale content and no path forward for the visitor, which looks abandoned. A well-handled out-of-stock page with an accurate status is not a problem.

  • What should the availability schema say when a product is sold out?

    Set the availability property to OutOfStock, not InStock left unchanged. An accurate schema value matters for Merchant Center eligibility and for any rich result depending on it, and a stale InStock value on a sold-out product can get a feed suspended.

  • Should out-of-stock products stay in the XML sitemap?

    Temporary stockouts, yes, since the page is still live and useful. Permanently discontinued products with no replacement should be removed from the sitemap once they're redirected or removed, so the sitemap keeps reflecting pages actually worth crawling.

Sources

  1. Availability [availability] — Google Merchant Center Help (checked 23 September 2026)
  2. How HTTP status codes, Google Search Console, and JavaScript redirects affect Google Search — Google Search Central (checked 23 September 2026)
  3. OutOfStock - Schema.org enumeration member — Schema.org (checked 23 September 2026)

Set an out-of-stock policy your catalog follows automatically

Book a free 30-minute consultation with Ibrahem and Jeremy. We look at your site while we talk, and you leave with a prioritised plan.

Who wrote this

Ibrahem HelalCo-founder

Leads strategy and delivery.

Works on: SEO, GEO

Reviewed before publishing by Jeremy Zava, Co-founder.

Posts by Ibrahem Helal

More on this