- A product that is coming back keeps its URL, stays live with a 200 status and says clearly that it is out of stock, with a restock date if you have one, a back-in-stock signup and alternatives. Mark availability the same way on the page, in the markup and in the feed.
- A product that is gone for good either redirects to a true replacement or a close parent collection, stays live as an information page if it still earns traffic and links, or returns a 404 or 410. Never send everything to the homepage.
- The biggest risk is inconsistency: pages that look empty, availability that disagrees with the feed, and internal links that keep pointing at dead ends.
Why do out-of-stock pages cause SEO problems?
A sold-out product with no plan creates three problems.
- The page looks empty. Some themes hide the price, the buy button and most of the content when stock hits zero. Google’s John Mueller said in 2020 that out-of-stock or unavailable pages “generally tend to end up as soft 404 pages.” A soft 404 returns a success code but looks like an error or an empty page to Google, and it tends to drop out of results.
- Data disagrees. The page says sold out, the structured data still says InStock, and the product feed says something else. Merchant Center asks you to match the availability in your product data with your landing page and checkout.
- Links break. Someone deletes the product, the URL returns a 404, and every collection, article and email that linked to it points at a dead end. Backlinks the page earned stop helping.
The fix is to decide what each URL should do, then make the page, markup, feed and internal links say the same thing.
What should you do with each type of out-of-stock product?
| Situation | URL status | Page content | Schema availability | Feed availability |
|---|---|---|---|---|
| Temporarily out of stock, restock expected | 200, stays indexed | Sold-out notice, restock date if known, back-in-stock signup, alternatives | OutOfStock (BackOrder if you still take orders) | out_of_stock, or backorder with an availability date |
| One variant out of stock | 200, stays indexed | Unavailable variants marked in the picker | Per-variant availability | Per-variant availability |
| Pre-order before launch | 200, indexed | Ship date and pre-order terms near the button | PreOrder | preorder with an availability date |
| Seasonal product that returns each year | 200, live all year | “Back in season” notice, signup, in-season alternatives | OutOfStock off-season | out_of_stock, or remove off-season |
| Discontinued, direct replacement exists | 301 to the replacement | Not applicable | Not applicable | Remove the old item |
| Discontinued, no replacement, still earns traffic or links | 200 as an information page, or 301 to the closest collection | Discontinued notice, specs, closest alternatives | Remove the Offer or mark Discontinued | Remove the item |
| Discontinued, no replacement, no traffic or links | 404 or 410 | Helpful 404 page | Not applicable | Remove the item |
Temporarily out of stock
Keep the page live and useful. Add a clear “Out of stock” message near the price, not just a greyed-out button; a restock date only if you can meet it; a back-in-stock signup, which turns a dead end into a list of buyers who already chose the product (our back-in-stock email playbook covers the flow); and two to four in-stock alternatives as normal product links.
Leave the description, images, reviews and specs in place. A page with real content and a clear status is far less likely to look like an error page than one stripped down to “Sold out.”
If you take orders and ship later, that is a backorder. Merchant Center requires an availability date for both backorder and preorder, and says that information should be visible on your landing page.
Variants and seasonal products
When one size or color sells out, the product is still for sale, so nothing changes at URL level. Mark the unavailable variant in the picker and in the markup; our guide to product schema for ecommerce covers variants. A product that returns every year should keep the same URL every year, so its rankings and links carry over.
Discontinued with a direct replacement
Use a 301 redirect to the new product. Google treats a 301 as a strong signal that the target should replace the old URL in results. A replacement meets the same need: a new model, a renamed product, a new formula.
Discontinued with no replacement
Two good options and one bad one:
- Keep it as an information page if it still gets organic clicks, has backlinks or answers owners’ questions about specs, manuals or compatible parts. Mark it discontinued, remove the buy button and the Offer from the markup, and link to the closest alternatives and the parent collection.
- Redirect to the closest collection if the page has some value but no lasting reason to exist, and the collection genuinely covers the same need.
- The bad option: redirecting every discontinued product to the homepage. Google’s search advocates have said publicly that mass redirects to the homepage can be treated as soft 404s, and the shopper lands somewhere that does not answer their search.
Discontinued with no traffic or links
Let it go with a 404 or a 410. Google’s documentation says all 4xx errors except 429 are treated the same way. Make your 404 page helpful: search box, main categories and best sellers.
How should availability appear in schema and the Merchant Center feed?
The page is the source of truth. The markup and feed mirror it.
- Schema.org availability values include InStock, OutOfStock, BackOrder, PreOrder and Discontinued. Use the one that matches the page.
- Merchant Center values are in_stock, out_of_stock, preorder and backorder. Preorder and backorder need an availability date.
- Update speed matters. If stock changes hourly and the feed updates daily, the feed is wrong for part of the day. Use a native channel or feed tool that syncs inventory often.
- Watch for hardcoded values. Some older themes output InStock no matter what. Test a sold-out product in the Rich Results Test.
For feed fixes beyond availability, see our guide to Google Shopping feed optimization.
How do Shopify, WooCommerce and Magento handle out-of-stock products?
Shopify. A product with zero inventory stays published and the theme shows a sold-out state. The “Continue selling when out of stock” setting lets you take backorders; if you use it, show the ship date. Deleting a product, or setting it to draft or archived, removes it from the storefront, so its URL returns a 404 unless you add a redirect in Shopify’s URL redirects tool. Create the redirect before you archive.
WooCommerce. The inventory settings include an option to hide out-of-stock items from the catalog. That hides them from listings, but the product URL can still be visited, so check what your SEO plugin puts in the sitemap.
Magento / Adobe Commerce. The inventory configuration includes an option to display or hide out-of-stock products. Hidden products drop out of category pages, which can strand links pointing to them.
What about internal links and sitemaps?
- Redirected products: update links in menus, collections, bundles and articles to the new URL. The redirect is for outside links; your own links should point to the final address. See our guide to internal linking for ecommerce.
- 404 products: remove them from collections, bundles, related-product modules and emails.
- Sitemaps: the XML sitemap should list only canonical URLs that return 200. Check after bulk changes.
- Search Console: watch the Page indexing report for “Soft 404” and “Not found (404)” after a range change. Soft 404s on products you meant to keep usually mean the template strips too much content at zero stock.
Worked example: deciding the fate of five SKUs
All figures are illustrative.
A home goods store is clearing out an old range. The team pulls 12 months of organic clicks from Search Console and linking domains from a backlink tool.
| SKU | Status | Organic clicks (12 months) | Linking domains | Decision |
|---|---|---|---|---|
| Linen Duvet, Sage | Restock in 6 weeks | 2,400 | 3 | Keep live, OutOfStock, restock date, signup, three alternatives |
| Linen Duvet, Oat (old version) | Replaced by Oat v2 | 1,100 | 5 | 301 to Oat v2 |
| Wool Throw, Rust | Discontinued, no replacement | 900 | 12 | Keep as information page, remove Offer |
| Cotton Napkin Set | Discontinued, no replacement | 60 | 0 | 301 to the Napkins collection |
| Holiday Table Runner 2023 | Discontinued | 0 | 0 | 404 |
Follow-through: set up the redirects before archiving, update the four blog posts that link to the old Oat duvet, remove the napkin set from two bundles, and check Search Console four weeks later for unexpected soft 404s.
Out-of-stock and discontinued products checklist
- [ ] A written rule exists for each case: temporary, variant, pre-order, seasonal, replaced, discontinued.
- [ ] Sold-out pages keep their description, images, reviews and price, with a clear status message.
- [ ] Back-in-stock signups and in-stock alternatives appear on sold-out pages.
- [ ] Schema availability updates with stock and matches the page.
- [ ] Merchant Center availability matches the page; backorder and preorder items carry a date.
- [ ] Redirects are created before products are deleted or archived.
- [ ] No discontinued products redirect to the homepage.
- [ ] Internal links, bundles and emails are updated when a product is redirected or removed.
- [ ] Sold-out items sort to the end of collections.
- [ ] The Page indexing report is checked monthly for soft 404s on product URLs.
FAQ
Should I noindex out-of-stock product pages?
Not if the product is coming back. Noindex removes the page from results, and it can take time to return after you remove the tag. Keep it indexed, make the status clear and offer alternatives.
How long can a product stay out of stock before I redirect it?
Google sets no fixed limit. Base the decision on whether the product is coming back. If a restock is planned, keep the page; if not, apply the discontinued rules as soon as you know.
Is a 410 better than a 404 for discontinued products?
Google’s documentation says it treats all 4xx errors except 429 the same way. Use whichever your platform makes easy, and spend the effort on redirects and links for pages that still have value.