Out-of-stock products and SEO: keep, redirect, or delete?

Should out-of-stock pages stay live, redirect, or 404? A decision framework to protect rankings and link equity for temporary and discontinued products.

V
Vikram Rao
Local and technical SEO specialist; writes about audits, site speed and local search.
Published 30 Jun 2026·7 min read

Out-of-stock products are an inventory problem that quietly becomes an SEO problem. The short answer: keep the page live if the product is coming back, 301 redirect it if it's gone for good with a relevant replacement, and only 404/410 it when there's no sensible target and nothing worth saving. The expensive mistake is letting your platform decide for you — silently 404ing or bouncing shoppers to the homepage — because that's where rankings and hard-earned backlinks leak away.

Google has said repeatedly that an out-of-stock product is not penalised for being unavailable. A page that ranks for "running shoes size 11" doesn't lose that ranking the moment the size sells out. What actually damages you is the response to going out of stock.

Three things are at stake:

  • Rankings. A product page often accumulates months of relevance signals, dwell time, and query history. Deleting or redirecting it away throws that away.
  • Link equity. Popular products attract backlinks from blogs, forums, and buying guides. A 404 sends that equity into a void; a bad redirect dilutes it.
  • Internal link value. Your category and related-product links point at these URLs. Break them and you weaken the whole crawl graph — see our guide on ecommerce site structure for why that matters.

An out-of-stock page that stays live, stays useful, and stays honest about availability holds its position and recovers fast when stock returns. That's the whole game.

Decision framework: temporary vs permanent vs discontinued

Before you touch a single URL, sort each product into one of three buckets. The right SEO action follows from the bucket, not from a blanket policy.

Scenario Coming back? Recommended action HTTP status
Temporarily sold out (restocking) Yes Keep page live, update availability schema 200
Seasonal (returns next season) Yes Keep live, add restock/notify signal 200
Discontinued, has a clear replacement No 301 to replacement product 301
Discontinued, only category is relevant No 301 to parent category 301
Discontinued, no relevant target, no links No Return 410 Gone, remove from sitemap 410
Never existed / spam / duplicate N/A 410 or canonical to the real page 410 / 200

The single most useful question is: "Will a shopper searching for this product still be happy landing here in three months?" If yes, keep it. If no, send them somewhere they will be.

Keep the page live: UX, availability schema, and alternatives

For temporarily out of stock items, keeping the page live at a 200 status is almost always correct. Don't noindex it — you want Google to keep it in the index so it's ready to rank the day inventory returns.

Make the live page earn its keep:

  • Update the availability schema. Set the offers.availability value to https://schema.org/OutOfStock, or https://schema.org/BackOrder if customers can pre-order. Keep the rest of your product schema markup intact so Google renders accurate labels in listings.
  • Show honest status above the fold. "Currently out of stock" beats a greyed-out buy button with no explanation. Ambiguity increases bounce.
  • Offer a path forward. A restock-notification email capture, a clear estimated return date, or a "customers also bought" block keeps the visit productive.
  • Surface alternatives. Link to 3–6 in-stock, genuinely comparable products. This rescues the session and reinforces internal linking to pages that can convert.

That last point matters for revenue as much as SEO. A well-built out-of-stock page recovers a chunk of otherwise-lost sessions. If you're refining these templates, our product page SEO guide covers the on-page elements that carry over.

One caveat: if a large share of your catalogue is permanently out of stock and thin, that's a quality signal problem. Prune aggressively there. But a handful of temporarily sold-out SKUs is normal and harmless.

301 redirects and 404/410 for discontinued products

When a product is genuinely discontinued, the page has no future. Now the question is where its accumulated value should flow.

Prefer a 301 to the closest relevant match

A 301 redirect passes the large majority of link equity to the destination. Order of preference:

  1. The direct successor — the new model, updated version, or nearest equivalent SKU. Best possible target.
  2. A closely comparable product — same category, similar price and use case.
  3. The parent category page — acceptable when no single product fits. Better than a 404 because the intent ("I want this kind of thing") is preserved.

What you must not do is 301 everything to the homepage. Google explicitly treats a redirect to an irrelevant page — the homepage being the classic example — as a soft 404, meaning it's ignored and the destination gets no benefit. You lose the equity anyway and confuse the shopper.

When 410 (or 404) is the right call

Return 410 Gone when a product is permanently gone, has no relevant redirect target, and carries negligible traffic or backlinks. 410 tells Google the removal is intentional and permanent, so the URL drops from the index faster than a 404 (which implies "maybe it'll come back"). Practically the ranking outcome is similar, but 410 is cleaner for deliberate deletions.

301 Redirect 404 Not Found 410 Gone
Passes link equity Yes (to relevant target) No No
Best for Discontinued + replacement exists Accidental / temporary gaps Intentional permanent removal
Removal speed from index N/A (URL redirects) Slower Faster
Keeps shopper on-site Yes No No

