The default ecommerce platform behaviour for out-of-stock is one of three: hide the product (returns 404), show it with a ‘sold out’ badge, or remove it entirely. All three can be wrong depending on context. Here’s the decision framework.

The four scenarios

Temporary stockout (will restock): Keep the page live. Show ‘currently unavailable’ with notify-me functionality. In schema, mark availability as ‘OutOfStock’ but keep the URL indexable. Don’t lose the page authority — you’ll need it back.

Permanent discontinuation, single replacement: 301 redirect to the replacement product. Preserves backlink equity and ranking signals.

Permanent discontinuation, no direct replacement: 301 redirect to the parent category page. Don’t 404 if the URL has any backlinks or organic traffic.

Mass clearance (50+ products at once): Audit which had real traffic / backlinks. Redirect those to relevant categories. 410 (Gone) the rest — tells Google to remove them cleanly.

What Google actually penalises

Out-of-stock products that stay indefinitely with no path forward signal to Google that your catalog is unreliable. Especially bad if multiple key products are affected. The fix: dates. If something is coming back, communicate an ETA. If not, redirect.

Schema availability values

  • InStock — available now.
  • OutOfStock — not available but will be back.
  • Discontinued — never coming back. Trigger a redirect.
  • PreOrder — coming soon, accepting orders.
  • BackOrder — orderable but ships later than usual.

Use the right one. Google reads these and adjusts how it ranks the page.

Don’t hide; explain

For temporary stockouts, the page should clearly say: ‘Currently unavailable. Expected back: {date}. Notify me when it’s back.’ That’s a better user experience than a 404 and preserves SEO value.

Common platform-specific gotchas

Shopify: ‘Hide from search’ on a product returns a soft 404 (page exists but no content). Worse than a proper redirect. Use the redirect tool instead.

Magento: ‘Disabled’ products return 404 by default. Use URL Rewrites to set up 301s before disabling.

WooCommerce: ‘Out of stock’ status keeps the page; ‘Draft’ or ‘Trash’ takes it down. Use redirects via Yoast / Rank Math.

Building a stockout audit habit

Most ecommerce stores accumulate hundreds of out-of-stock products over years. Quarterly audit: review which URLs are receiving traffic or have backlinks, redirect or restore as appropriate. Catches losses before they accumulate. Covered as part of our Technical Ecommerce SEO retainer.

← Back to all articles