Out-of-stock handling is the set of decisions an online shop makes about a product page when the item runs out or is withdrawn for good. Done well, the page keeps its rankings and links, the customer still finds something useful, and Google gets an honest signal about availability.
How out-of-stock handling works
The right response depends on one question: is the product coming back?
Temporarily out of stock
Keep the page live and indexable, returning a normal 200 status. Say clearly that the item is out of stock, give an expected date if you have one, and offer a “notify me” option by email. Update the availability value in your product schema to OutOfStock, or to BackOrder or PreOrder if customers can still order. Show close alternatives near the top so the visit is not wasted.
Seasonal or recurring lines
Products that return every year, such as Christmas ranges, garden furniture or school uniform, should keep the same URL year after year. Each season adds to the page’s history and links. Deleting and recreating it each time throws that away.
Discontinued for good
If a direct successor exists, such as a newer model of the same item, use a 301 redirect to it. If there is no true replacement but the page has links or traffic, you can keep it live as an information page that explains the product is discontinued and points to the nearest alternatives. If it has no links, no traffic and no successor, let it return a 404 or 410.
Why it matters
Product pages often earn links from reviews, forums and comparison sites, and they rank for specific model searches that convert well. Removing a page every time stock runs out throws away that value and gives the searcher a dead end. For a UK retailer facing supply delays on imported goods, the difference between handling this well and badly can show up across hundreds of pages at once.
There is also a trust and compliance side. Showing a product as available when it is not wastes the customer’s time, and if you feed products into Google Merchant Center, the availability on your page and in your feed must agree or listings can be disapproved.
Common mistakes
- Redirecting every discontinued product to the homepage. Google usually treats this as a soft 404, and the shopper lands somewhere irrelevant.
- Hiding out-of-stock items in a way that removes the URL. Some platforms unpublish the page automatically. Check your settings before a busy season.
- Noindexing temporarily unavailable pages. The page drops out of search and can take time to return once stock is back.
- Leaving schema saying InStock. Structured data that contradicts the page is misleading and can cost rich results.
- Burying the alternatives. A sold-out notice with nothing else on the page sends people back to the search results.
How to act on it
Write a short rule for each case: temporary, seasonal and permanent. Then check that your platform actually follows it. In Shopify, WooCommerce and Magento the default behaviour differs, and themes and apps can override it, so test with a real product rather than trusting the settings screen.
For permanent removals, export the product URLs with their backlinks and organic traffic before you delete anything. Pages with value get a redirect or stay as information pages; pages without it can go. Keep a list, so that when a customer or supplier mentions an old model, you know where it now points.
Finally, keep stock status, schema and your Merchant Center feed in sync automatically rather than by hand. If you want a review of how your shop currently treats sold-out and discontinued lines, it is a standard part of my ecommerce SEO service.