Whichever removal path you choose, pull the URL from your XML sitemap. Leaving dead URLs in the sitemap wastes crawl budget and sends mixed signals — a point we hammer in ecommerce technical SEO.

Avoiding accidental auto-404s from your platform

This is where most stores bleed rankings without realising it. Ecommerce platforms have opinionated defaults for zero-inventory products:

  • Shopify can hide products from the sales channel when they hit zero stock, which returns a 404 for the product URL.
  • Magento / Adobe Commerce has a "Display Out of Stock Products" setting that, when off, removes them from storefront and search.
  • WooCommerce can hide out-of-stock items from the catalogue depending on your inventory settings.

Any of these can silently convert a ranking, backlinked page into a 404 the instant a warehouse count hits zero. You won't get an alert. You'll just watch traffic slide weeks later.

Defensive setup:

  1. Configure the platform to keep zero-inventory pages live and indexable unless the product is truly discontinued.
  2. Crawl your site monthly (Screaming Frog, Sitebulb, or your platform's tools) and flag any product URL now returning 404, 301-to-collection, or noindex.
  3. Reconcile against your sitemap so live-but-orphaned pages get caught.
  4. Watch rankings for your money SKUs with a tool like DeployFlare's rank tracker so a sudden drop flags a stock-status accident before it compounds.

A thirty-minute monthly audit here pays for itself the first time it catches a bestseller that quietly 404'd.

Handling seasonal and back-in-stock products

Seasonal products — winter jackets, festival hampers, exam-season stationery — are the clearest case for keeping pages live year-round. The URL builds ranking authority across cycles. Delete it every off-season and you restart from zero each year.

For seasonal and restocking items:

  • Keep the page at 200, always. Set availability to OutOfStock off-season, back to InStock when it returns.
  • Add a notify-me capture so demand doesn't evaporate. Emails collected off-season convert hard on restock day.
  • Refresh content, don't recreate URLs. Update copy, imagery, and pricing on the same URL rather than spinning up a new one each season — a new URL means starting the ranking climb over.
  • Feed demand data back into planning. Notify-me signups and search demand are cheap forecasting inputs; cross-reference with ecommerce keyword research to spot rising seasonal interest early.

When stock returns, flip availability, remove the out-of-stock messaging, and confirm the page is back in the sitemap. Because you never let it die, recovery is immediate rather than a multi-week reindex.

The one-line policy to hand your team

If you distil everything: temporary out of stock stays live; permanent discontinuation 301s to the closest relevant page; only 410 what has no target and no value. Wire that logic into your platform, schema, and monthly crawl, and out-of-stock stops being an SEO leak and becomes a non-event.

Frequently asked questions

Should out-of-stock products return a 404 or a 301 redirect?

Neither by default. If the product is temporarily unavailable, keep the page live with a 200 status and updated availability schema. If it's permanently discontinued, 301 redirect to the closest relevant replacement or its parent category. Only use a 404 or 410 when there is no sensible redirect target and the page has no meaningful traffic or backlinks worth preserving.

Do out-of-stock products hurt my Google rankings?

Not directly — Google doesn't penalise a page for being out of stock. Rankings drop when the situation is handled badly: pages that soft-404, redirect to the homepage, or sit unchanged for months lose relevance and links. A page kept live with accurate availability schema, related products, and a restock signal usually holds its position and recovers quickly when inventory returns.

How should I handle discontinued products for SEO?

Discontinued products should 301 redirect to the most relevant replacement — a newer model, a similar item, or the parent category. This passes most of the page's link equity and keeps returning visitors on a useful page. Redirecting to the homepage is treated as a soft 404 by Google, so avoid it. If no relevant target exists, return a 410 Gone and remove the URL from your sitemap.

What availability value should out-of-stock product schema use?

Use `https://schema.org/OutOfStock` when the item is unavailable, or `https://schema.org/BackOrder` if customers can still order for later delivery. Keep the Product structured data on the page and update the value dynamically as stock changes. Accurate availability drives correct labels in Google's product listings and Shopping surfaces; a mismatch between schema and the visible page can trigger structured-data warnings.

Should I delete out-of-stock product pages?

Rarely. Deleting a page throws away its rankings, backlinks, and internal link value. Keep it if the product is returning; 301 it if it's gone but has a replacement. Only delete (via 410) products that are permanently gone, have no relevant alternative, and attract negligible traffic or links. Even then, remove them from your XML sitemap so Google stops recrawling dead URLs.

How do I stop my platform from auto-404ing out-of-stock products?

Many platforms (Shopify, Magento, WooCommerce) hide or unpublish products when inventory hits zero, which returns a 404 or redirects to a collection. Check your platform's out-of-stock behaviour in settings, and configure it to keep zero-inventory pages live and indexable. Crawl your site monthly to catch URLs that flipped to 404 or noindex without warning, and reconcile against your sitemap.

Keep reading